List API keys
GET
Your own keys; the owner and admins see everyone's. Keys are managed by a signed-in person (the console or the CLI), never by another key.
bearerheader
AuthorizationBearer <token>An API key (opk_…) or a CLI token (opc_…).
limit?integerHow many items to return, 1 to 100. Default 50.
Range
1 <= value <= 100cursor?stringThe nextCursor of the previous page.
Length
length <= 500List API keys
application/json- response
data*array<>nextCursor*|Pass as cursor for the next page; null on the last.
curl "https://openpanel.sh/api/v1/api-keys" \ -H "Authorization: Bearer $OPENPANEL_TOKEN"Example response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "prefix": "string", "scope": "view", "projectIds": [ "b2d9859a-b2e9-4f49-b393-9a25d0eff2f8" ], "expiresAt": "2019-08-24T14:15:22Z", "lastUsedAt": "2019-08-24T14:15:22Z", "revokedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "string", "creatorName": "string", "creatorEmail": "string" } ], "nextCursor": "string"}Read the audit log GET
Every change in the organization, newest first: who made it (a person, or the person behind an API key), when, from where, and what changed. Owner and admins only.
Create an API key POST
The key acts as you, never with more than your own access, capped by its scope and optionally limited to some projects. The key is in this answer only.