Create personal access token

View as Markdown

Creates a PAT; plaintext token is returned once in the response. JWT only — PAT bearer tokens cannot be used.

Headers

AuthorizationstringRequired
Bearer JWT access token
X-Workspace-IdstringRequired
Workspace UUID

Request

Name, scopes, optional expiry
expiresAtstringOptional
namestringOptional
scopeslist of stringsOptional

Response

Created
dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error