Skip to main content

Create Personal Access Token

POST 

/personal-access-tokens

This creates a personal access token.

Request

Body

required

Name and scope of personal access token.

    name stringrequired

    The name of the personal access token (PAT) to be created. Cannot be the same as another PAT owned by the user for whom this PAT is being created.

    scope string[]nullable

    Scopes of the personal access token. If no scope is specified, the token will be created with the default scope "sp:scopes:all". This means the personal access token will have all the rights of the owner who created it.

Responses

Created. Note - this is the only time Personal Access Tokens' secret attribute will be displayed.

Schema
    id stringrequired

    The ID of the personal access token (to be used as the username for Basic Auth).

    secret stringrequired

    The secret of the personal access token (to be used as the password for Basic Auth).

    scope string[]nullablerequired

    Scopes of the personal access token.

    name stringrequired

    The name of the personal access token. Cannot be the same as other personal access tokens owned by a user.

    owner objectrequired

    Personal access token owner's identity.

    type string

    Possible values: [IDENTITY]

    Personal access token owner's DTO type.

    id string

    Personal access token owner's identity ID.

    name string

    Personal access token owner's human-readable display name.

    created date-timerequired

    The date and time, down to the millisecond, when this personal access token was created.

Loading...