Check whether an email address is registered
POST
/account/email-exist
const url = 'https://acme.mykreezalid.com/front_api/v1/account/email-exist';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"jane@example.com"}'};
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://acme.mykreezalid.com/front_api/v1/account/email-exist \ --header 'Content-Type: application/json' \ --data '{ "email": "jane@example.com" }'Tells whether an account already uses this email address, for instance before showing a sign-in or a sign-up form. It only works for a visitor who is not signed in: a request that already carries a valid token or session is refused with 403.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string format: email
Example
jane@example.comResponses
Section titled “Responses”Whether the email address is registered.
Media typeapplication/json
object
code
integer
success
boolean
email_exists
boolean
Example
{ "code": 200, "success": true, "email_exists": false}email is missing or empty.
Media typeapplication/json
object
code
integer
success
boolean
message
string
Example
{ "code": 400, "success": false, "message": "Email is required"}The request already identifies a signed-in member.