Revoke a team API key
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
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 <= 255api_key_id is the key's URN, as ListApiKeys returns it.
^[A-Za-z0-9:_.-]+$1 <= length <= 255Response Body
application/json
application/json
curl -X POST "https://functions.xeonr.io/xeonr.functions.v2.ApiKeysService/RevokeApiKey" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{}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`
Build logs
A version's build output. Reachable with a team API key.