Personal Access Tokens
This represents the API endpoints for personal access tokens. This is a user-based API endpoint, and not on the organization scope.
Personal access tokens (PATs) are a way to authenticate API requests on behalf of a user. They can be used to grant temporary access to specific resources or perform actions on behalf of the user. PATs are typically used in scenarios where a user wants to automate tasks or integrate with external systems.
The personal access token API provides endpoints to provision, manage, and revoke personal access tokens. You can create a new PAT, specify its name, IP restriction, and type. You can also retrieve a list of all PATs associated with the authenticated user and delete a specific PAT.
Using the personal access token API, you can easily integrate PAT management into your applications or scripts, enabling seamless automation and integration with the platform.
For more details on the available endpoints and request/response formats, refer to the API documentation below.
list personal access tokens for your account
HTTP Responses codes for "list personal access tokens for your account"
Status Code | Description |
---|---|
200 | OK |
400 | Bad Request |
404 | Not Found |
500 | Internal Server Error |
Response
No Content
{ "items": { "$ref": "#/components/schemas/PersonalAccessToken" }, "type": "array" }
Provision a personal access token
HTTP Responses codes for "Provision a personal access token"
Status Code | Description |
---|---|
200 | OK |
400 | Bad Request |
404 | Not Found |
500 | Internal Server Error |
Request Body Parameters
ipRestriction
stringIP restriction for the personal access token.
name
stringName of the personal access token.
type
objectType of the personal access token.
Response
Personal Access Token
active
booleancreatedAt
stringexpireAt
stringid
stringipRestriction
stringlastUsedAt
stringname
stringsubject
stringtoken
stringtype
object
{ "description": "Personal Access Token", "properties": { "active": { "description": "Active indicates whether the personal access token is active or not.", "type": "boolean" }, "createdAt": { "description": "CreatedAt represents the creation time of the personal access token.", "type": "string" }, "expireAt": { "description": "ExpireAt represents the expiration time of the personal access token.", "type": "string" }, "id": { "description": "ID represents the unique identifier for a personal access token.", "type": "string" }, "ipRestriction": { "description": "IPRestriction represents the IP restriction for the personal access token.", "type": "string" }, "lastUsedAt": { "description": "LastUsedAt represents the last time the personal access token was used.", "type": "string" }, "name": { "description": "Name represents the name of the personal access token.", "type": "string" }, "subject": { "description": "Subject represents the subject of the personal access token.", "type": "string" }, "token": { "description": "Token represents the actual token value.", "type": "string" }, "type": { "allOf": [ { "$ref": "#/components/schemas/PersonalAccessTokenType" } ], "description": "Type represents the type of the personal access token.", "type": "object" } }, "type": "object" }
Revoke a personal access token
Path Parameters:
token_id
(Personal Access Token ID)
HTTP Responses codes for "Revoke a personal access token"
Status Code | Description |
---|---|
200 | OK |
400 | Bad Request |
404 | Not Found |
500 | Internal Server Error |
Response
message
stringstatus
integer
{ "properties": { "message": { "type": "string" }, "status": { "type": "integer" } }, "type": "object" }