All API key management endpoints require an API key with
admin scope.The API key object
The first 12 characters of the raw key (e.g.
veto_a1b2c3d4). Use this to identify which key was used — it is safe to display and log.Permission scopes granted to this key.
["admin"] grants full access. ["read-only"] restricts to non-mutating endpoints.ISO 8601 timestamp of the most recent authenticated request, or
null if the key has never been used. Only available on list responses.POST /v1/api-keys
Create a new API key for your workspace.Permission scopes for the key. Use
["admin"] for full access or ["read-only"] for read-only access.201 with the key metadata and the raw key. The key field is not included in any subsequent responses.
GET /v1/api-keys
List all API keys in your workspace. The raw key and its hash are never included in list responses. Returns a paginated envelope with key metadata objects.DELETE /v1/api-keys/:id
Revoke an API key. The key is permanently deleted and will no longer authenticate requests. This action cannot be undone. Returns204 No Content on success.