Skip to content
Subako Docs
English
Esc
↑↓navigate↵open⌘Jpreview

Get a function package version

GET/v1/functions/{function_id}/versions/{version}
Authorization
AuthorizationBearer token · headerrequired
Path parameters
function_idstring<uuid>required
Function package id
versioninteger<int32>required
Version number, counting from 1
Responses
200The version.
assetsany | FunctionAssetsBodyrequired
Show properties
One of:
any
any
FunctionAssetsBody
bytesinteger<int64>required
filesFunctionAssetFileBody[]required
Each file the archive holds, in path order.
Show properties
Array of FunctionAssetFileBody
pathstringrequired
The path under `assets/`, `/`-separated.
sha256stringrequired
Hex SHA-256 of the file's bytes.
sizeinteger<int64>required
min 0
sha256stringrequired
created_atstring<date-time>required
function_idstring<uuid>required
idstring<uuid>required
manifestFunctionManifestBodyrequired
What a version serves: the name and description its `subako-package.json` gives, and each tool its module lists.
Show properties
descriptionstringrequired
functionsManifestFunctionBody[]required
Show properties
Array of ManifestFunctionBody
descriptionstringrequired
input_schemaanyrequired
JSON Schema for the tool's arguments.
namestringrequired
output_schemaanyrequired
JSON Schema for the tool's output; `{}` when the tool names none.
namestringrequired
module_bytesinteger<int64>required
module_sha256stringrequired
versioninteger<int32>required
400Malformed path parameter.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
401Missing, malformed, or invalid bearer token.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
403Caller lacks function.read.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
404No such package or version, or the caller cannot see it.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
Try it
Server
Authorization
Parameters
Request
curl -X GET "https://api.us.cloud.subako.ai/v1/functions/497f6eca-6276-4993-bfeb-53cbbbba6f08/versions/0" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "assets": {},
  "created_at": "2019-08-24T14:15:22Z",
  "function_id": "88972a47-7c82-4b1c-bc75-afe8ae423a46",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "manifest": {
    "description": "string",
    "functions": [
      {
        "description": "string",
        "input_schema": null,
        "name": "string",
        "output_schema": null
      }
    ],
    "name": "string"
  },
  "module_bytes": 0,
  "module_sha256": "string",
  "version": 0
}