Skip to content

List API keys without revealing their secrets

GET
/api-keys
curl --request GET \
--url https://api.invogi.com/v1/api-keys \
--header 'Authorization: Bearer <token>'

ADMIN or OWNER; requires API access to create keys. The plaintext secret is returned only on creation. API keys are workspace-bound and operate at ANALYST role; scopes do not grant an administrative user role.

X-Invogi-Organization
string format: uuid

For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.

Successful response

Media typeapplication/json
object
items
required
Array<object>
object
id
required
string
prefix
required
string
scopes
required
Array<string>
lastUsedAt
required
Any of:
null
createdAt
required
string format: date-time
revokedAt
required
Any of:
null
api_access_enabled
required
boolean

Example generated

{
"items": [
{
"id": "example",
"prefix": "example",
"scopes": [
"example"
],
"lastUsedAt": "example",
"createdAt": "2026-04-15T12:00:00Z",
"revokedAt": "example"
}
],
"api_access_enabled": true
}

Missing or invalid API key

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}