staqlydocs
REST APIAPI referenceAccounts

Sign in with the emailed code

Sign in with the emailed code

Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.

POST
/v1/auth/email/verify

Signs the person in as the identity (email, address) with a new session cookie: a returning person lands in their workspace, an invitation (invite) is accepted, a new person gets an account and a first workspace (when sign-ups are open or with setup_token). Never merged with a Google identity of the same address. A wrong code answers 401 code_invalid with details.attempts_left.

Request Body

application/json
  1. body
email*string
code*string

6 digits

next?string

A path on this dashboard to land on

invite?string

An invitation token to accept

setup_token?string

Lets a new person create an account when SETUP_TOKEN is set

Response Body

Session cookie set

application/json
  1. response
csrf_token*string
next*string
curl -X POST 'https://staqly.example.com/v1/auth/email/verify' \  -H 'Content-Type: application/json' \  -d '{  "email": "string",  "code": "string"}'
{  "csrf_token": "string",  "next": "string"}