POST
/
track
/
customer
curl --request POST \
  --url https://api.dub.co/track/customer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customerId": "<string>",
  "customerName": "<string>",
  "customerEmail": "jsmith@example.com",
  "customerAvatar": "<string>"
}'
{
  "customerId": "<string>",
  "customerName": "<string>",
  "customerEmail": "<string>",
  "customerAvatar": "<string>"
}

Authorizations

Authorization
string
headerrequired

Default authentication mechanism

Query Parameters

workspaceId
string
required

The ID of the workspace.

projectSlug
string
deprecated

The slug of the project. This field is deprecated – use workspaceId instead.

Body

application/json
customerId
string
required

This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.

customerName
string

Name of the customer in the client's app.

customerEmail
string

Email of the customer in the client's app.

customerAvatar
string

Avatar of the customer in the client's app.

Response

200 - application/json
customerId
string
required
customerName
string | null
required
customerEmail
string | null
required
customerAvatar
string | null
required