Documentation menu

Developer API · resource

Leads

Contacts captured from WhatsApp, Facebook, forms and imports — the core CRM record.

Scope leads:read for reads · leads:write for changes

Operations

GET/v1/leadsList — see list
POST/v1/leadsCreate — see create
GET/v1/leads/{id}Read — see get
PATCH/v1/leads/{id}Update — see update
DELETE/v1/leads/{id}Delete — see delete
Minimal create
curl -X POST https://api2.djcsystem.com/v1/leads \
  -H "Authorization: Bearer $DJC_TOKEN" -H "Content-Type: application/json" \
  -d '{ "name": "…" }'

Fields

Fields you may send on create. Updatable marks fields accepted by PATCH. Anything not listed is server-owned or hidden.

FieldTypeOn createUpdatable
namestringrequiredyes
phonestringoptionalyes
emailstringoptionalyes
sourcestringoptionalyes
statusstringoptionalyes
remarksstringoptionalyes
campaignNamestringoptionalyes
birthdaystringoptionalyes
typestringoptionalyes
tagsarray<string>optionalyes
labelsarray<object>optionalyes
customDatarecord<string,string>optionalyes
field_dataarray<object>optionalyes
convertedbooleanoptionalyes
whatsappFlowIdstringoptionalyes
assignedTo1stringoptionalyes
assignedTo2stringoptionalyes
assignedTo3stringoptionalyes
assignedTo4stringoptionalyes
assignedTo5stringoptionalyes
warriorsarray<string>optionalyes

Filters & sorting

FilterablestatussourcephoneemailconvertedwhatsappFlowIdassignedTo1campaignName
Sortablecreated
Default ordercreated:desc

Good to know

  • Search for an existing lead by phone (`filter[phone]=6012…`, digits only, country code first) before creating one.
  • `tags` is a flat list of strings; `labels` are the coloured chips shown in the Leads table.