Skip to main content
POST

Create API Token

Generates a new API token. The plaintext token is returned exactly once in the response and stored server-side as a SHA-256 hash.
Creating an API token requires an active authenticated session cookie (via web login).

Request Body

string
An optional human-readable name or label for the token (max 64 characters).
number
default:"365"
Token lifetime in days. Defaults to 365 days.
array
Array of allowed scopes: pages:read, pages:write, links:write, tokens:manage.

Response

string
The plaintext token string to be used with Authorization: Bearer <token>.
string
Unique token ID in the database.
array
Assigned permission scopes.
string
Assigned tier plan (free, pro, enterprise).
string
ISO 8601 expiration timestamp.