Skip to content
Skip to Content

List API keys

GET
/api-keys

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.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Query parameters

limit?integer

How many items to return, 1 to 100. Default 50.

Range1 <= value <= 100
cursor?string

The nextCursor of the previous page.

Lengthlength <= 500

Response body

List API keys

application/json
  1. response
data*array<>
nextCursor*|

Pass as cursor for the next page; null on the last.

Example request
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"}