PostZen
API Keys

List API keys

GET
/v1/api-keys

Returns the API keys for the authenticated account. The full key value is never returned; only a masked keyPreview is shown. Read-only and read-write API keys are accepted.

Authorization

bearerAuth
AuthorizationBearer <token>

PostZen API key.

In: header

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/api-keys"
{  "apiKeys": [    {      "id": "jk91m3xw7ktr5v2n8q4zs0b6hf1yg3pd",      "name": "Production key",      "keyPreview": "pzn_live_a1b2c3d4e...",      "createdAt": "2026-06-13T16:00:00.000Z",      "lastUsedAt": "2026-07-22T09:14:00.000Z",      "scope": "full",      "profileIds": [],      "permission": "read-write"    },    {      "id": "jk52t8nqm4wr9v3c7z1p6bs0dh5fg2yx",      "name": "Marketing read-only",      "keyPreview": "pzn_live_9f8e7d6c5...",      "createdAt": "2026-06-19T16:00:00.000Z",      "lastUsedAt": null,      "scope": "profiles",      "profileIds": [        {          "_id": "jh72r5nqk9wx3v8m1t4cz6bs0fy5dg3e",          "name": "Marketing Team",          "color": "#4caf50"        }      ],      "permission": "read"    }  ]}
{  "error": "Unauthorized"}
{  "error": "Failed to list API keys"}