List API keys
GET/api/v1/api/v1/api-keys
curl -X GET 'https://www.unitpost.com/api/v1/api/v1/api-keys' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"object": "list",
"has_more": false,
"data": [
{
"object": "api_key",
"id": "id_123",
"name": "Example",
"prefix": "string",
"scope": "full",
"capabilities": [
"string"
],
"last_used_at": "2026-01-01T00:00:00.000Z",
"revoked_at": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z"
}
]
}Retrieve a list of your workspace's API keys — the key prefix and metadata only, never the secret. Create a new key with Create an API key or revoke one with Revoke an API key. This endpoint is session-gated: it requires a dashboard session and cannot be called with a Bearer API key.
Parameters3 fields
| Field | Type | Description |
|---|---|---|
limit | integer · query | Max rows to return (default 20, max 100). |
after | string · query | Return rows after this id (forward paging). |
before | string · query | Return rows before this id (backward paging). |
Response · 200 fields9 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
namerequired | string | — |
prefixrequired | string | — |
scoperequired | enumfull | sending | read_only | — |
capabilitiesrequired | string[] | — |
last_used_atrequired | object | — |
revoked_atrequired | object | — |
created_atrequired | string | — |