POST
/
signup
/
email-password
{
  "session": {
    "accessToken": "<string>",
    "accessTokenExpiresIn": 123,
    "refreshTokenId": "2c35b6f3-c4b9-48e3-978a-d4d0f1d42e24",
    "refreshToken": "2c35b6f3-c4b9-48e3-978a-d4d0f1d42e24",
    "user": {
      "avatarUrl": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "defaultRole": "user",
      "displayName": "John Smith",
      "email": "john.smith@nhost.io",
      "emailVerified": true,
      "id": "2c35b6f3-c4b9-48e3-978a-d4d0f1d42e24",
      "isAnonymous": true,
      "locale": "en",
      "metadata": {
        "firstName": "John",
        "lastName": "Smith"
      },
      "phoneNumber": "<string>",
      "phoneNumberVerified": true,
      "roles": [
        "me",
        "user"
      ]
    }
  }
}

Body

application/json
email
string
required

A valid email

password
string
required

A password of minimum 3 characters

Required string length: 3 - 50
options
object

Response

200
application/json
Successfully registered. Null session means email verification is pending
session
object