OPNexusdocs

API: tokens

GET /api/tokens#

List Tokens

Own tokens; whoever may manage tokens (an admin) sees everybody's (to be able to revoke them).

Any signed-in account (its own settings) · browser session only, no API token

Response 200 ApiTokenRead[]

Show 9 fields
FieldTypeNotes
created_at *string (date-time)
expires_at *string (date-time) | null
id *string (uuid)
last_used_at *string (date-time) | null
last_used_ip *string | null
name *string
owner *string
prefix *string
scope *TokenScope

POST /api/tokens#

Create Token

Any signed-in account (its own settings) · browser session only, no API token

Request body ApiTokenCreate

Show 4 fields
FieldTypeNotes
current_password *stringminLength 1, maxLength 1024
expires_in_daysinteger | null
name *stringminLength 1, maxLength 80
scopeTokenScope default: "read"

Response 201 ApiTokenCreated

Show 10 fields
FieldTypeNotes
created_at *string (date-time)
expires_at *string (date-time) | null
id *string (uuid)
last_used_at *string (date-time) | null
last_used_ip *string | null
name *string
owner *string
prefix *string
scope *TokenScope
token *string

DELETE /api/tokens/{token_id}#

Revoke Token

Any signed-in account (its own settings) · browser session only, no API token

Parameters

token_id *pathstring (uuid)

Response 204