# Convert a lead

`POST /api/v1/leads/{id}/convert`

Converts the lead (same core as the web conversion card): to a registered company or as a new prospect; people are linked to the matched contact (blank fields filled), created as new contacts or skipped; optionally a new opportunity or linking to an open one; a fair visit (with attendees). The lead becomes `Aktarıldı`. With an empty body: registered / name-matched company, new opportunity, visit.

## Path parameters

| Field | Type | Description |
|---|---|---|
| `id` (required) | integer | Lead id. |

## Body

| Field | Type | Description |
|---|---|---|
| `mode` | string | Company: registered or new prospect. Values: `existing`, `new` |
| `customer_id` | integer | Company for `mode: existing`. |
| `people` | object | Person index (`i`) → `new` · `skip` · `<contact id>`. |
| `opp_mode` | string | Opportunity. Values: `new`, `existing`, `none` |
| `opp_id` | integer | Open opportunity for `opp_mode: existing`. |
| `make_visit` | boolean | Log a fair visit. |

## Response

```json 200
{
  "created": 2,
  "customer": "Alize Paketleme San. ve Tic. A.Ş.",
  "customer_id": 1,
  "lead": {
    "can_edit": true,
    "city": "",
    "company": "Alize Paketleme San. ve Tic. A.Ş.",
    "contact_label": "Selin Kaya +1",
    "contact_name": "Selin Kaya",
    "created_at": "2026-10-09T23:14:43",
    "customer_id": 1,
    "email": "",
    "fair": "Ambalaj Fuarı 2026 (örnek)",
    "fair_id": 1,
    "id": 27,
    "initials": "AP",
    "interest": "Sıcak",
    "line": "",
    "link_contact_id": 60,
    "link_customer": "Alize Paketleme San. ve Tic. A.Ş.",
    "link_customer_id": 1,
    "next_action": "",
    "next_date": null,
    "note": "",
    "opp_id": null,
    "opp_type": "",
    "owner": {
      "full_name": "Deniz Aksoy",
      "id": 1,
      "role": "admin",
      "role_label": "Yönetici",
      "username": "admin"
    },
    "people": [
      {
        "cid": null,
        "email": null,
        "name": "Emre Tan",
        "phone": "+90 532 444 55 66",
        "title": "Ar-Ge"
      }
    ],
    "phone": "",
    "potential_kg": null,
    "products": "",
    "products_text": "",
    "project_note": "",
    "rid": "00Q8D5NoUERPzEA",
    "sector": "",
    "status": "Aktarıldı",
    "status_eff": "Aktarıldı",
    "supplier": "",
    "task_id": null,
    "timing": "",
    "title": "",
    "unit": "kg",
    "visitor_type": "Potansiyel müşteri",
    "wa": "",
    "website": ""
  },
  "linked": 0,
  "message": "Lead CRM'e aktarıldı (kayıtlı firma): Alize Paketleme San. ve Tic. A.Ş. · 2 yeni kişi. Proje kazanılınca lead 'Kazanıldı' olur.",
  "ok": true,
  "opp_id": null
}
```
