Skip to main content
POST
Create a reporting token

Authorizations

Authorization
string
header
required

Session token from signing in, sent as Authorization: Bearer <token>.

Path Parameters

org_id
string
required

The organization id (a UUID).

Body

application/json
name
string
required

A name for the reporting token, 1 to 255 characters.

expires_at
string<date-time> | null

Optional expiration time. Must be in the future.

Response

The token was created.

created_at
string<date-time>
required
created_by_user_id
string<uuid>
required
id
string<uuid>
required
name
string
required
organization_id
string<uuid>
required
scope
string
required

What the token may read. Currently only usage:read.

Example:

"usage:read"

token
string
required

The reporting token (rpt- followed by a secret). It is shown only in this response and cannot be retrieved again.

token_prefix
string
required

Non-secret token prefix for display and audit correlation.

expires_at
string<date-time> | null
last_used_at
string<date-time> | null

Approximate last-authentication timestamp, refreshed at most once every 15 minutes.