Herald
OpenapiApi keys

List all API Keys for a realm

Returns a paginated list of API keys. Hash and plaintext are never exposed.

GET
/api/api-keys

Returns a paginated list of API keys. Hash and plaintext are never exposed.

Query Parameters

page?integer

Page number (0-based, default 0)

Formatint64
pageSize?integer

Page size (default 20)

Formatint64

Response Body

API Key list

application/json
  1. response
items*array<>
page*integer
Formatint64
pageSize*integer
Formatint64
total*integer
Formatint64
Example Request
curl -X GET 'https://example.com/api/api-keys'
Example Response
{
  "items": [
    {
      "clientAppEnabled": true,
      "clientAppId": "d386372c-64d9-49da-bb8b-4b5eda60f56c",
      "clientAppName": "string",
      "createdAt": "string",
      "enabled": true,
      "expiresAt": "string",
      "id": "string",
      "lastUsedAt": "string",
      "name": "string",
      "realmId": "string",
      "roles": [
        {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string"
        }
      ]
    }
  ],
  "page": 0,
  "pageSize": 0,
  "total": 0
}