Import Legacy API Keys
Imports a product's existing keys by hash under a registered prefix. Idempotent on key_hash: a hash already present is reported, not changed. Entries are validated individually and a rejected entry does not fail the batch.
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
A prefix previously registered with RegisterLegacyPrefix.
2 <= length <= 161 <= items <= 500Response Body
application/json
application/json
curl -X POST "https://auth.xeonr.io/xeonr.auth.api.v1.ApiKeysService/ImportLegacyApiKeys" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"imported": 0,
"alreadyPresent": 0,
"failed": 0,
"results": [
{
"externalRef": "string",
"keyHash": "string",
"keyId": "string",
"alreadyPresent": true,
"error": "string"
}
]
}Get API Key Policy POST
Returns the calling application's key limits and the values in force. Service accounts only. **Required scopes:** `auth:api-keys:manage`
List API Keys POST
Lists the application's keys for an owner, or the keys owned by or bound to a resource. Revoked keys are included only on request. Service accounts only. **Required scopes:** `auth:api-keys:manage`