Endpoint
POST
Authentication
This endpoint requires authentication using a Bearer token.Request Body
The unique ID of the click that the lead conversion event is attributed to. You can read this value from
dub_id cookie.For deferred lead tracking: If an empty string is provided, Dub will try to find an existing customer with the provided customerExternalId and use the clickId from the customer if found.The name of the lead event to track. Can also be used as a unique identifier to associate a given lead event for a customer for a subsequent sale event (via the
leadEventName prop in /track/sale).Maximum length: 255 charactersExample: Sign upThe unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer.Maximum length: 100 characters
The name of the customer. If not passed, a random name will be generated (e.g. “Big Red Caribou”).Maximum length: 100 characters
The email address of the customer.Maximum length: 100 characters
The avatar URL of the customer.
The mode to use for tracking the lead event.
async- Will not block the requestwait- Will block the request until the lead event is fully recorded in Dubdeferred- Will defer the lead event creation to a subsequent request
The numerical value associated with this lead event (e.g., number of provisioned seats in a free trial). If defined as N, the lead event will be tracked N times.
Additional metadata to be stored with the lead event. Max 10,000 characters when stringified.
Response
The link information associated with the lead event
The unique ID of the link
The domain of the short link
The key (slug) of the short link
The full short link URL
The destination URL
The partner ID if applicable
The program ID if applicable
The tenant ID if applicable
The external ID if applicable