Create a team API key
Creates a team-owned API key in Xeonr Auth for CI and returns it with its secret (xk_…). The secret appears only in this response, because Xeonr Auth stores it hashed. role must be API_KEY_ROLE_EDITOR (scopes functions:functions:read and functions:functions:edit) or API_KEY_ROLE_VIEWER (functions:functions:read). name is required (at most 64 characters), description is at most 512 characters, and expiresAt must be in the future, or unset for a key that never expires. Xeonr Auth may refuse an expiry beyond the application's maximum lifetime.
Needs the admin role in the team, held by a signed-in member of it: the key is created on their behalf. Needs a signed-in user: team API keys are refused on every method of this service (PERMISSION_DENIED). A token.create event is recorded in the activity feed.
Required scopes: functions:functions:edit
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
owner_team is the team's URN.
^[A-Za-z0-9:._-]+$1 <= length <= 2551 <= length <= 64role must be API_KEY_ROLE_EDITOR or API_KEY_ROLE_VIEWER. Never owner or admin: a key that could mint more keys would make revocation meaningless.
"API_KEY_ROLE_UNSPECIFIED" | "API_KEY_ROLE_EDITOR" | "API_KEY_ROLE_VIEWER"description is what the key is for, up to 512 characters.
length <= 512expires_at is when the key stops working; unset is never. Xeonr Auth refuses one beyond the application's maximum lifetime, if it sets one.
date-timeResponse Body
application/json
application/json
curl -X POST "https://functions.xeonr.io/xeonr.functions.v2.ApiKeysService/CreateApiKey" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"apiKey": "map[apiKeyId:urn:xeonr:auth:api-key:6d1b2c9e-84f3-4a07-b5e1-3c9a7d2f0e48 createdAt:2026-10-22T09:30:00Z keyPrefix:7Hq2 name:checkout-ci role:API_KEY_ROLE_EDITOR]",
"secret": "xk_live_…"
}API keys
A team's API keys. Requires a signed-in user; API keys are refused here.
List a team's API keys POST
Lists the team's API keys as Xeonr Auth reports them, including `fnt_…` tokens imported from before keys moved to Xeonr Auth. Each key comes with its role, scopes, creator, expiry and when it was last used, never its secret. Revoked keys are left out unless `includeRevoked` is set. Pages default to 50 keys and are capped at 500 (`limit`); pass `nextCursor` back as `cursor` until it comes back empty. Needs the admin role in the team. Needs a signed-in user: team API keys are refused on every method of this service (`PERMISSION_DENIED`). **Required scopes:** `functions:functions:edit`