Leads

Update Lead

Update lead details.

PATCH
/leads/{lead_id}
AuthorizationBearer <token>

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

In: header

Path Parameters

lead_idstring
first_name?string
last_name?string
email?string
phone_number?string
whatsapp_number?string
country?string
timezone?string
language?string

Supported languages for the call.

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

Priority level for the lead.

Value in"low" | "medium" | "high"
status?string
notes?string
metadata?object
assistant_group_id?string

Response Body

application/json

curl -X PATCH "https://api.kejue.co/api/v1/leads/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "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
}
Empty
Empty

Last updated on