Skip to main content

Create a Personal-Access-Token (PAT)

POST 

/users/:userId/pats

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Deprecated: use user service v2 AddPersonalAccessToken instead.

Generates a new PAT for the user. Currently only available for machine users. The token will be returned in the response, make sure to store it. PATs are ready-to-use tokens and can be sent directly in the authentication header.

Request​

Responses​

OK