Skip to content
VoxaDocs
Navigation
Open console →

Account and sign-in

Start two-step setup

POST/api/v1/account/2fa/setup

Returns a secret and an otpauth:// URL for an authenticator app. Confirm with Turn on two-step verification.

Needs a signed-in user session (Authorization: Bearer <token> from Sign in); API keys get 403.

Authorization

A signed-in user’s session token (Authorization: Bearer). API keys are refused.

Authorization: Bearer

Query parameters

timezonestringdefault: "Asia/Kolkata"

IANA time zone for every timestamp in the response (at, date, timestamp and *_at fields), as ISO 8601 with the offset. The X-Timezone header works too; the zone used comes back in the X-Timezone response header. An unknown zone is a 400.

Response

200Success.

See the 200 example next to the code samples.

401No credentials, or they are invalid or revoked.
detailstring

What went wrong, in plain words.

403Your role (or an API key) lacks the permission.
detailstring

What went wrong, in plain words.

Esc