List API Keys

GET /api/v1/orgs/me/apikeys

Lists all API keys for the organization associated with the authenticated user.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • created_at string Required
    • id integer Required
    • label string Required
    • organization_id integer Required
    • revoked_at string Required
  • 401 application/json

    Unauthorized or Org ID not found

    Hide response attribute Show response attribute object
    • * string Additional properties
  • 500 application/json

    Failed to list API keys

    Hide response attribute Show response attribute object
    • * string Additional properties
GET /api/v1/orgs/me/apikeys
curl \
 --request GET 'http://api.example.com/api/v1/orgs/me/apikeys' \
 --header "Authorization: $API_KEY"
Response examples (200)
[
  {
    "created_at": "string",
    "id": 42,
    "label": "string",
    "organization_id": 42,
    "revoked_at": "string"
  }
]
Response examples (401)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}
Response examples (500)
{
  "additionalProperty1": "string",
  "additionalProperty2": "string"
}