Skip to content

Sign in

POST
/api/website/customers/login
curl --request POST \
--url https://api.petanqueai.com/api/website/customers/login \
--header 'Content-Type: application/json' \
--header 'x-storefront-token: <x-storefront-token>' \
--data '{ "email": "hello@example.com", "password": "example" }'

Checks email and password and returns a session token valid for 30 days, with its expiresAt. Send the token in the x-customer-session header on Signed-in shopper routes. It is returned in the body only; no cookie is set.

Every failure answers the same 401, whatever the cause. Limited to 10 attempts per address per 15 minutes.

object
email
required
string format: email
<= 200 characters
password
required
string
>= 8 characters <= 128 characters

Example generated

{
"email": "hello@example.com",
"password": "example"
}