Skip to Content
Xeonr Developer Docs
API SpecificationFunctions

Get a function

POST
/xeonr.functions.v2.FunctionsService/GetFunction

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
AuthorizationBearer <token>

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

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

functionId?string

Either function_id or name; name is what a human has to hand.

Match^[A-Za-z0-9_-]*$
Lengthlength <= 64
name?string
Match^[A-Za-z0-9._-]*$
Lengthlength <= 128
[key: string]?never

Response 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]"
}