Personal Access Tokens API
The Personal Access Tokens API manages personal access tokens (PATs) for individual users.
Quick Navigation
Overview
This module provides:
- Personal access token creation
- Token management (list, update, revoke)
- Individual user tokens
- Organization-scoped tokens
- Token expiration management
Base Path
All personal access token endpoints are prefixed with /api/v1/auth/tokens
Authentication
All endpoints require authentication:
Authorization: Bearer <access_token>
Token Types
- Individual tokens: No organization_id specified, user-scoped
- Organization-scoped tokens: Specify organization_id, scoped to organization
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | / | Create personal access token |
| GET | / | List personal access tokens |
| PATCH | /{token_id} | Update personal access token |
| DELETE | /{token_id} | Revoke personal access token |
Internal Notes
- All endpoints are fully implemented
- Token shown only once at creation
- Organization-scoped tokens use organization expiration settings
- Custom expiration support (expires_in_days)
Swagger Documentation
Interactive API documentation available at: /docs#/personal-access-tokens