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:
expires is optional, but if provided it must be at least 24 hours in the future.How to use the token with API requests:
Authorization: ApiKey <personal-access-token>
Example request flow:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Payload used to create a new personal access token.
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