...
Code Block |
---|
{ "data": { "created_by": "5b9f63e3d244d2000e276957", "company_id": "5b9f63e3d244d2000e27692f", "text": "some text", "entity_id": "5da5998fcecdb311d73d3049", "entity_type": "PERSON", "created_at": "2020-01-30T10:08:50.677Z", "updated_at": "2020-01-30T10:08:50.677Z", "id": "5e32ab3228faf61fc396f625" }, "status": 1 } |
Добавить звонок в акаунт
POST https://api.leeloo.ai/api/v2/calls
IMPORTANT: Pass your auth token in 'X-Leeloo-AuthToken
' header.
Request Body(form-data, all required)user_id
example: ‘5b0d313b307879002915b3cc’from
example: ‘606'to
example: ‘+380953076399'date
example: '2024-03-22T15:30:17.339Z'account_id
example: '6b0d313b307879002915b3c1’record_link
example: 'https://file-examples.com/storage/2017/11/file_example_MP3_5MG.mp3’status
example: 'SUCCESS' (one of: 'TALKING', 'SUCCESS', 'NO_ANSWER', 'CLOSED_BY_SYSTEM')duration
example: '100' (seconds)
Response
Code Block |
---|
{
"data": {
"raw_response": {},
"record_link": "https://file-examples.com/storage/fe7c2cbe4b65fa8179825d1/2017/11/file_example_MP3_5MG.mp3",
"company_id": "5b9f63e3d244d2000e27692f",
"user_id": "5b9f63e3d244d2000e276930",
"account_id": "65b632d119471a0012c3cabd",
"provider_type": "MANUAL",
"to": "+380663332222",
"from": "123",
"type": "OUTBOUND",
"status": "SUCCESS",
"telephone_connection_id": "603e5096c4a05c3a9506f219",
"call_id": "57fa99e0-e846-11ee-b73a-95e863e509cb",
"billsec": 140,
"created_at": "2024-03-22T12:00:36.980Z",
"updated_at": "2024-03-22T12:00:36.980Z",
"next_check": "2024-03-22T12:19:51.650Z",
"id": "65fd772be3f8780013eac6b0"
},
"status": 1 |
Теги
Получить список тегов
...