Leads

Create Lead

Create a new lead.

POST
/leads
AuthorizationBearer <token>

API key authentication. Use format: Bearer kejue_...

In: header

first_name?string
Lengthlength <= 100
last_name?string
Lengthlength <= 100
phone_numberstring

Phone number in E.164 format (e.g., +12125551234)

Lengthlength <= 50
email?string
Formatemail
Lengthlength <= 255
country?string

ISO 3166-1 alpha-2 country code

Lengthlength <= 3
language?string

Supported languages for the call.

Default"english"
Value in"english" | "arabic" | "polish" | "hindi"
priority?string

Priority level for the lead.

Default"medium"
Value in"low" | "medium" | "high"
notes?string

Notes about the lead

assistant_group_id?string

ID of the assistant group to assign

Response Body

application/json

application/json

curl -X POST "https://api.kejue.co/api/v1/leads" \  -H "Content-Type: application/json" \  -d '{    "phone_number": "+12125551234"  }'
{
  "id": 54321,
  "business_id": "string",
  "first_name": "John",
  "last_name": "Doe",
  "email": "john@example.com",
  "phone_number": "+15551234567",
  "country": "US",
  "timezone": "America/New_York",
  "whatsapp_number": "string",
  "language": "english",
  "status": "pending",
  "lead_source": "api",
  "contact_attempts": 0,
  "notes": "Notes here",
  "priority": "medium",
  "metadata": {},
  "last_called_at": "2019-08-24T14:15:22Z",
  "last_messaged_at": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "retry_count": 0
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
Empty

Last updated on