Create an API token
POST
/api/v1/authRotates 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.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string format: email
password
required
string format: password
otp_attempt
string
Required when two-factor is enabled
Responses
Section titled “Responses”200
A freshly rotated token secret
A freshly rotated token secret
Response body
Media typeapplication/json
object
token
string
401
Missing, invalid or expired token
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