Skip to main content
GET
/
v1
/
api-keys
List API Keys
curl --request GET \
  --url https://api.truthlocks.com/v1/api-keys \
  --header 'X-API-Key: <api-key>'
[
  {
    "id": "880e8400-e29b-41d4-a716-446655440000",
    "name": "Production API Key",
    "prefix": "tl_live_",
    "status": "ACTIVE",
    "scopes": ["attestations:mint", "attestations:read"],
    "daily_quota": 10000,
    "rate_limit_per_minute": 1000,
    "created_at": "2026-01-01T00:00:00Z"
  },
  {
    "id": "880e8400-e29b-41d4-a716-446655440001",
    "name": "Development Key",
    "prefix": "tl_dev_",
    "status": "ACTIVE",
    "scopes": ["*"],
    "daily_quota": 1000,
    "rate_limit_per_minute": 100,
    "created_at": "2026-01-05T00:00:00Z"
  }
]
Returns all API keys for the authenticated organization. Secrets are masked and not returned in this endpoint.

Parameters

Responses

[
  {
    "id": "880e8400-e29b-41d4-a716-446655440000",
    "name": "Production API Key",
    "prefix": "tl_live_",
    "status": "ACTIVE",
    "scopes": ["attestations:mint", "attestations:read"],
    "daily_quota": 10000,
    "rate_limit_per_minute": 1000,
    "created_at": "2026-01-01T00:00:00Z"
  },
  {
    "id": "880e8400-e29b-41d4-a716-446655440001",
    "name": "Development Key",
    "prefix": "tl_dev_",
    "status": "ACTIVE",
    "scopes": ["*"],
    "daily_quota": 1000,
    "rate_limit_per_minute": 100,
    "created_at": "2026-01-05T00:00:00Z"
  }
]

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Response

List of API keys

id
string<uuid>
name
string
prefix
string

First 8 characters of the key

status
enum<string>
Available options:
ACTIVE,
REVOKED
scopes
string[]
daily_quota
integer
rate_limit_per_minute
integer
created_at
string<date-time>