Liftbay
API referenceAuth

Sign in with an email code

POST
/v1/auth/email/verify

Request Body

application/json
  1. body
email*string
Formatemail
Lengthlength <= 254
code*string
Match^\d{6}$

Response Body

Signed in; sets the session cookie

application/json
  1. response
user*
memberships*array<>
methods*array<>
staff*boolean
curl -X POST "https://example.com/v1/auth/email/verify" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com",    "code": "string"  }'
{  "user": {    "id": "string",    "email": "string",    "name": "string",    "avatarUrl": "string"  },  "memberships": [    {      "orgId": "string",      "orgSlug": "string",      "orgName": "string",      "role": "owner"    }  ],  "methods": [    "email"  ],  "staff": true}