Get a function
Returns one function by functionId, or by name (its assigned hostname label) when no id is given. One of the two is required (INVALID_ARGUMENT). The response embeds the active and latest versions, as ListFunctions does.
Needs the viewer role in the owning team. An unknown function is NOT_FOUND; one in a team the caller cannot read is PERMISSION_DENIED. 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
Either function_id or name; name is what a human has to hand.
^[A-Za-z0-9_-]*$length <= 64^[A-Za-z0-9._-]*$length <= 128Response Body
application/json
application/json
curl -X POST "https://functions.xeonr.io/xeonr.functions.v2.FunctionsService/GetFunction" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"function": "map[activeVersionId:v-7c1e04b9a2d35f68 build:map[entrypoint:[node server.js] packages:[ffmpeg] port:8080] createdAt:2026-10-22T09:30:00Z displayName:Checkout API env:map[LOG_LEVEL:info NODE_ENV:production] filesReadOnly:true functionId:fn-3f9a2c71d4e8b605 git:map[authMode:AUTH_MODE_GITHUB_APP branch:main credentialsSet:false installationId:48213907 provider:GIT_PROVIDER_GITHUB repo:acme/checkout-api] kind:KIND_NODE name:amber-heron-3f9a ownerTeam:urn:xeonr:auth:team:0f6b5f8c-3d2a-4c1e-9b7a-6e2d1c4f8a90 scaling:map[activationTimeoutSec:30 concurrency:40 idleTimeoutSec:300 maxInstances:3 minInstances:0] secretKeys:[STRIPE_SECRET_KEY] updatedAt:2026-10-23T09:30:00Z]"
}Delete a function POST
Deletes the function. Its hostname stops serving, and what it held on the platform is released: the App behind every version, and the workspace that owns their snapshots. The platform clean-up is best effort, so a platform outage does not block the delete. Needs the editor role in the owning team. A `function.delete` event is recorded in the activity feed. Callable with a console session or a team API key (`Authorization: Bearer xk_…`). **Required scopes:** `functions:functions:edit`
List functions POST
Lists functions sorted by their hostname label (`name`), each with its `activeVersion` and `latestVersion` embedded so a status column needs no call per row. `ownerTeam` (a team URN or slug) narrows the listing to one team and needs the viewer role there; a team the caller is not in answers `NOT_FOUND`. Left empty, the listing covers every team in the caller's teams claim, or an API key's own team. `search` is a case-insensitive substring match on `name`. Pages default to 50 functions and are capped at 500 (`limit`). Pass `nextCursor` back as `cursor`; an empty `nextCursor` means the last page. The cursor is opaque, and a function created during a paged walk can shift later pages. `total` counts every function matching `ownerTeam` and `search` across all pages, so a `limit` 1 request is enough to show a count. Callable with a console session or a team API key (`Authorization: Bearer xk_…`). **Required scopes:** `functions:functions:read`