BeeCRM Hujjatlar

Lid yuborish

POST
/api/integrations/v1/leads/

Bot, sayt yoki forma lidini BeeCRM'ga yuboradi. event_id bilan takror yuborish xavfsiz: lid ikki marta yaratilmaydi. Yangi lid bo'lsa 201, mavjud lidga qo'shilsa yoki takror bo'lsa 200.

Avtorizatsiya

integrationBearer
AvtorizatsiyaBearer <kalit>

Qayerda: header

So'rov tanasi

TypeScript turlari

TypeScript'da request body turidan foydalaning.

Javob tanasi

application/json

application/json

curl -X POST "https://example.com/api/integrations/v1/leads/" \  -H "Content-Type: application/json" \  -d '{    "event_id": "string",    "first_name": "string"  }'
{  "answers": {    "invalid": [      {        "error": "string",        "key": "string"      }    ],    "kept_existing": [      "string"    ],    "unchanged": [      "string"    ],    "unmapped": [      "string"    ],    "written": [      "string"    ]  },  "contact_id": "f245e2a3-e141-4d41-912c-b1c1f5bd5598",  "deleted": true,  "intake_outcome": "created",  "lead": {    "active_task_due_at": "2019-08-24T14:15:22Z",    "active_task_status": "open",    "age": 0,    "assigned_to": "b9f52997-ff03-4166-bbff-22fd35e12939",    "assigned_to_detail": {      "avatar": "http://example.com",      "created_at": "2019-08-24T14:15:22Z",      "first_name": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "last_login": "2019-08-24T14:15:22Z",      "last_name": "string",      "phone": "string",      "username": "string"    },    "close_outcome": "lost",    "close_reason": "string",    "closed_at": "2019-08-24T14:15:22Z",    "closed_by": "75c6763f-a3ca-436b-b9c4-778f32517f97",    "closed_by_detail": {      "avatar": "http://example.com",      "created_at": "2019-08-24T14:15:22Z",      "first_name": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "last_login": "2019-08-24T14:15:22Z",      "last_name": "string",      "phone": "string",      "username": "string"    },    "comments_count": 0,    "country_code": "st",    "created_at": "2019-08-24T14:15:22Z",    "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",    "created_by_detail": {      "avatar": "http://example.com",      "created_at": "2019-08-24T14:15:22Z",      "first_name": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "last_login": "2019-08-24T14:15:22Z",      "last_name": "string",      "phone": "string",      "username": "string"    },    "currency": "UZS",    "custom_field_values": [      {        "boolean_value": true,        "date_value": "2019-08-24",        "datetime_value": "2019-08-24T14:15:22Z",        "decimal_value": "string",        "field": "73d88c0f-68c9-45bf-b3ea-ee20cfffb6b9",        "file_asset": "287bf787-de46-46ee-b444-ce5c097d779e",        "file_detail": {          "attached_at": "2019-08-24T14:15:22Z",          "checksum_sha256": "string",          "content_type": "string",          "created_at": "2019-08-24T14:15:22Z",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "original_name": "string",          "scan_status": "clean",          "size_bytes": 0        },        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "option": "e7c2432c-b004-45c5-a282-bcaf6d903541",        "option_detail": {          "color": "string",          "created_at": "2019-08-24T14:15:22Z",          "field": "73d88c0f-68c9-45bf-b3ea-ee20cfffb6b9",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "is_active": true,          "label": "string",          "order": 0,          "updated_at": "2019-08-24T14:15:22Z"        },        "selected_options": [          "dc3c625f-13bb-4878-8839-ac647c658879"        ],        "selected_options_detail": [          {            "color": "string",            "created_at": "2019-08-24T14:15:22Z",            "field": "73d88c0f-68c9-45bf-b3ea-ee20cfffb6b9",            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "is_active": true,            "label": "string",            "order": 0,            "updated_at": "2019-08-24T14:15:22Z"          }        ],        "text_value": "string",        "updated_at": "2019-08-24T14:15:22Z"      }    ],    "extra_data": null,    "first_name": "string",    "gender": "male",    "group": "fbd899a6-8a66-4f51-a95d-68668de198ae",    "group_detail": {      "color": "string",      "created_at": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "leads_count": 0,      "name": "string",      "order": 0    },    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "last_name": "string",    "last_payment_at": "string",    "location": "string",    "next_date": "2019-08-24",    "notes": "string",    "order": 0,    "payment_balance": "0",    "phone": "string",    "position": "string",    "region_code": "string",    "salary": "string",    "source": "string",    "stage": "9f09bdb0-89bd-4a1a-b468-0312474f1023",    "status": "82eda2a6-0a31-45ba-9c43-cfddbcb85a6d",    "status_detail": {      "color": "string",      "created_at": "2019-08-24T14:15:22Z",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "is_default": true,      "leads_count": 0,      "name": "string",      "order": 0    },    "tag_ids": [      "f822a538-5d10-4249-89b6-dd557ee5945e"    ],    "tags": [      {        "archived_at": "2019-08-24T14:15:22Z",        "color": "string",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "is_active": true,        "name": "string"      }    ],    "team": "95527efb-6695-4aae-916e-c9869b1fb2bd",    "total_paid": "0",    "updated_at": "2019-08-24T14:15:22Z",    "value": "string"  },  "matched_existing": true,  "needs_review": true,  "reactivated": true,  "replayed": true,  "submission_id": "945dfedc-ad7f-4af7-b20c-06082ffa3cb3"}