Create a PAT
Create a new personal access token for the authenticated user.
Use personal access tokens for server-to-server or CLI integrations where interactive user login is not practical.
Important behavior:
- A user can have up to 5 personal access tokens.
- Token names must be unique per user.
expiresis optional, but if provided it must be at least 24 hours in the future.- Treat the token value as a secret and store it securely.
How to use the token with API requests:
Authorization: ApiKey <personal-access-token>
Example request flow:
- Create token via this endpoint.
- Save the token value in your secret store.
- Send it as an API key on subsequent API calls.
- Rotate and revoke tokens regularly as part of your security process.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Payload used to create a new personal access token.
Response
Personal access token created
Personal access token information returned to the client.
The personal access token name
The personal access token value. This is only available immediately after creation.
ISO timestamp indicating when the token was created
ISO timestamp indicating when the token expires