Skip to main content

Get a user API key

get/v1/api_keys/{id}

Request​

Authorization

  • Authorizationstringheaderrequired

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

Path Parameters

  • id integer<int64>required

Response

    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