API Tokens
Community
Enterprise

List Auth Tokens

Changed on

Get all auth tokens.

get/api/v2/tokens

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v2/tokens
  • Auth: one of:
    • HTTP bearer
    • API key in header Authorization and API key in header RequestDate and API key in header Signature

Query parameters

user_idstring

Filter results by column string-formatted uuid value. Valid filter predicates are eq, neq.

Provide a user_id to filter tokens by. Admin users may filter by any user_id. Non-admin users may only filter by their own user_id using eq.

sort_bystring

Sort by column. Can be used multiple times; prepend a hyphen for descending order. See parameter description for details about which columns are sortable.

Sortable columns are user_id, client_id, name, last_access, created_at, updated_at, deleted_at.

namestring

Filter results by column string value. Valid filter predicates are eq, ~eq, neq.

keystring

Filter results by column string value. Valid filter predicates are eq, ~eq, neq.

hmac_methodstring

Filter results by column string value. Valid filter predicates are eq, ~eq, neq.

last_accessstring

Filter results by column timestamp value formatted as an RFC-3339 string. Valid filter predicates are eq, neq, gt, gte, lt, lte.

idstring

Filter results by column string-formatted uuid value. Valid filter predicates are eq, neq.

created_atstring

Filter results by column timestamp value formatted as an RFC-3339 string. Valid filter predicates are eq, neq, gt, gte, lt, lte.

Filter results by created_at value. See filter schema details for valid predicates.

updated_atstring

Filter results by column timestamp value formatted as an RFC-3339 string. Valid filter predicates are eq, neq, gt, gte, lt, lte.

Filter results by updated_at value. See filter schema details for valid predicates.

deleted_atstring

Filter results by column timestamp value formatted as an RFC-3339 string. Valid filter predicates are eq, neq, gt, gte, lt, lte.

Filter results by deleted_at value. See filter schema details for valid predicates.

Response

OK

Changes

    • info

      added the optional property //// to the response with the status

    • breaking

      added the pattern ^((eq|neq):)?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ to the query request parameter id

    • breaking

      added the pattern ^((eq|neq):)?[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ to the query request parameter user_id

    • info

      for the query request parameter id, the format was generalized from uuid to no format

    • info

      for the query request parameter user_id, the format was generalized from uuid to no format