Skip to content

List API keys

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

The organization’s keys, masked — only the display prefix (start) is returned; the plaintext exists only at creation. Session-only, owner/admin.

The organization’s keys.

Media typeapplication/json
object
keys
required
Array<object>

A stored API key, masked — the plaintext is only returned at creation.

object
id
required
string
name
required
string | null
start
required

The visible key prefix for display (e.g. wah_CL).

string | null
enabled
required
integer
Allowed values: 0 1
created_at
required

ISO 8601 (key records come from the auth layer).

string format: date-time
expires_at
required

ISO 8601 expiry, or null for a non-expiring key.

string | null format: date-time
site_ids
required

The key’s site scope, or null for full organization access.

Array<string> | null
Example
{
"keys": [
{
"enabled": 0
}
]
}

Missing or invalid credentials.

Media typeapplication/json
object
error
required

A human-readable error message.

string
Example
{
"error": "invalid api key"
}

A dashboard session is required (API-key callers are rejected), or the session’s role does not allow this action.

Media typeapplication/json
object
error
required

A human-readable error message.

string
Example
{
"error": "a dashboard session is required"
}