Register Legacy Prefix
Claims a product's historical key prefix (cpk_) for the calling application, so tokens carrying it can be imported and verified without customers rotating them. Idempotent for the same application and format.
Service accounts only.
Required scopes: auth:api-keys:import
JWT access token obtained via OAuth2 flow or service account
In: header
Header Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
application/json
The product's token prefix, underscore included (cpk_, or a
multi-part one like burrow's burrow_tok_). Globally unique: two
applications cannot claim the same prefix.
^[a-z][a-z0-9_]*_$2 <= length <= 16How a legacy (product-issued) key's presented token maps to the stored hash. New xk_ keys are always SHA256_FULL.
"API_KEY_HASH_FORMAT_UNSPECIFIED" | "API_KEY_HASH_FORMAT_SHA256_FULL" | "API_KEY_HASH_FORMAT_SHA256_SUFFIX"Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.ApiKeysService/RegisterLegacyPrefix" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"prefix": {
"prefix": "string",
"hashFormat": "API_KEY_HASH_FORMAT_UNSPECIFIED",
"applicationId": "string",
"createdAt": "2023-01-15T01:30:15.01Z"
}
}List Legacy Prefixes POST
Lists the prefixes registered to the calling application. Service accounts only. **Required scopes:** `auth:api-keys:import`
Revoke API Key POST
Revokes a key. The row is kept for the audit trail; verifiers see the revocation within their cache TTL. Service accounts only. **Required scopes:** `auth:api-keys:manage`