xeonr.auth.api.v1.ApiKeysService
ApiKeysService is how a product issues and verifies API keys without implementing them. Every method is for the product's own service account, about the product's own application: a key is created, listed, updated, revoked and verified only by the application it belongs to. Keys are long-lived bearer secrets of the form `xk_<40 chars><6-char checksum>`, stored hashed and returned exactly once. A product presents a key it receives to VerifyApiKey (go-platform's authn does this, with a short cache) and acts on the answer. Auth itself never accepts an API key as a caller credential; a key is only ever a token in VerifyApiKey's request body.
postCreate API Key
Creates a key on the calling service account's application and returns its secret exactly once. The owner is a user, a service account, a team or one of the application's resources; scopes are checked against the application's scope set and the owner's current cap. Auth cannot know who owns a product resource, so the calling service account vouches that the acting user may bind the resources named — it is recorded as the key's asserted_by. Service accounts only. **Required scopes:** `auth:api-keys:manage`
postGet API Key
Returns one of the application's keys, with effective scopes. Service accounts only. **Required scopes:** `auth:api-keys:manage`
postGet API Key Policy
Returns the calling application's key limits and the values in force. Service accounts only. **Required scopes:** `auth:api-keys:manage`
postImport 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`
postList API Keys
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`
postList Legacy Prefixes
Lists the prefixes registered to the calling application. Service accounts only. **Required scopes:** `auth:api-keys:import`
postRegister 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`
postRevoke API Key
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`
postRevoke API Keys For Resource
For a product deleting a resource: revokes every key the resource owns and removes it from every key bound to it, revoking a BOUND key that is left with no bindings. Service accounts only. **Required scopes:** `auth:api-keys:manage`
postSet API Key Policy
Sets the calling application's key limits. A zero field restores the platform default; max_lifetime_days -1 sets no lifetime cap. Existing keys are not touched. Service accounts only. **Required scopes:** `auth:api-keys:manage`
postUpdate API Key
Replaces the fields named in update_mask: name, description, scopes, bindings, attributes, expires_at. Bindings are replaced as a whole and re-checked as on creation; a BOUND key cannot be left without bindings. Bumps the key's version. Service accounts only. **Required scopes:** `auth:api-keys:manage`
postVerify API Key
Resolves a presented key to its owner, effective scopes and bindings, checking on every call that it is not revoked or expired and that its owner is still active. A key of another application answers UNKNOWN. Callers cache the answer for cache_ttl_seconds; go-platform's authn does this for you. Service accounts only. **Required scopes:** `auth:api-keys:verify`
CI Workload Tokens
How a CI job gets a short-lived token for your product without a stored key, and how your product accepts it.
Create API Key POST
Creates a key on the calling service account's application and returns its secret exactly once. The owner is a user, a service account, a team or one of the application's resources; scopes are checked against the application's scope set and the owner's current cap. Auth cannot know who owns a product resource, so the calling service account vouches that the acting user may bind the resources named — it is recorded as the key's asserted_by. Service accounts only. **Required scopes:** `auth:api-keys:manage`