Skip to main content

Create a sub account API token.

POST 

/v1/api-tokens/sub-account

Creates a new API token for a sub account. Must be run with an API token of the owner account. Once created, you can view the details for this new token in Manage tokens > API tokens, when you are logged in to the relevant sub account.

Note: To activate Prometheus API over our Metrics account contact Logz.io's support team.

Request

Body

required
    name string

    Default value: string

    The name provided in the request for a new API token for the sub account

    accountId int32

    Logz.io sub account ID.

Responses

successful operation

Schema
    id int32

    ID of the newly created API token for the sub account

    name string

    The name of the newly created API token for the sub account. Uses the name provided in the request.

    token string

    The API token

    createdAt Instant

    The time at which the new sub account API token was created

Loading...