Registers a new user with email and password.
POST
/api/auth/v1/register
const url = 'https://example.com/api/auth/v1/register';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"example","password":"example","password_repeat":"example","redirect_uri":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/v1/register \ --header 'Content-Type: application/json' \ --data '{ "email": "example", "password": "example", "password_repeat": "example", "redirect_uri": "example" }'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”redirect_uri
string | null
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string
password
required
string
password_repeat
required
string
redirect_uri
string | null
Examplegenerated
{ "email": "example", "password": "example", "password_repeat": "example", "redirect_uri": "example"}Responses
Section titled “Responses”Form fail OR success, new user registered, or user already exists.
Failed to send verification Email.