List 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 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"}Synchronize external posts POST
> **Coming soon** — Analytics endpoints are being rolled out and may return empty data until the rollout completes. Fetches an account's latest posts published directly on its platform. Supplying `url` or `postId` searches for a specific post. Requests made within the per-account debounce window return cached results with `synced.skipped` set to true.
Create an API key POST
Creates an API key and returns the full key value exactly once. This endpoint requires a read-write API key with access to all profiles; profile-scoped keys receive a `403`. Store the returned `key` securely — it cannot be retrieved again after this response.