Customers in Dub are automatically created when you track lead conversion events using the
/track/lead endpoint. There is no separate create customer endpoint.How Customers are Created
When you call the/track/lead endpoint with customer information, Dub will:
- Check if a customer with the provided
customerExternalIdalready exists - If the customer exists, it will be updated with any new information provided
- If the customer doesn’t exist, a new customer will be created
Customer Fields
When tracking a lead, you can provide the following customer information:customerExternalId(required) - Your unique ID for the customercustomerName- The customer’s namecustomerEmail- The customer’s email addresscustomerAvatar- URL to the customer’s avatar image