API reference
Leads API
Create a lead

Create a Lead

Create a new lead in the CRM system.

Method: POST
Endpoint: https://qa.one.flinkk.io/api/method/lead/create


Parameters

Headers

NameInTypeRequiredDescription
AcceptheaderstringMust be application/json.
Content-TypeheaderstringMust be application/json.
AuthorizationheaderstringBearer <token> when auth is enabled.

Body (JSON)

FieldTypeRequiredNotes
salutationstringe.g., MR, MS, DR.
firstNamestring
lastNamestring
titlestringJob title or role.
companystringCompany/Organization name.
websitestring(url)
descriptionstringFree‑form description.
requirementsstringLead requirements / interest.
emailstring(email)Must be valid email if provided.
phonestringE.164 recommended.
additionalPhonestringAlternate phone.
countrystring
streetAddressstring
citystring
postalCodestring
statestringState/Province.
companySizestringe.g., 1-10, 11-50, 100-500.
annualRevenue`stringnumber`
industrystring
sourcestringe.g., Website, Campaign, Referral.
notesstringInternal notes.
tags`stringstring[]`
priority`"LOW""MEDIUM""HIGH"`
isB2BbooleanDefaults to false.
customFieldsarrayKey/Value custom fields.
status`"NEW""QUALIFIED""DISQUALIFIED"`

Request Example

curl --location 'http://localhost:3008/api/method/lead/create' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "salutation": "DR",
    "firstName": "Daniel",
    "lastName": "Woods",
    "company": "Douglas and Ferrell Plc",
    "email": "myrena@mailinator.com",
    "phone": "+17438154638",
    "priority": "HIGH",
    "status": "NEW"
  }'

Responses

{
  "id": "lead_01K3XYZ9ABCD1234",
  "firstName": "Daniel",
  "lastName": "Woods",
  "email": "myrena@mailinator.com",
  "phone": "+17438154638",
  "company": "Douglas and Ferrell Plc",
  "status": "NEW",
  "priority": "HIGH",
  "createdAt": "2025-08-27T12:30:45Z",
  "updatedAt": "2025-08-27T12:30:45Z"
}