Skip to Content
Auth and API keys

List API keys

Permissionapi-keys:readAuthentication
GET
/api-keys

Lists safe credential metadata in reverse creation order. Secret and hash material are never returned. Follow next_cursor until null for a complete traversal.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer

Number of API keys to return.

Range1 <= value <= 100
Default50

Response Body

API keys, including revoked and expired keys.

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

Cursor for the next page, or null after the final page.

Example Request
curl -X GET 'https://api.kejue.co/v1/api-keys'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "prefix": "string",      "name": "string",      "scopes": [        "string"      ],      "status": "active",      "created_by_user_id": "209f54c4-4c33-43bc-9c6a-ef4c65ad7473",      "created_by_api_key_id": "16a8c1ea-aaaf-49f0-9266-c657c48ceff3",      "last_used_at": "2019-08-24T14:15:22Z",      "expires_at": "2019-08-24T14:15:22Z",      "revoked_at": "2019-08-24T14:15:22Z",      "version": 1,      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": "string"}