Skip to content

Check whether an email address is registered

POST
/account/email-exist
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.

Media typeapplication/json
object
email
required
string format: email

Example

jane@example.com

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.