cURL
curl --request POST \ --url https://eu-cloudflare.vg-stuff.com/leads \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "lead": { "agentId": "<string>", "email": "<string>", "name": "<string>", "phone": "<string>", "metaData": { "address": "<string>", "company": "<string>", "notes": "<string>", "source": "chat" } } } '
{ "success": true, "message": "<string>", "data": "<unknown>" }
Creates a new lead with the specified configuration, this route must use the new V3 endpoints.
{ "lead": { "agentId": "your_agent_id", "name": "John Doe", "email": "john@example.com", "phone": "+1234567890", "metaData": { "company": "Acme Inc", "source": "api", "notes": "Interested in enterprise plan" } } }
agentId
email
phone
name
metaData.source
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Show child attributes
Successful response