List a team's API keys
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
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 <= 255include_revoked lists revoked keys too, with revoked_at set. validate:skip a flag; both values are meaningful
cursor 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.ApiKeysService/ListApiKeys" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"apiKeys": [
"map[apiKeyId:urn:xeonr:auth:api-key:6d1b2c9e-84f3-4a07-b5e1-3c9a7d2f0e48 createdAt:2026-10-22T09:30:00Z keyPrefix:7Hq2 lastUsedAt:2026-10-23T09:30:00Z name:checkout-ci role:API_KEY_ROLE_EDITOR]"
],
"nextCursor": "50"
}Create a team API key POST
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`
Revoke a team API key POST
Revokes one of the team's API keys in Xeonr Auth, by the URN `ListApiKeys` returns. A key that does not exist or belongs to another team is `NOT_FOUND`. Verifiers cache a key's answer for up to 30 seconds, so a revoked key stops working within that time. 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`). A `token.delete` event is recorded in the activity feed. **Required scopes:** `functions:functions:edit`