cURL
curl --request POST \ --url https://store.salesive.com/api/v1/auth/ghost \ --header 'Content-Type: application/json' \ --data '{}'
{ "status": 123, "success": true, "message": "<string>", "data": { "_id": "<string>", "email": "[email protected]", "token": "<string>", "isGuest": true, "createdAt": "2023-11-07T05:31:56Z" } }
Create an anonymous guest user session without requiring authentication.
POST /auth/ghost Content-Type: application/json x-shop-id: {shopId}
Content-Type
application/json
x-shop-id
{ "status": 201, "success": true, "message": "Ghost user created successfully", "data": { "_id": "690a1654ffc615e6ccfc65a6", "email": "[email protected]", "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "isGuest": true, "createdAt": "2025-11-14T15:45:00.000Z" } }
{ "status": 500, "success": false, "message": "Failed to create guest user", "data": {} }
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
The body is of type object.
object
Ghost user created successfully.
Show child attributes