Auth

GET /v1/auth/keys

List the caller's API keys (id, name, keyPrefix, scopes, createdAt, expiresAt, revokedAt). Optional ?workspaceId= to list keys scoped to a member workspace.

unison-brain
GET /v1/auth/keys

List the caller's API keys (id, name, keyPrefix, scopes, createdAt, expiresAt, revokedAt). Optional ?workspaceId= to list keys scoped to a member workspace. Never returns hashes.

Required scope: brain:read

Query parameters

NameRequiredNotes
workspaceIdnoOptional: list keys for a workspace the caller is a member of (default = key's own workspace).

Example

curl -X GET 'https://brain.unisonlabs.ai/v1/auth/keys' \
  -H "Authorization: Bearer $UNISON_TOKEN"

Returns the JSON described above on success, or an error envelope { "error": { "code", "message" } } on failure.