Skip to main content
POST
/
public
/
collect-email
curl -X POST "https://your-store.myshopify.com/apps/proxy_genlook-x/public/collect-email" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "customer@example.com",
    "marketingConsent": true
  }'
{
  "success": true,
  "message": "Email collected successfully"
}
Collect a customer email and sync it to your Shopify store as a customer record. Collected emails are added to a “Genlook Widget Leads” customer segment.
Treat this as a fire-and-forget call. Don’t block user flow on errors.

Request

email
string
required
Customer’s email address.
Whether the customer consented to marketing emails. Defaults to false.
checkboxDisplayed
boolean
Whether the consent checkbox was shown. Useful for compliance tracking.
curl -X POST "https://your-store.myshopify.com/apps/proxy_genlook-x/public/collect-email" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "customer@example.com",
    "marketingConsent": true
  }'

Response

success
boolean
required
Whether the email was collected.
message
string
required
Status message.
{
  "success": true,
  "message": "Email collected successfully"
}