Skip to main content
POST
/
leads
Create Lead
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>"
}

Example Request

{
  "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 is required. At least one contact field (email, phone, or name) is recommended.
Use the metaData.source field to track where leads come from (e.g., ‘chat’, ‘web’, ‘api’, ‘import’).

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
lead
object
required

Response

Successful response

success
boolean
required
message
string
required
data
any