List a function package's versions
GET
/v1/functions/{function_id}/versionsAuthorization
AuthorizationBearer token · headerrequiredPath parameters
function_idstring<uuid>requiredFunction package id
Query parameters
limitinteger<int64>min 1 · max 200
afterstring<uuid>Rows past this id in `order`'s direction: a page's `next_cursor`.
beforestring<uuid>Rows just before this id, still in `order`'s direction: a page's `prev_cursor`.
orderOrderParamNewest first when omitted.
Allowed:
ascdescResponses
200One page, newest first unless order=asc.
itemsFunctionVersionBody[]requiredShow propertiesHide properties
Array of
FunctionVersionBodyassetsany | FunctionAssetsBodyrequiredShow propertiesHide properties
One of:
any
anyFunctionAssetsBody
bytesinteger<int64>requiredfilesFunctionAssetFileBody[]requiredEach file the archive holds, in path order.
Show propertiesHide properties
Array of
FunctionAssetFileBodypathstringrequiredThe path under `assets/`, `/`-separated.
sha256stringrequiredHex SHA-256 of the file's bytes.
sizeinteger<int64>requiredmin 0
sha256stringrequiredcreated_atstring<date-time>requiredfunction_idstring<uuid>requiredidstring<uuid>requiredmanifestFunctionManifestBodyrequiredWhat a version serves: the name and description its `subako-package.json`
gives, and each tool its module lists.
Show propertiesHide properties
descriptionstringrequiredfunctionsManifestFunctionBody[]requiredShow propertiesHide properties
Array of
ManifestFunctionBodydescriptionstringrequiredinput_schemaanyrequiredJSON Schema for the tool's arguments.
namestringrequiredoutput_schemaanyrequiredJSON Schema for the tool's output; `{}` when the tool names none.
namestringrequiredmodule_bytesinteger<int64>requiredmodule_sha256stringrequiredversioninteger<int32>requirednext_cursorstring<uuid> | nullrequiredPass back as `after` for the next page; `null` on the last page.
prev_cursorstring<uuid> | nullrequiredPass back as `before` for the previous page; `null` on the first page.
400Bad limit, cursor, order, or path parameter.
errorErrorDetailrequiredWhat 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 propertiesHide properties
codeErrorCoderequiredThe 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_requestsinternalmessagestringrequired401Missing, malformed, or invalid bearer token.
errorErrorDetailrequiredWhat 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 propertiesHide properties
codeErrorCoderequiredThe 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_requestsinternalmessagestringrequired403Caller lacks function.read.
errorErrorDetailrequiredWhat 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 propertiesHide properties
codeErrorCoderequiredThe 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_requestsinternalmessagestringrequired404No such package, or the caller cannot see it.
errorErrorDetailrequiredWhat 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 propertiesHide properties
codeErrorCoderequiredThe 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_requestsinternalmessagestringrequired