Skip to Content
Docs
API referenceManagement API

Personal access tokens

GET
/personal-access-tokens

List personal access tokens with filtering and pagination.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Query Parameters

user_id?string

Filter by user id (usr_…)

status?string

Filter by status (active|revoked)

sort?string

Sort field; prefix with - for descending (e.g. -created_at). Allowed: created_at, updated_at, name, status. Default: -created_at

page?integer

Page number

limit?integer

Items per page

Response Body

OK

application/json
  1. response
data?array<>
object?string
pagination?

Pagination is the page answered (api-route-review D9).

Example Request
curl -X GET 'https://api.us.pontive.com/v1/personal-access-tokens'
Example Response
{  "data": [    {      "created_at": "string",      "description": "string",      "expires_at": "string",      "id": "string",      "instance_id": "string",      "key_preview": "string",      "last_used_at": "string",      "metadata": {        "property1": "string",        "property2": "string"      },      "name": "string",      "object": "string",      "organization_id": "string",      "status": "active",      "updated_at": "string",      "user_id": "string"    }  ],  "object": "string",  "pagination": {    "limit": 0,    "page": 0,    "total": 0,    "total_pages": 0  }}
POST
/personal-access-tokens

Mint a personal access token bound to a user. The token value is returned only here. Omit organization_id for an all-orgs token.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Request Body

Create PAT payload

application/json
  1. body

Create PAT payload

description?string
expires_at?string
metadata?
name*string
organization_id?string
user_id*string

Response Body

Created

application/json
  1. response
created_at?string
description?string
expires_at?string
id?string
instance_id?string
key_preview?string
last_used_at?string
metadata?
name?string
object?string
organization_id?string
status?string
Value in"active""revoked""deleted""expired"
token?string
updated_at?string
user_id?string
Example Request
curl -X POST 'https://api.us.pontive.com/v1/personal-access-tokens' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "user_id": "string"}'
Example Response
{  "created_at": "string",  "description": "string",  "expires_at": "string",  "id": "string",  "instance_id": "string",  "key_preview": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "organization_id": "string",  "status": "active",  "token": "string",  "updated_at": "string",  "user_id": "string"}
GET
/personal-access-tokens/{personal_access_token_id}

Get a personal access token by ID.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

personal_access_token_id*string

PAT ID

Response Body

OK

application/json
  1. response
created_at?string
description?string
expires_at?string
id?string
instance_id?string
key_preview?string
last_used_at?string
metadata?
name?string
object?string
organization_id?string
status?string
Value in"active""revoked""deleted""expired"
updated_at?string
user_id?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/personal-access-tokens/string'
Example Response
{  "created_at": "string",  "description": "string",  "expires_at": "string",  "id": "string",  "instance_id": "string",  "key_preview": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "organization_id": "string",  "status": "active",  "updated_at": "string",  "user_id": "string"}
PATCH
/personal-access-tokens/{personal_access_token_id}

Update mutable fields (name, description, metadata).

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

personal_access_token_id*string

PAT ID

Request Body

Update payload

application/json
  1. body

Update payload

description?string
metadata?
name?string

Response Body

OK

application/json
  1. response
created_at?string
description?string
expires_at?string
id?string
instance_id?string
key_preview?string
last_used_at?string
metadata?
name?string
object?string
organization_id?string
status?string
Value in"active""revoked""deleted""expired"
updated_at?string
user_id?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/personal-access-tokens/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "description": "string",  "expires_at": "string",  "id": "string",  "instance_id": "string",  "key_preview": "string",  "last_used_at": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "name": "string",  "object": "string",  "organization_id": "string",  "status": "active",  "updated_at": "string",  "user_id": "string"}
POST
/personal-access-tokens/{personal_access_token_id}/revoke

Revoke a personal access token immediately and irreversibly.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Path Parameters

personal_access_token_id*string

PAT ID

Response Body

No Content

Example Request
curl -X POST 'https://api.us.pontive.com/v1/personal-access-tokens/string/revoke'
Example Response
Empty