Personal access tokens
Create a personal access token
Changed onCreates a personal access token that acts as you. It either follows your access (access: same_as_user) or holds the grants you send (access: grants), and every check combines it with your access at that moment, so it can never do more than you.
ℹ️ Note: Personal access tokens are managed with your own login session. A request authenticated with an API key, a personal access token included, is rejected with a 403.
post/pat
Request
- Base URLhttps://api.nullplatform.com
- URLhttps://api.nullplatform.com/pat
- AuthHTTP bearer
Request body
Example request
{
"name": "local-scripts",
"expires_in": 2592000,
"expires_at": "2027-01-06T00:00:00Z",
"access": "same_as_user",
"grants": [
{
"nrn": "organization=1:account=1:namespace=1:application=4",
"role_slug": "machine:ci"
}
],
"tags": [
{
"key": "team",
"value": "platform"
}
]
}Response
The operation was successful.
Example response
{
"id": 1234,
"name": "local-scripts",
"masked_api_key": "AAAAxxxxxPTs=",
"access": "same_as_user",
"tags": [
{
"key": "team",
"value": "platform"
}
],
"grants": [
{
"id": 5678,
"nrn": "organization=1:account=2",
"role_id": 700317756,
"role_slug": "developer",
"actions": [
"application:read",
"deployment:create"
]
}
],
"personal": true,
"owner_id": 42,
"acting_user_id": 42,
"last_used_at": "2026-10-08T12:00:00.000Z",
"expires_at": "2027-01-06T00:00:00.000Z",
"created_at": "2026-10-08T00:00:00.000Z",
"updated_at": "2026-10-08T00:00:00.000Z",
"api_key": "AAAA.1234567890abcdef1234567890abcdefPTs="
}Changes
- info
added the new optional request property
- info
the request property
became optional
- info
- info
endpoint added
- info