List API keys

Lists API keys for the authenticated workspace. After creating a key, set UNIPOST_API_KEY in your environment — the UniPost SDK clients read it automatically by default.
https://api.unipost.dev
GET/v1/api-keys
Authorization
In header · Bearer <token>

Authorization

AuthorizationBearer <token>In header
Workspace API key, or a Clerk session JWT for dashboard callers.

Response Body

200
data[]array
API keys for the authenticated workspace.
data[].idstring
API key record ID.
data[].namestring
Human-readable label.
data[].prefixstring
Safe key prefix such as up_live_abcd.
data[].environmentstring
"production" or "test".
data[].created_atstring
Creation timestamp.
data[].last_used_atstring | null
Last request timestamp, if used.
data[].expires_atstring | null
Optional expiration timestamp.
meta.totalnumber
Total API keys returned.
meta.limitnumber
Applied list limit.
request_idstring
Request identifier for debugging and support.
401
error.codestring
Usually "UNAUTHORIZED" or "INTERNAL_ERROR".
error.normalized_codestring
Lowercase alias such as "unauthorized".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.
500
error.codestring
Usually "UNAUTHORIZED" or "INTERNAL_ERROR".
error.normalized_codestring
Lowercase alias such as "unauthorized".
error.messagestring
Human-readable error message.
request_idstring
Request identifier for debugging and support.