Create personal access token

以 Markdown 格式查看

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

请求头

Authorizationstring必需
Bearer JWT access token
X-Workspace-Idstring必需
Workspace UUID

请求

Name, scopes, optional expiry
expiresAtstring可选
namestring可选
scopeslist of strings可选

响应

Created
dataobject

错误

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