API Key

API key metadata used to authenticate API requests.

  • created
    Type: string Format: date-time
    required

    Time at which the API key was created.

  • id
    Type: string
    max length:  
    100
    required

    Unique identifier for the object.

  • livemode
    Type: boolean
    required

    Has the value true if the object exists in live mode or the value false if the object exists in test mode.

  • name
    Type: string
    max length:  
    100
    required

    The API key's display name.

  • permissions
    Type: array string[]
    required

    Permissions granted to this API key.

  • expires_at
    Type: string | null Format: date-time

    Time at which this key stops being accepted. During rotation this is set on the previous key when a grace period is used.

  • hide_on_next_view
    Type: boolean | null

    Whether clients should hide the key value after the current view.

  • last_used_at
    Type: string | null Format: date-time

    Time at which this API key was last used.

  • parent_key
    Type: string | null

    Identifier of the key this key was rotated from.

  • replaced_by_key
    Type: string | null

    Identifier of the key that replaced this key during rotation.

  • revealable
    Type: boolean | null

    Whether this key can be revealed through an explicit reveal endpoint.

  • role
    Type: string | null

    Role associated with the key when available.

  • secret
    Type: string | null

    Present only on responses explicitly allowed to reveal the key value.

  • secret_redacted
    Type: string | null

    Redacted key value safe for display.

  • status
    Type: string | null enum
    values
    • active

      Key can authenticate requests.

    • expiring

      Key is still accepted during a rotation grace period.

    • disabled

      Key is disabled and cannot authenticate requests.

    • revoked

      Key has been revoked and cannot authenticate requests.

  • type
    Type: string | null enum
    values
    • secret

      Secret key used by server-side integrations.

    • publishable

      Publishable key used by client-side integrations where supported.

    • restricted

      Restricted key with a limited permission set.

  • use_count
    Type: integer | null Format: int64

    Number of times this API key has been used, when available.