Skip to Content
Xeonr Developer Docs
API SpecificationAPI keys

Revoke a team API key

POST
/xeonr.functions.v2.ApiKeysService/RevokeApiKey

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
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
apiKeyId?string

api_key_id is the key's URN, as ListApiKeys returns it.

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

Response 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 '{}'
{}