Trade fairs & leads

Create a lead

Records a lead at the fair stand; a next action opens a task for the owner.

POST/api/v1/fairs/{id}/leads

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Module: Fair leadsScope: crm.write

Path parameters

idintegerrequired
Fair id.

Body application/json

companystringrequired
Company name.
contact_name / title / phone / emailstringoptional
Contact details.
city / sector / websitestringoptional
Company details.
visitor_typestringoptional
Visitor type.
ValuesPotansiyel müşteriMevcut müşteriTedarikçiRakipDiğer
intereststringoptionaldefault: Ilık
Interest.
ValuesSıcakIlıkSoğuk
productsarray<integer>optional
Products of interest.
products_textstringoptional
Products (free text).
potential_kgnumberoptional
Monthly potential.
timingstringoptional
Timing.
ValuesHemen3 ay içinde6 ay içinde1 yıl+Belirsiz
next_actionstringoptional
Next action.
ValuesTeklif gönderZiyaret planlaNumune gönderDeneme planlaBilgi gönderAraAksiyon yok
next_datestringoptional
Action date.
owner_idintegeroptional
Owner.
note / project_note / supplier / line / opp_typestringoptional
Other fields.

Errors

HTTPerrorMeaning
400invalidMissing or invalid field (`message` explains).
404not_foundRecord not found.
Request
curl -X POST https://ornek.solk.app/api/v1/fairs/1/leads \
  -H "Authorization: Bearer $SOLK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "company": "Anadolu Gıda Ambalaj",
  "contact_name": "Murat Er",
  "title": "Genel Müdür",
  "phone": "+90 533 555 33 44",
  "interest": "Sıcak",
  "city": "Konya",
  "next_action": "Numune gönder",
  "next_date": "2026-10-07"
}'
Response
{
  "lead": {
    "can_edit": true,
    "city": "Konya",
    "company": "Anadolu Gıda Ambalaj",
    "contact_name": "Murat Er",
    "created_at": "2026-10-02T20:07:01",
    "customer_id": null,
    "email": "",
    "fair": "Ambalaj Fuarı 2026 (örnek)",
    "fair_id": 1,
    "id": 11,
    "initials": "AG",
    "interest": "Sıcak",
    "line": "",
    "next_action": "Numune gönder",
    "next_date": "2026-10-07",
    "note": "",
    "opp_id": null,
    "opp_type": "",
    "owner": {
      "full_name": "Deniz Aksoy",
      "id": 1,
      "role": "admin",
      "role_label": "Yönetici",
      "username": "admin"
    },
    "phone": "+90 533 555 33 44",
    "potential_kg": null,
    "products": "",
    "products_text": "",
    "project_note": "",
    "rid": "00QpWFogpnPsXu7",
    "sector": "",
    "status": "Yeni",
    "status_eff": "Yeni",
    "supplier": "",
    "task_id": 25,
    "timing": "",
    "title": "Genel Müdür",
    "unit": "kg",
    "visitor_type": "Potansiyel müşteri",
    "wa": "905335553344",
    "website": ""
  },
  "ok": true
}

Example responses were captured from a v22 installation running sample data; lists are shortened to two items.