Skip to content

Verify an email address

POST
/public/stores/{storeRef}/auth/verify-email
curl --request POST \
--url https://apibase.ecomweb.app/api/v1/public/stores/example/auth/verify-email \
--header 'Content-Type: application/json' \
--header 'x-storefront-api-key: <x-storefront-api-key>' \
--data '{ "token": "example", "binding": "example" }'

Marks the email address as verified using the token from the emailed link. Send the binding returned by the register route too: without it the address is still verified, but the password chosen at registration is dropped. An invalid or expired token returns 400 with code AUTH_TOKEN_INVALID. Rate limited to 20 requests per minute per store and client IP.

storeRef
required
string

The store’s ref, as returned by GET /stores.

Media typeapplication/json
object
token
required

Email verification token from the emailed link

string
binding

Binding handed to the registrant (verification_binding from the register response). Kept by the client, never mailed.

string
<= 128 characters

Example generated

{
"token": "example",
"binding": "example"
}
Media typeapplication/json
object
verified
required

Always true.

boolean

Example

{
"verified": true
}

The request is malformed or failed validation.

Media typeapplication/json
One of:
object
statusCode
required

The HTTP status code.

number
message
required

What went wrong; validation failures list one message per problem.

One of:
string
error

The HTTP status text, such as Bad Request.

string

Example generated

{
"statusCode": 1,
"message": [
"example"
],
"error": "example"
}

The key is missing, invalid, revoked or expired.

Media typeapplication/json
One of:
object
statusCode
required

The HTTP status code.

number
message
required

What went wrong; validation failures list one message per problem.

One of:
string
error

The HTTP status text, such as Bad Request.

string

Example generated

{
"statusCode": 1,
"message": [
"example"
],
"error": "example"
}

The key may not do this: a missing scope, a readonly key, a publishable key on a Store API route, or a disallowed origin.

Media typeapplication/json
One of:
object
statusCode
required

The HTTP status code.

number
message
required

What went wrong; validation failures list one message per problem.

One of:
string
error

The HTTP status text, such as Bad Request.

string

Example generated

{
"statusCode": 1,
"message": [
"example"
],
"error": "example"
}

Too many requests; wait a little before retrying.

Media typeapplication/json
One of:
object
statusCode
required

The HTTP status code.

number
message
required

What went wrong; validation failures list one message per problem.

One of:
string
error

The HTTP status text, such as Bad Request.

string

Example generated

{
"statusCode": 1,
"message": [
"example"
],
"error": "example"
}