GET
/
auth
/
anonymous
curl --request GET \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/storefront/auth/anonymous \
  --header 'X-Api-Key: <api-key>'
{
  "message": "<string>",
  "success": true,
  "content": {
    "user": {
      "id": "<string>",
      "first_name": "<string>",
      "last_name": "<string>",
      "email": "[email protected]",
      "is_email_verified": true,
      "phone": "<string>",
      "country_code": "<string>",
      "is_phone_verified": true,
      "profile_image_url": "<string>",
      "notification_preferences": {
        "transactional": {
          "email": true,
          "sms": true,
          "whatsapp": true
        },
        "promotional": {
          "email": true,
          "sms": true,
          "whatsapp": true
        },
        "newsletter": {
          "email": true,
          "sms": true,
          "whatsapp": true
        }
      },
      "created_at": "<string>",
      "modified_at": "<string>",
      "is_anonymous": true,
      "is_logged_in": true,
      "login_methods": [
        "<string>"
      ]
    },
    "access_token": "<string>",
    "refresh_token": "<string>"
  }
}

Authorizations

X-Api-Key
string
header
required

API key for your store

Response

200 - application/json
OK
message
string

A string containing a descriptive message related to the success or failure of the anonymous user creation or authentication.

success
boolean

A boolean value indicates the success or failure of the anonymous user operation.true for success false for failure.

content
object

An object containing the response content.