Skip to main content

Create Personal Access Token

This creates a personal access token.

Request Body required

Name and scope of personal access token.

  • name string required

    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[]

    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 string

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

  • secret string

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

  • scope string[]

    Scopes of the personal access token.

  • name string

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

  • owner object

    Details about the owner of the personal access token.

  • type string

    Possible values: [ACCOUNT_CORRELATION_CONFIG, ACCESS_PROFILE, ACCESS_REQUEST_APPROVAL, ACCOUNT, APPLICATION, CAMPAIGN, CAMPAIGN_FILTER, CERTIFICATION, CLUSTER, CONNECTOR_SCHEMA, ENTITLEMENT, GOVERNANCE_GROUP, IDENTITY, IDENTITY_PROFILE, IDENTITY_REQUEST, LIFECYCLE_STATE, PASSWORD_POLICY, ROLE, RULE, SOD_POLICY, SOURCE, TAG_CATEGORY, TASK_RESULT, REPORT_RESULT, SOD_VIOLATION, ACCOUNT_ACTIVITY]

    DTO type

  • id string

    ID of the object to which this reference applies

  • name string

    Human-readable display name of the object to which this reference applies

  • created date-time

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

Loading...