Skip to Content
Xeonr Developer Docs
API SpecificationAPI keys

List a team's API keys

POST
/xeonr.functions.v2.ApiKeysService/ListApiKeys

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

ownerTeam?string
Match^[A-Za-z0-9:._-]+$
Length1 <= length <= 255
includeRevoked?boolean

include_revoked lists revoked keys too, with revoked_at set. validate:skip a flag; both values are meaningful

cursor?string

cursor is a previous response's next_cursor; empty for the first page.

limit?integer

limit is the page size: 0 means the default of 50, at most 500.

Rangevalue <= 500
[key: string]?never

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