Skip to main content
GET
/
v1
/
consumer
/
api-keys
List Consumer API Keys
curl --request GET \
  --url https://api.truthlocks.com/v1/consumer/api-keys \
  --header 'Authorization: Bearer <token>'
[
  {
    "key_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "My integration key",
    "prefix": "tlk_abcd1234",
    "status": "active",
    "scopes": [
      "consumer:read",
      "consumer:write",
      "attestations:mint",
      "attestations:read",
      "verify:read"
    ],
    "created_at": "2026-03-01T12:00:00Z",
    "expires_at": "2026-05-30T12:00:00Z",
    "last_used_at": "2026-03-20T09:15:00Z"
  }
]
Returns all API keys belonging to the authenticated consumer. Secrets are never included in list responses — only the key prefix is shown.

Responses

[
  {
    "key_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "My integration key",
    "prefix": "tlk_abcd1234",
    "status": "active",
    "scopes": [
      "consumer:read",
      "consumer:write",
      "attestations:mint",
      "attestations:read",
      "verify:read"
    ],
    "created_at": "2026-03-01T12:00:00Z",
    "expires_at": "2026-05-30T12:00:00Z",
    "last_used_at": "2026-03-20T09:15:00Z"
  }
]

Authorizations

Authorization
string
header
required

JWT for user-initiated operations

Response

List of consumer API keys

key_id
string<uuid>
name
string

Human-readable label for the key

prefix
string

First 12 characters of the key, for display purposes

status
enum<string>
Available options:
active,
revoked
scopes
string[]

Permission scopes granted to this key

created_at
string<date-time>
expires_at
string<date-time>

Keys expire 90 days after creation

last_used_at
string<date-time>

Timestamp of the last request made with this key