Documentation Index
Fetch the complete documentation index at: https://docs.genlook.app/docs/llms.txt
Use this file to discover all available pages before exploring further.
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
Customer’s email address.
Whether the customer consented to marketing emails. Defaults to false.
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
Whether the email was collected.
{
"success": true,
"message": "Email collected successfully"
}