Skip to main content

Create API token for organization

POST 

/organizations/organization/api_tokens

Create a new API token for a given organization

Scopes

  • api_tokens

OAuth2 Scopes

When using OAuth2 authentication, scopes are prefixed with api.katapult.io/core/v1/.

Request

Body

    organization

    object

    required

    All 'organization[]' params are mutually exclusive, only one can be provided.

    id string
    sub_domain string

    properties

    object

    required

    name string
    authorized_ip_addresses string[]
    expires_at integer
    scopes string[]

    annotations

    object[]

  • Array [

  • key stringrequired
    value string
  • ]

Responses

Create a new API token for a given organization

Schema

    api_token

    object

    required

    id string
    name string
    organization_id stringnullable
    authorized_ip_addresses string[]
    expires_at integernullable
    rate_limit integer
    scopes string[]
    secret stringnullable

    The secret will only be returned on token creation or when a new secret is generated.

    annotations

    object[]

    required

    Annotations for this API token

  • Array [

  • key stringrequired
    value string
  • ]

Loading...