Skip to content

GET /user/api-tokens

Get User Api Tokens

GET
/user/api-tokens

Return all non-revoked API tokens belonging to the calling user.

Queries the Token collection filtered by issued_to (the caller's User
document ID), revoked=False, and context=API. Returns a list of
TokenRecord objects. SSE tickets and session tokens are excluded.

Emits: (direct transaction — no event class)

Required scope: org:api-token:read

Authorizations

OAuth2PasswordBearer
password Flow
Token URL"/api/auth"
Scopes:
  • "admin"User can access and edit users and system settings
  • "library"User can access and edit products
  • "production"User can access and edit production plans
  • "operator"User can access the operator panel and make production declarations

Responses

Successful Response

application/json
JSON
[
  
{
  
  
"_id": "string",
  
  
"_key": "string",
  
  
"_rev": "string",
  
  
"signature": "SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
  
  
"revoked": false,
  
  
"issued_to": "User/user42",
  
  
"issued_at": "2026-05-04T08:00:00Z",
  
  
"expires_at": "2026-05-05T08:00:00Z",
  
  
"context": "session",
  
  
"description": "CI pipeline token"
  
}
]

Samples

Powered by VitePress OpenAPI

Released under the Apache 2.0 License.