cURL
curl --request POST \ --url https://api.chat-dash.com/v1/public/agents/{agentId}/leads \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' [ { "phone": "<string>", "customFields": {}, "tags": [ "<string>" ] } ] '
[ { "_id": "<string>", "phone": "<string>", "customFields": {}, "tags": [ "<string>" ] } ]
Create one or more new leads for a agent
All requests to the ChatDash API must be validated with the agency API Key found on your agency profile
The ID of the agent
The phone number of the lead
The user defined fields for the lead. Keys are field names, values are field values.
Show child attributes
The IDs of the tags attached to the lead
OK
The ID of the lead