# Company context

`GET /api/v1/qe/context`

What fills the form once a company is chosen: contacts, active projects and the default one, the open deal's stage, open actions (closable), the last conversation, competitor note and records of Quick-Entry objects linked to this company (`co`). Unknown company → `found: false`.

## Query parameters

| Field | Type | Description |
|---|---|---|
| `customer_id` | integer | Company id. |
| `name` | string | or company name. |

## Response

```json 200
{
  "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"
    }
  ],
  "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"
}
```
