List a function's versions
Lists the function's versions, newest first: the deploy history. Pages default to 50 versions and are capped at 500 (limit). Pass nextCursor back as cursor; an empty nextCursor means the last page.
Needs the viewer role in the owning team. Callable with a console session or a team API key (Authorization: Bearer xk_…).
Required scopes: functions:functions:read
Authorization
BearerAuth A team API key, created by a team admin in the console and presented as
Authorization: Bearer xk_…. Xeonr Auth issues and verifies it; the
secret is shown once at creation and stored only as a hash, and a
revoked key stops working within 30 seconds. An existing fnt_… token
is accepted the same way.
In: header
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
^[A-Za-z0-9_-]+$1 <= length <= 64cursor is a previous response's next_cursor; empty for the first page.
limit is the page size: 0 means the default of 50, at most 500.
value <= 500Response Body
application/json
application/json
curl -X POST "https://functions.xeonr.io/xeonr.functions.v2.VersionsService/ListVersions" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"versions": [
"map[createdAt:2026-10-22T09:30:00Z functionId:fn-3f9a2c71d4e8b605 gitRef:main state:VERSION_STATE_READY versionId:v-7c1e04b9a2d35f68]"
],
"nextCursor": "50"
}Get a version POST
Returns one version of the function: its state, build outputs, source ref and commit, and the failure reason of a failed build. Poll it to follow a build. `versionId` is required; a version that belongs to another function is `NOT_FOUND`. Needs the viewer role in the owning team. Callable with a console session or a team API key (`Authorization: Bearer xk_…`). **Required scopes:** `functions:functions:read`
Set the active version POST
Points the function's traffic at an already-built version and returns the version that is now active. Nothing is rebuilt, so setting an older version is an instant rollback, and setting the version that is already active changes nothing. Only a `VERSION_STATE_READY` version can be activated (`FAILED_PRECONDITION` otherwise), and an old container version built before app versions were recorded must be redeployed instead. A version of another function is `NOT_FOUND`. Needs the editor role in the owning team. A `function.promote` event is recorded. Callable with a console session or a team API key (`Authorization: Bearer xk_…`). **Required scopes:** `functions:functions:edit`