Delete the profile

delete/v1/shoppers/me

Deletes the profile and every reaction recorded for it, at once. Drop the token afterwards: it opens nothing.

This cannot be undone. A saved profile is deleted for every store it was used at, not only yours.

Public keyapi.v1.shoppersDemo key OK

Headers

1
X-Shopper-Tokenstringrequired

The shopper's profile token, from auth/start, auth/verify or any call that made a profile.

Response

200Deleted.
deletedbooleanrequired

true when a profile was deleted.

Errors

22

Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.

401
Send the shopper's token in x-shopper-token, or start a profile (auth/start).

No X-Shopper-Token was sent.

401
That shopper token is not valid here. Start a profile or sign in again.

X-Shopper-Token was sent but cannot be opened with this key.

403
Shopper profiles are switched off for this organization.

The organization turned shopper profiles off.

curl -X DELETE "https://stylor.ai/api/v1/shoppers/me" \
  -H "Authorization: Bearer $STYLOR_API_KEY"
Response · 200
{
  "deleted": true
}