Api Keys

Returns a paginated list of API keys scoped to the authenticated tenant.

The plaintext key value is never returned — only key metadata (name, role, last_used_at).

get/api/api-keys

Request

  • Base URL: http://localhost:4100
  • URL: http://localhost:4100/api/api-keys
  • Auth: none required

Query parameters

pageinteger

Page number (1-indexed)

page_sizeinteger

Items per page (max: 100)

order_bystring

Field to sort by

order_directionsstring

Sort direction (asc or desc)

Response

Api key list

Example response

{
  "data": [
    {
      "id": "02ef9c5f-29e6-48fc-9ec3-7ed57ed351f6",
      "inserted_at": "2020-04-20T16:20:00Z",
      "last_used_at": "2020-04-20T16:20:00Z",
      "name": "",
      "raw_key": "",
      "role_id": "02ef9c5f-29e6-48fc-9ec3-7ed57ed351f6",
      "tenant_id": "02ef9c5f-29e6-48fc-9ec3-7ed57ed351f6",
      "updated_at": "2020-04-20T16:20:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "page_size": 50,
    "total_count": 125,
    "total_pages": 3
  }
}

Changes