Skip to main content

List the team's active API keys without key values

get/v1/team/api_keys

List the team's active API keys without key values (for team admins)

Request​

Authorization

  • Authorizationstringheaderrequired

    Key in the format Bearer <API-key>. Create a key on the API keys page.

Query Parameters

  • page_size integer<int64>
  • page integer<int64>
  • user_id integer<int64>

    Only keys of the user with this ID; 0 means keys of all members

  • search string

    Case-insensitive search by description and owner name and email

  • order_by string

    Sort order: created_at (default, newest first), description (by description), last_used_at (most recently used first), owner (by owner name, or by email if there is no name)

Response

  • Array [
  • created_atstring<date-time>

    Creation date

    descriptionstring

    Description

    Example: CI deploy key
    expire_atstring<date-time>

    Expiration date

    idinteger<int64>

    API key ID

    Example: 42
    last_used_atstring<date-time>

    Last used date

    owner object
    activeboolean

    Active flag

    avatar_urlstring

    Avatar

    Example: https://www.gravatar.com/avatar/00000000000000000000000000000000
    emailstring

    Email

    Example: jane@example.com
    idinteger<int64>

    Identifier

    Example: 42
    namestring

    Name

    Example: Jane Doe
    rolestring

    Role

    Possible values: [primary_owner, owner, admin, member]

    Example: member
    scopesstring[]

    Permissions

    team object
    idinteger<int64>

    Team ID

    Example: 7
    namestring

    Name

    Example: Acme Inc
    slugstring

    Team slug, used as the suffix of dynamic subdomains

    Example: acme
    typestring

    Type

    Possible values: [personal, pro]

    Example: pro
    tokenstring

    Token

    tunnels object
    allow_httpboolean

    Allows creating HTTP tunnels

    allow_tcpboolean

    Allows creating TCP tunnels

    domainsstring[]

    Reserved domains that tunnels are allowed on

    endpointsstring[]

    Aliases of reserved endpoints that tunnels are allowed on

    limit_by_active_tunnelsinteger<int64>

    Limit on the number of active tunnels, 0 — unlimited

    limit_by_created_tunnelsinteger<int64>

    Limit on the total number of created tunnels, 0 — unlimited

    service_namestring

    Name of the service the key was issued for by tuna service install

  • ]