Create a Personal Access Token (PAT)
POST /pat
POST
/pat
Generate a new Personal Access Token for programmatic API access. PATs are long-lived tokens that can be used instead of regular authentication for automated systems. Requires elevated permissions.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Personal Access Token creation request with expiration and metadata
object
expiresAt
required
Expiration date of the PAT
string format: date-time
metadata
object
key
additional properties
any
Example
{ "name": "my-pat", "used-by": "my-app-cli"}Responses
Section titled “ Responses ”Successfully created a Personal Access Token
object
id
required
ID of the PAT
string
Example
2c35b6f3-c4b9-48e3-978a-d4d0f1d42e24 personalAccessToken
required
PAT
string
Example
2c35b6f3-c4b9-48e3-978a-d4d0f1d42e24default
Section titled “default ”An error occurred while processing the request
Standardized error response
object
status
required
HTTP status error code
integer
Example
400 message
required
Human-friendly error message
string
Example
Invalid email format error
required
Error code identifying the specific application error
string