Skip to content

Create an API token

POST
/api/v1/auth

Rotates and returns the caller’s default token. Intended for the browser extension and mobile app; public API consumers should create a token in Settings → API tokens instead.

Media typeapplication/json
object
email
required
string format: email
password
required
string format: password
otp_attempt
string

Required when two-factor is enabled

200

A freshly rotated token secret

Response body
Media typeapplication/json
object
token
string

401

Missing, invalid or expired token

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation