Deal & ticket forms

Company context

What the form loads once a company is chosen: contacts (main contact flagged), active projects, all projects (all_projects, to link a ticket to a project), the last 25 orders (orders), open tickets (open_tickets), the account owner (owner, owner_id) and records of form-enabled custom objects linked to this company (co). Unknown or not visible company → found: false.

GET/api/v1/forms/context

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope: crm.read

Query parameters

customer_idintegeroptional
Company id.
namestringoptional
or company name.
Request
curl "https://ornek.solk.app/api/v1/forms/context?customer_id=1" \
  -H "Authorization: Bearer $SOLK_API_KEY"
Response
{
  "all_projects": [
    {
      "id": 44,
      "name": "#44 Müşteri Takibi · Müşteri Takibi"
    },
    {
      "id": 31,
      "name": "#31 Mevcut Müşteri — Yenileme · 2026 · Qualify"
    }
  ],
  "city": "İstanbul",
  "co": {
    "uretim_hatti": [
      {
        "id": 1,
        "name": "Hat 3 — şişirme",
        "sub": "Ekstrüzyon · 220"
      }
    ]
  },
  "competitor": "Distribütör ürünü",
  "contacts": [
    {
      "id": 1,
      "main": true,
      "name": "Selin Doğan",
      "title": "Satın Alma Müdürü"
    }
  ],
  "default_project": 31,
  "found": true,
  "has_opp": true,
  "id": 1,
  "last_visit": {
    "date": "2026-09-25",
    "date_l": "25.09.2026",
    "next": "Ziyaret Planla",
    "note": "Aylık tüketim ve stok seviyesi konuşuldu; sipariş tahmini alındı.",
    "type": "Telefon"
  },
  "name": "Alize Paketleme San. ve Tic. A.Ş.",
  "ok": true,
  "open_actions": [
    {
      "date": "2026-10-21",
      "date_l": "21.10.2026",
      "key": "visit:73",
      "label": "Ziyaret Planla",
      "src": "Ziyaret",
      "state": "open"
    }
  ],
  "open_tickets": [
    {
      "id": 1,
      "status": "Devam ediyor",
      "subject": "Viskozite partiden partiye farklı geliyor"
    }
  ],
  "orders": [
    {
      "id": 1,
      "name": "06.10.2026 · PU-SL 200 Solventsiz Laminasyon Yapıştırıcısı · 700 kg"
    }
  ],
  "owner": "Deniz Aksoy",
  "owner_id": 1,
  "projects": [
    {
      "id": 31,
      "name": "Mevcut Müşteri — Yenileme · 2026",
      "stage": "Qualify",
      "stage_l": "Qualify"
    },
    {
      "id": 44,
      "name": "Müşteri Takibi",
      "stage": "Account",
      "stage_l": "Müşteri Takibi"
    }
  ],
  "stage": "Qualify",
  "stage_idx": 0,
  "status": "AC",
  "url": "/customers/1"
}

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