List API keys

Active keys of the calling key's mode (a test key lists test keys).

GET/v1/api_keys

Details

Never the secrets.

Responses

  • 200Page of ApiKey

    Keys

  • 401Error

    Missing, malformed, or revoked API key

  • 402Error

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429Error

    Rate limit or quota exceeded

Response Fields

The body is a page: data (the array), has_more, and next_cursor (null on the last page). Each item in data:

  • idstring
  • objectapi_key
  • namestring
  • modetest, live
  • prefixstring

    The start of the secret, for recognizing it

  • scopesarray of string

    Empty = full access

  • statusactive, paused, revoked
  • created_atstring (date-time)
  • last_used_atstring (date-time)

    Nullable.

Errors

Every error has the same JSON shape, and request_id matches the X-Request-Id response header. Errors lists every code and what to do about it.

  • 401

    Missing, malformed, or revoked API key

  • 402

    Billable live calls only: the prepaid credit balance cannot cover the call (insufficient_credits); nothing was done or charged

  • 429

    Rate limit or quota exceeded