{"info":{"_postman_id":"4091dbd9-b1ec-4471-bd71-4c0e05ca8bf4","name":"Stream Telecom","description":"<html><head></head><body><p>Щоб забезпечити клієнтам безперебійний зв'язок, Stream Telecom використовує найсучасніший підхід до захисту — географічно рознесене резервування обладнання.</p>\n<p>Сервери компанії Stream Telecom розташовані в декількох дата-центрах по всьому світу та страхують один одного. Якщо один із серверів виходить з ладу, його роботу негайно бере на себе інший. Сучасні технології допомагають швидко і непомітно для клієнта перенести навантаження з одного сервера на інший.</p>\n<p>Обираючи Stream Telecom, ви можете користуватися якісним зв’язком, не хвилюючись про технічні проблеми.</p>\n<p>У дата-центрах, де розміщене обладнання Stream Telecom, використовується резервне електропостачання.</p>\n<p>У режимі роботи від акумуляторів дата-центр може працювати до 20 хвилин. Водночас автономне живлення дата-центрів забезпечують дизель-генератори — стаціонарні керовані установки, що об'єднують у собі генератор змінного струму, дизельний двигун внутрішнього згоряння, а також системи управління та моніторингу.</p>\n<p>Користуйтеся IP-телефонією від Stream Telecom без залежності від перебоїв у електропостачанні!</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"8036399","collectionId":"4091dbd9-b1ec-4471-bd71-4c0e05ca8bf4","publishedId":"UVkiSJcE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"003A65"},"publishDate":"2026-08-11T13:27:34.000Z"},"item":[{"name":"Stream CRM API v1.25","item":[{"name":"sms","item":[{"name":"список SMS-шлюзів","id":"da5cd37e-f837-4409-8c4d-38f26d7935d4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"gateslist","type":"text"}]},"url":"https://crm.streamtele.com/api/sms","description":"<p>Функція повертає список доступних SMS-шлюзів. <strong>ID</strong> шлюзу надалі використовується для виклику функції відправки SMS або для отримання списку SMS. Параметри відсутні.</p>\n","urlObject":{"protocol":"https","path":["api","sms"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"5cb497c3-91a5-48bf-9c72-49baceda610e","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"gateslist","type":"text"}]},"url":"https://crm.streamtele.com/api/sms"},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-22 11:58:57\",\n    \"api_calls_per_hour_counter\": \"32/3600\",\n    \"section\": \"sms\", // Розділ API, до якого було звернення\n    \"action\": \"gateslist\", // Дія, яку запитали в цьому розділі\n    \"gateslist\": [ //  Масив з результатами запиту\n    {\n        \"1682\": \"StreamTelec (Stream Telecom SMPP)\", // id шлюзу : ім'я шлюзу \n        \"1851\": \"447520615485 (Stream Telecom)\", // id шлюзу : ім'я шлюзу\n        \"14367\": \"+380989004545 (Stream Telecom)\", // id шлюзу : ім'я шлюзу\n        \"19805\": \"+17029641669 (StreamTelcom)\", // id шлюзу : ім'я шлюзу\n        \"27811\": \"+380675782069 (Stream Telecom)\", // id шлюзу : ім'я шлюзу\n        \"35134\": \"+380673115108 (Stream Telecom)\", // id шлюзу : ім'я шлюзу\n        \"36658\": \"+380673116863\" // id шлюзу : ім'я шлюзу\n    }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-22 11:58:57\"\n}"}],"_postman_id":"da5cd37e-f837-4409-8c4d-38f26d7935d4"},{"name":"список SMS","id":"afcdbcbf-d8b2-41fd-aba5-db9c5edd00f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"smslist","type":"text"}]},"url":"https://crm.streamtele.com/api/sms","description":"<p><strong>Функція для отримання SMS за допомогою API</strong></p>\n<p>Ця функція повертає список SMS за останній тиждень за замовчуванням.</p>\n<p>Максимальна кількість SMS, яку можна отримати — 3000.</p>\n<h3 id=\"параметри-фільтрації\">Параметри фільтрації:</h3>\n<ul>\n<li><p><strong>filter[smsgate]</strong> – повертає SMS від конкретного шлюза, якщо вказано його ID.</p>\n</li>\n<li><p><strong>filter[stamp_from]</strong> – дата початку вибірки в форматі РРРР-ДД-ММ ЧЧ:ХХ:СС.</p>\n</li>\n<li><p><strong>filter[stamp_to]</strong> – дата закінчення вибірки в форматі РРРР-ДД-ММ ЧЧ:ХХ:СС.</p>\n</li>\n</ul>\n<h3 id=\"приклад-запиту\">Приклад запиту:</h3>\n<ol>\n<li><p>Якщо не вказані параметри часу, буде здійснено запит за останній тиждень.</p>\n</li>\n<li><p>Якщо потрібно отримати SMS за певний період, використовуйте параметри <code>stamp_from</code> і <code>stamp_to</code>.</p>\n</li>\n<li><p>Для отримання SMS лише від певного шлюзу, використовуйте параметр <code>filter[smsgate]</code>.</p>\n</li>\n</ol>\n<p>Цей запит дозволяє гнучко фільтрувати SMS за різними критеріями (шлюз, дата).</p>\n","urlObject":{"protocol":"https","path":["api","sms"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"031234b2-2366-460d-ba13-c59d7c7aa8a1","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"smslist","type":"text"}]},"url":"https://crm.streamtele.com/api/sms"},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-18 14:00:59\",\n    \"api_calls_per_hour_counter\": \"1/3600\",\n    \"section\": \"sms\", // Розділ API, до якого було звернення\n    \"action\": \"smslist\", // Дія, яку запитали в цьому розділі\n    \"smslist\": [ // Масив з результатами запиту\n        {\n            \"id\": \"300\", // SMS id\n            \"status_id\": \"2\", // Статус SMS\n            \"stamp\": \"2022-02-01 07:00:56\", // Час SMS\n            \"direction\": \"in\", // Вхідне або вихідне повідомлення\n            \"from\": \"ussd\", // Відправник SMS\n            \"to\": \"+380XXXXXXXXX\", // Одержувач SMS\n            \"text\": \"Na Vashomu rahunku 100 grn.\" // Текст повідомлення\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-18 14:00:59\"\n}"}],"_postman_id":"afcdbcbf-d8b2-41fd-aba5-db9c5edd00f8"},{"name":"відправка SMS","id":"c84eb127-cf3e-4069-a5c2-c3d64294522b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"smssend","type":"text"},{"key":"sms_gateway_id","value":"300","type":"text"},{"key":"sms_text","value":"Тестове СМС","type":"text"},{"key":"sms_phone","value":"380XXXXXXX","type":"text"},{"key":"sms_send_time","value":"2022-01-01 00:01:01","type":"text"}]},"url":"https://crm.streamtele.com/api/sms","description":"<p><strong>Функція для відправлення SMS через API</strong></p>\n<p>Параметри:</p>\n<ul>\n<li><p><strong>sms_gateway_id</strong> – ID SMS шлюзу для відправки SMS, отриманий із запиту <code>gateslist</code>.</p>\n</li>\n<li><p><strong>sms_text</strong> – текст SMS або USSD запит.</p>\n</li>\n<li><p><strong>sms_phone</strong> – номер телефону адресата SMS або службовий код = USSD.</p>\n</li>\n<li><p><strong>sms_send_time</strong> – час відправлення SMS у форматі РРРР-ХХ-ДД ГГ:ХХ:СС.</p>\n</li>\n<li><p>Якщо цей параметр не заданий, то час встановлюється за замовчуванням на поточний.</p>\n</li>\n</ul>\n<p>Ця функція дозволяє відправляти повідомлення SMS або USSD запити на задані номери телефонів або кодів у заданий час або поточний.</p>\n","urlObject":{"protocol":"https","path":["api","sms"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"23a7ac24-13ae-4190-afef-09ab48d019d2","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"smssend","type":"text"},{"key":"sms_gateway_id","value":"300","type":"text"},{"key":"sms_text","value":"Тестовое СМС","type":"text"},{"key":"sms_phone","value":"380XXXXXXX","type":"text"},{"key":"sms_send_time","value":"2022-01-01 00:01:01","type":"text"}]},"url":"https://crm.streamtele.com/api/sms"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-22 10:43:02\",\n    \"api_calls_per_hour_counter\": \"3/3600\",\n    \"section\": \"sms\", // Розділ API, до якого було звернення\n    \"action\": \"smssend\", // Дія, яку запитали в цьому розділі\n    \"smssend\": \"Sms send pending Ok - 70982881\", // Статус \n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-22 10:43:02\" \n    }"}],"_postman_id":"c84eb127-cf3e-4069-a5c2-c3d64294522b"}],"id":"3670af33-7e75-409c-8dbd-446b6ed5a894","_postman_id":"3670af33-7e75-409c-8dbd-446b6ed5a894","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"cdr","item":[{"name":"записи про дзвінки","id":"14ba743e-e09b-430f-8bf8-44edfa94e74a","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"cdrlist","type":"text"}]},"url":"https://crm.streamtele.com/api/cdr","description":"<p><strong>Отримання записів про дзвінки через API</strong></p>\n<p>За замовчуванням, якщо не вказано параметри <code>starttime_from</code> або <code>starttime_to</code>, система повертає дані за останній тиждень від поточної дати. Запит дозволяє здійснити пошук записів за допомогою фільтра. Максимальна кількість записів, яку можна отримати — 100.</p>\n<h3 id=\"параметри-фільтра\">Параметри фільтра:</h3>\n<ul>\n<li><p><strong>starttime_from/starttime_to</strong> – інтервал вибірки за датою/часом дзвінка у форматі РРРР-ДД-ММ ЧЧ:ХХ:СС. Максимальний період вибірки — 30 днів. Якщо ці параметри не задані, дата початку вибірки визначається як тиждень від поточної дати. Якщо дата закінчення більше ніж на 30 днів від початку, вибірка буде обмежена до 30 днів.</p>\n</li>\n<li><p><strong>manager</strong> – ID користувача зі списку користувачів (<code>userslist</code>).</p>\n</li>\n<li><p><strong>department</strong> – ID відділу зі списку відділів (<code>departmentlist</code>).</p>\n</li>\n<li><p><strong>direction</strong> – ID напряму/типу дзвінка:</p>\n<ul>\n<li><p><code>1</code> — вхідний дзвінок,</p>\n</li>\n<li><p><code>2</code> — вихідний дзвінок,</p>\n</li>\n<li><p><code>4</code> — редирект,</p>\n</li>\n<li><p><code>5</code> — локальний дзвінок.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>number</strong> – фільтр за номером дзвінка.</p>\n</li>\n<li><p><strong>firstcall</strong> – ознака першого дзвінка:</p>\n<ul>\n<li><p><code>0</code> — не перший дзвінок,</p>\n</li>\n<li><p><code>1</code> — перший дзвінок.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>audiocall</strong> – наявність аудіозапису дзвінка:</p>\n<ul>\n<li><p><code>0</code> — немає,</p>\n</li>\n<li><p><code>1</code> — є.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>nullcall</strong> – відповіли/не відповіли на дзвінок:</p>\n<ul>\n<li><p><code>1</code> — немає відповіді,</p>\n</li>\n<li><p><code>2</code> — є відповідь,</p>\n</li>\n<li><p><code>3</code> — пропущений вхідний дзвінок.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>externalnumber</strong> – ID зовнішнього номера з списку зовнішніх номерів (<code>extnumlist</code>).</p>\n</li>\n<li><p><strong>widget</strong> – ID віджету з списку віджетів (<code>widgetlist</code>).</p>\n</li>\n<li><p><strong>items_limit</strong> – кількість записів, що повертаються. За замовчуванням — 100, максимально — 499.</p>\n</li>\n<li><p><strong>items_offset</strong> – з якого запису почати віддачу результату, кількість пропущених записів. Цей параметр дозволяє вибирати записи по частинах (наприклад, по 100 записів).</p>\n</li>\n</ul>\n<h3 id=\"приклад-запиту\">Приклад запиту:</h3>\n<p>Якщо потрібно отримати записи за останній тиждень, можна не вказувати параметри часу або вказати певний інтервал за допомогою <code>starttime_from</code> та <code>starttime_to</code>.</p>\n<p>Це дозволяє ефективно шукати та фільтрувати записи дзвінків за різними параметрами.</p>\n","urlObject":{"protocol":"https","path":["api","cdr"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"79b63553-1c97-4e70-8cf7-4efb96f28d83","name":"200","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"cdrlist","type":"text"}]},"url":"https://crm.streamtele.com/api/cdr"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-22 12:48:27\",\n    \"api_calls_per_hour_counter\": \"22/3600\",\n    \"section\": \"cdr\",\n    \"action\": \"cdrlist\",\n    \"cdrlist\": [{\n        \"session_id\": \"1645526667.1504469\",\n        \"start_time\": \"2022-02-22 12:44:28\",\n        \"direction\": \"2\",\n        \"first_call\": \"0\",\n        \"num_a\": \"80044XXXX201\",\n        \"num_b\": \"38050XXXXXXX\",\n        \"num_c\": \"0443002526\",\n        \"transfers\": \"\",\n        \"customer\": \"484599\",\n        \"manager\": \"26246\",\n        \"answer_seconds\": \"19\",\n        \"total_seconds\": \"48\",\n        \"external_number\": \"13817\",\n        \"widget\": null,\n        \"amount\": \"0\",\n        \"callii_flag\": \"0\",\n        \"call_record_exists\": \"1\",\n        \"audio_record_link\": \"https://audio.streamtele.com/20220XXX/1645XXX6667.1504469_f50acaa64d74c4XXXXXXXXXX2152ce.mp3\",\n        \"customer_name\": \"Олександр\",\n        \"customer_second_name\": \"\",\n        \"customer_family_name\": \"Анатолійович\"\n    }],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-22 12:48:28\"\n}"}],"_postman_id":"14ba743e-e09b-430f-8bf8-44edfa94e74a"},{"name":"інформація про дзвінок \"сира\"","id":"4d4846be-0147-43fc-9e4c-1b7834dcfc24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"cdrinfo","type":"text"},{"key":"sessionid","value":"1491061053.129382","type":"text"}]},"url":"https://crm.streamtele.com/api/cdr","description":"<p>Отримання детальної «сирої» інформації про дзвінок. Обов'язковий параметр sessionid — це ID запису з запиту cdrlist (приклад - 1491061053.129382).</p>\n","urlObject":{"protocol":"https","path":["api","cdr"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"eabbc2bb-b28c-4c13-b766-398534881a98","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"cdrinfo","type":"text"},{"key":"sessionid","value":"1491061053.129382","type":"text"}]},"url":"https://crm.streamtele.com/api/cdr"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-22 13:17:07\",\n    \"api_calls_per_hour_counter\": \"1/3600\",\n    \"section\": \"cdr\", // розділ API, до якого було звернення\n    \"action\": \"cdrinfo\", // Дія, яку запитали в цьому розділі\n    \"cdrinfo\": [ // Масив з результатами запиту\n { // Дані про дзвінок з сервера\n    \"session_id\": \"1491061053.129382\", // ID сесії дзвінка\n    \"cdr_call_id\": \"1491061053.129382\", // ID сесії дзвінка в системі\n    \"cdr_caller_id\": \"80044XXXX928\", // Хто дзвонить\n    \"cdr_callee_id\": \"38095XXXXXXX\", // Набраний номер\n    \"cdr_real_caller_id\": \"80044XXXX201\", // Реальний хто дзвонить\n    \"cdr_real_callee_id\": \"095XXXXXXX\", // Реальний набраний номер\n    \"cdr_direction\": \"1\", // Напрямок дзвінка: \"1\" — вхідний дзвінок, \"2\" — вихідний\n    \"cdr_start_time\": \"2022-02-22 10:56:25\", // Час початку дзвінка\n    \"cdr_total_seconds\": \"13\", // Загальна тривалість дзвінка в секундах\n    \"cdr_answer_seconds\": \"7\" // Тривалість розмови в секундах\n},\n{ // Дані про дзвінок із CRM\n    \"session_id\": \"1491061053.129382\", // ID сесії дзвінка\n    \"cdr_call_id\": \"1491061053.129382\", // ID сесії дзвінка в системі\n    \"cdr_caller_id\": \"80044XXXX928\", // Хто дзвонить\n    \"cdr_callee_id\": \"38095XXXXXXX\", // Набраний номер\n    \"cdr_real_caller_id\": \"0443002111\", // Реальний Хто дзвонить\n    \"cdr_real_callee_id\": \"38095XXXXXXX\", // Реальний набраний номер\n    \"cdr_direction\": \"2\", // Напрямок дзвінка: \"1\" — вхідний дзвінок, \"2\" — вихідний\n    \"cdr_start_time\": \"2022-02-22 10:56:25\", // Час початку дзвінка\n    \"cdr_total_seconds\": \"13\", // Загальна тривалість дзвінка в секундах\n    \"cdr_answer_seconds\": \"7\" // Тривалість розмови в секундах\n}\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-22 13:17:07\"\n}"}],"_postman_id":"4d4846be-0147-43fc-9e4c-1b7834dcfc24"},{"name":"детальна інформація про дзвінок","id":"0f879160-8fab-4d30-9a28-4dfaffca1027","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"cdrdetails","type":"text"},{"key":"sessionid","value":"1491061053.129382","type":"text"},{"key":"with[]","value":"raw","type":"text"},{"key":"with[]","value":"widget","type":"text"},{"key":"with[]","value":"calltracking","type":"text"}]},"url":"https://crm.streamtele.com/api/cdr","description":"<p>Детальна інформація про дзвінок, з можливістю отримання сирої інформації (raw), інформації по виджету (widget) або по колтрекінгу (calltracking).<br /><strong>sessionid</strong> – ID сесії потрібного дзвінка. Обов'язкове поле.<br /><strong>with</strong> – назва блоку з додатковою інформацією, може містити одне або кілька (в цьому випадку передається масив) з наступних значень: \"raw\", \"widget\", \"calltracking\".</p>\n<p>Необов'язкове поле.</p>\n","urlObject":{"protocol":"https","path":["api","cdr"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"821be0ab-cbb6-496d-afd8-cf95741ede6c","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"cdrdetails","type":"text"},{"key":"sessionid","value":"1491061053.129382","type":"text"},{"key":"with[]","value":"raw","type":"text"},{"key":"with[]","value":"widget","type":"text"},{"key":"with[]","value":"calltracking","type":"text"}]},"url":"https://crm.streamtele.com/api/cdr"},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-04-13 12:26:06\",\n    \"api_calls_per_hour_counter\": \"3/3600\",\n    \"section\": \"cdr\",\n    \"action\": \"cdrdetails\",\n    \"cdrdetails\": {\n        \"Id\": \"503125270\",\n        \"Session_id\": \"1649840614.1282099\",\n        \"Start_time\": \"2022-04-13 12:03:36\",\n        \"Total_seconds\": \"250\",\n        \"Answer_seconds\": \"245\",\n        \"Direction\": \"2\",\n        \"Num_a\": \"80044XXX201\",\n        \"Num_b\": \"38067XXXXXXX\",\n        \"Num_c\": \"0443002111\",\n        \"User_group_id\": \"74\",\n        \"First_call\": \"0\",\n        \"Has_call_record\": \"1\",\n        \"External_numbers_id\": \"5151\",\n        \"Extension_user_id\": \"33745\",\n        \"Transfers\": \"201 202\",\n        \"Amount\": \"0\",\n        \"Callii_flag\": \"0\",\n        \"Minute_price\": \"0\",\n        \"Callii_numbers_id\": \"0\",\n        \"Widget_id\": \"5\",\n        \"Customer_id\": \"0\",\n        \"Raw\": [\n            {\n                \"Session_id\": \"1649840614.1282099\",\n                \"Cdr_call_id\": \"1649840614.1282100\",\n                \"Cdr_caller_id\": \"38067XXXXXXX\",\n                \"Cdr_callee_id\": \"800XXXXX201\",\n                \"Cdr_real_caller_id\": \"38067XXXXXXX\",\n                \"Cdr_real_callee_id\": \"800XXXXX201\",\n                \"Cdr_direction\": \"1\",\n                \"Cdr_start_time\": \"2022-04-13 12:03:34\",\n                \"Cdr_total_seconds\": \"252\",\n                \"Cdr_answer_seconds\": \"250\"\n            },\n            {\n                \"Session_id\": \"1649840614.1282099\",\n                \"Cdr_call_id\": \"1649840614.1282100\",\n                \"Cdr_caller_id\": \"067XXXXXXX\",\n                \"Cdr_callee_id\": \"800XXXXX201\",\n                \"Cdr_real_caller_id\": \"38067XXXXXXX\",\n                \"Cdr_real_callee_id\": \"800XXXXX201\",\n                \"Cdr_direction\": \"2\",\n                \"Cdr_start_time\": \"2022-04-13 12:03:34\",\n                \"Cdr_total_seconds\": \"252\",\n                \"Cdr_answer_seconds\": \"250\"\n            },\n            {\n                \"Session_id\": \"1649840614.1282099\",\n                \"Cdr_call_id\": \"1649840614.1282099\",\n                \"Cdr_caller_id\": \"800XXXXX201\",\n                \"Cdr_callee_id\": \"38067XXXXXXX\",\n                \"Cdr_real_caller_id\": \"800XXXXX201\",\n                \"Cdr_real_callee_id\": \"067XXXXXXX\",\n                \"Cdr_direction\": \"1\",\n                \"Cdr_start_time\": \"2022-04-13 12:03:35\",\n                \"Cdr_total_seconds\": \"250\",\n                \"Cdr_answer_seconds\": \"245\"\n            },\n            {\n                \"Session_id\": \"1649840614.1282099\",\n                \"Cdr_call_id\": \"1649840614.1282099\",\n                \"Cdr_caller_id\": \"800XXXXX201\",\n                \"Cdr_callee_id\": \"38067XXXXXXX\",\n                \"Cdr_real_caller_id\": \"0443002111\",\n                \"Cdr_real_callee_id\": \"38067XXXXXXX\",\n                \"Cdr_direction\": \"2\",\n                \"Cdr_start_time\": \"2022-04-13 12:03:36\",\n                \"Cdr_total_seconds\": \"250\",\n                \"Cdr_answer_seconds\": \"245\"\n            }\n        ],\n        \"calltracking\": [\n            {\n                \"country\": \"Ukraine\",\n                \"region\": \"Kyiv\",\n                \"utm_source\": \"google\",\n                \"utm_medium\": \"cpc\",\n                \"utm_campaign\": \"\",\n                \"utm_term\": \"\",\n                \"utm_content\": \"\",\n                \"created_at\": \"2024-11-12 15:50:13\",\n                \"first_time\": \"17 хвилин\",\n                \"ip\": \"185.13.100.100\",\n                \"ga\": \"589554809.1731418332\",\n                \"ga_id\": \"\",\n                \"site\": \"https://streamtele.com/\",\n                \"history\": \"https://streamtele.com/uk/?gad_source=1&gclid=Cj0KCQiAlsy5BhDeARIsABRc6ZsTfHV0F2OrA8UpnLAq_HXy73fEwUgjk1F5MJkA1LCITVhN7GWdEY0aAg94EALw_wcB\",\n                \"referrer\": \"https://www.google.com/\",\n                \"telephone_from\": \"0973331122\",\n                \"telephone_to\": \"380443003003\",\n                \"telephone_connect\": \"380443003003\",\n                \"time_waiting\": \"0\",\n                \"time_talk\": \"0\",\n                \"status\": \"3\",\n                \"session_id\": \"1731419413.1169094\"\n            }\n        ],\n        \"widget\": [\n            {\n                \"site_name\": \"streamtele.com\",\n                \"site_page_href\": \"https%3A%2F%2Fstreamtele.com%2Fuk%2Fmasovi-sms-rozsylky-dlya-biznesu-detalnyj-analiz-kanalu-komunikacziyi-z-kliyentamy-2%2F\",\n                \"send_to_ga\": \"yes\",\n                \"send_to_ga_event\": \"\",\n                \"ga_client_id\": \"\",\n                \"ga_tracking_id\": \"\",\n                \"name\": \"streamtele.com ukr\",\n                \"stamp\": \"2023-04-09 16:57:25.000000\",\n                \"id\": \"e63490ac0ee9e0be6516b58979e09c23\",\n                \"status\": \"2\",\n                \"number\": \"+380681110022\",\n                \"xname\": \"-\",\n                \"ip\": \"190.00.000.178\",\n                \"cdr_start_time\": \"2023-04-10 12:38:12\",\n                \"cdr_session_id\": \"1681119491.252776\",\n                \"queue_insert_date\": \"2023-04-09 16:57:25\",\n                \"queue_id\": \"645797178\"\n            }\n        ]\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-04-13 12:26:06\"\n}\n"}],"_postman_id":"0f879160-8fab-4d30-9a28-4dfaffca1027"}],"id":"79499f3b-cb08-4341-866d-0556faee33fb","_postman_id":"79499f3b-cb08-4341-866d-0556faee33fb","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"queue","item":[{"name":"список записів у черзі","id":"c05acf74-fc1d-4fdc-a4fd-618a9341931f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"itemlist","type":"text"}]},"url":"https://crm.streamtele.com/api/queue","description":"<p>Функція повертає список записів із черги.</p>\n<p>За замовчуванням повертаються записи за останній тиждень.</p>\n<p>Максимальна кількість записів, що повертаються, – 3000.</p>\n<p>Можливі параметри:</p>\n<ul>\n<li><p><strong>filter[source]</strong> – повернути записи конкретного джерела даних (зазначається ID джерела),</p>\n</li>\n<li><p><strong>filter[stamp_from]</strong> – дата початку вибірки,</p>\n</li>\n<li><p><strong>filter[stamp_to]</strong> – дата закінчення вибірки.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","queue"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"85ddaaa4-0814-4436-96fb-94a0eb3634bd","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"itemlist","type":"text"}]},"url":"https://crm.streamtele.com/api/queue"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"Req_start_stamp\": \"2022-02-22 14:57:49\",\n    \"Api_calls_per_hour_counter\": \"6/3600\",\n    \"Section\": \"queue\", // Розділ API, до якого було звернення\n    \"Action\": \"itemlist\", // Дія, запитана в цьому розділі\n    \"Itemlist\": // Масив з результатами запиту\n    [ \n    {\n        \"Id\": \"499382821\", // ID запису в черзі\n        \"Stamp\": \"2022-02-22 14:49:49\", // Час потрапляння в чергу\n        \"Status\": \"Нова запис\", // Статус запису\n        \"Manager\": \"система\", // Від кого отримані дані\n        \"Post_date\": \"2022-02-22 14:47:12\", // Час дзвінка\n        \"Taken_by_manager_date\": null, // Час, коли запис був взятий менеджером\n        \"Closed_date\": null, // Дата закриття запису\n        \"Source_id\": \"7\", // ID джерела\n        \"City\": \"Не визначено\",\n        \"Phone\": \"+38067XXXXXXX\",\n        \"Email\": \"\",\n        \"Family_name\": null,\n        \"Second_name\": null,\n        \"Name\": \"Звінок #492021454\",\n        \"Comment\": \"Пропущений дзвінок на номер 380443002526\",\n        \"Notes\": \"session_id=1645534032.1678971, num_b=380443002526, num_c=380443002526\",\n        \"Company_name\": null,\n        \"Address\": null\n    }\n    ],\n    \"Result\": \"ok\",\n    \"Req_end_stamp\": \"2022-02-22 14:57:49\"\n}"}],"_postman_id":"c05acf74-fc1d-4fdc-a4fd-618a9341931f"},{"name":"додавання запису в чергу","id":"dc8b9a05-5570-449d-8acb-1f33fcf64240","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"itemadd","type":"text"},{"key":"name","value":"John Doe","type":"text"},{"key":"email","value":"jd@mail.com","type":"text"},{"key":"source","value":"333","type":"text"},{"key":"comment","value":"secret agent","type":"text"}]},"url":"https://crm.streamtele.com/api/queue","description":"<p>Функція дозволяє додати новий запис у чергу.</p>\n<h3 id=\"обовязкові-параметри\">Обов'язкові параметри:</h3>\n<ul>\n<li><p><strong>name</strong> – ім'я клієнта (текстове поле від 2 до 70 символів).</p>\n</li>\n<li><p><strong>email</strong> (коректна E-Mail адреса) або <strong>phone</strong> (номер телефону від 11 до 15 знаків).</p>\n</li>\n<li><p><strong>source</strong> (ID джерела даних із запиту sourcelist).</p>\n</li>\n<li><p><strong>comment</strong> (коментар від 2 до 200 символів).</p>\n</li>\n</ul>\n<h3 id=\"опціональні-параметри\">Опціональні параметри:</h3>\n<ul>\n<li><p><strong>post_date</strong> – дата/час створення запису (наприклад, час публікації на сайті або дзвінка, формат РРРР-ММ-ДД ГГ:ХХ:СС, наприклад: <code>2016-03-21 21:45:23</code>).</p>\n</li>\n<li><p><strong>notes</strong> – додаткові дані (текстове поле до 200 символів).</p>\n</li>\n<li><p><strong>city</strong> – ID міста із запиту citylist.</p>\n</li>\n<li><p><strong>company_name</strong> – назва компанії (текстове поле до 100 символів).</p>\n</li>\n<li><p><strong>address</strong> – адреса (текстове поле до 200 символів).</p>\n</li>\n<li><p><strong>family_name</strong> – прізвище (текстове поле до 70 символів).</p>\n</li>\n<li><p><strong>second_name</strong> – по батькові (текстове поле до 70 символів).</p>\n</li>\n<li><p><strong>remote_addr</strong> – IP-адреса клієнта.</p>\n</li>\n<li><p><strong>user</strong> – ID користувача, якщо потрібно примусово призначити запис конкретному користувачу.</p>\n</li>\n<li><p><strong>department</strong> – ID відділу, якщо потрібно примусово призначити запис у конкретний відділ.</p>\n</li>\n<li><p><strong>queue_email</strong> – <code>on</code>/<code>off</code> – увімкнути або вимкнути прапорець надсилання сповіщення про новий запис у черзі на E-Mail.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","queue"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"6a63217b-3857-4765-ac79-cc71b132c153","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"itemadd","type":"text"},{"key":"name","value":"John Doe","type":"text"},{"key":"email","value":"jd@mail.com","type":"text"},{"key":"source","value":"333","type":"text"},{"key":"comment","value":"secret agent","type":"text"}]},"url":"https://crm.streamtele.com/api/queue"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-23 13:41:14\",\n    \"api_calls_per_hour_counter\": \"8/3600\",\n    \"section\": \"queue\", // розділ API, до якого було звернення\n    \"action\": \"itemadd\", // дія, запитана в цьому розділі\n    \"item_id\": \"510147763\", // id нового запису в Черзі\n    \"itemadd\": \"Record adding to queue Ok - 510147763\",\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-23 13:41:14\"\n}"}],"_postman_id":"dc8b9a05-5570-449d-8acb-1f33fcf64240"}],"id":"a6b71ffd-2c4d-48b4-b87f-6bf7d3713a57","_postman_id":"a6b71ffd-2c4d-48b4-b87f-6bf7d3713a57","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"lists","item":[{"name":"список джерел даних","id":"e0b25ebc-d7c7-49ce-b26d-233caf220b6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"sourcelist"}]},"url":"https://crm.streamtele.com/api/lists","description":"<p>Функція повертає список доступних джерел даних.</p>\n<p><strong>ID джерела</strong> надалі використовується у функції додавання даних до черги або у фільтрі функції отримання списку записів черги чи клієнтів.</p>\n<p>Параметри відсутні.</p>\n","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"f0ccb3d4-f2ea-407c-b777-eb3e9ae7417f","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"sourcelist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 09:31:20\",\n    \"api_calls_per_hour_counter\": \"5/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"sourcelist\", // дія, запитана в цьому розділі\n    \"sourcelist\": // масив із результатами запиту\n    { \n        \"5\": \"Введено користувачем\",\n        \"7\": \"Пропущені дзвінки\",\n        \"268\": \"Замовлення дзвінка з сайту\",\n        \"1249\": \"Фейсбук\",\n        \"1657\": \"Нотаріус\",\n        \"4181\": \"Реклама Google\",\n        \"8289\": \"Промо-сторінка\"\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-23 09:31:20\"\n}"}],"_postman_id":"e0b25ebc-d7c7-49ce-b26d-233caf220b6a"},{"name":"список джерел інформації","id":"3a14ad73-075e-4246-882e-b3f7764899e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"channellist"}]},"url":"https://crm.streamtele.com/api/lists","description":"<p>Функція повертає список доступних джерел інформації, які можуть використовуватися для додавання даних у чергу або фільтрації під час отримання записів.</p>\n<p>Параметри відсутні.</p>\n","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"184ba288-d626-40e5-9d88-566af34cf9ec","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"channellist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 09:39:27\",\n    \"api_calls_per_hour_counter\": \"8/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"channellist\", // дія, запитана в цьому розділі\n    \"channellist\": // масив із результатами запиту\n    {\n        \"3546\": \"Інтернет\",\n        \"4722\": \"Рекомендації\",\n        \"28386\": \"Моє джерело\"\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-23 09:39:27\"\n}"}],"_postman_id":"3a14ad73-075e-4246-882e-b3f7764899e3"},{"name":"список країн","id":"a5d102a0-23bb-48ea-a060-42bb2d9c91a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"countrylist"}]},"url":"https://crm.streamtele.com/api/lists","description":"<p>Функція повертає список країн.</p>\n<p><strong>ID країни</strong> надалі використовується у функції вибору міст.</p>\n<p><strong>Параметри відсутні.</strong></p>\n","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"950eb388-b497-4714-bc44-44ada5f51897","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"countrylist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 09:43:40\",\n    \"api_calls_per_hour_counter\": \"9/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"countrylist\", // дія, запитана в цьому розділі\n    \"countrylist\": // масив із результатами запиту (у прикладі показано перші 10 країн)\n    {\n        \"250\": \"Afghanistan\",\n        \"2\": \"Åland Islands\",\n        \"3\": \"Albania\",\n        \"4\": \"Algeria\",\n        \"5\": \"American Samoa\",\n        \"6\": \"Andorra\",\n        \"7\": \"Angola\",\n        \"8\": \"Anguilla\",\n        \"9\": \"Antarctica\",\n        \"10\": \"Antigua and Barbuda\"\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-23 09:43:40\"\n}\n"}],"_postman_id":"a5d102a0-23bb-48ea-a060-42bb2d9c91a0"},{"name":"список міст","id":"07eb6a67-69e2-4051-96f8-50daed33c7f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"citylist"}]},"url":"https://crm.streamtele.com/api/lists","description":"<p>Функція повертає список міст.<br />За замовчуванням список формуються для країни, до якої прив'язана компанія.</p>\n<p><strong>ID міста</strong> надалі використовується у функції додавання даних до черги, а також у різних фільтрах. Можливо примусово викликати список міст для конкретної країни за допомогою параметра <strong>country=COUNTRY_ID</strong>.</p>\n","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"7f754549-063c-40b7-b95e-8ff34bf04871","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"citylist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 09:48:43\",\n    \"api_calls_per_hour_counter\": \"10/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"citylist\", // дія, запитана в цьому розділі \n    \"citylist\": // масив із результатами запиту (у прикладі наведено 10 міст довільно)\n    {\n        \"47108\": \"Калуш\",\n        \"27\": \"Кам'янець-Подільський\",\n        \"47110\": \"Кам'янка\",\n        \"47112\": \"Кам'янка-Бузька\",\n        \"47114\": \"Кам'янка-Дніпровська\",\n        \"15\": \"Кам'янське\",\n        \"47116\": \"Камінь-Каширський\",\n        \"99\": \"Канів\",\n        \"47118\": \"Карлівка\",\n        \"47120\": \"Каховка\" \n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-23 13:46:28\" \n}"}],"_postman_id":"07eb6a67-69e2-4051-96f8-50daed33c7f6"},{"name":"список користувачів","id":"3a50a52c-0642-4127-868a-71d7f87a9f49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"userlist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"5d2c9e61-3693-4867-963e-b6ff5d63b955","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"userlist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-23 13:49:22\",\n    \"api_calls_per_hour_counter\": \"11/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"userlist\", // дія, запитана в цьому розділі\n    \"userlist\": {\n          \"13\": {\n            \"realname\": \"Ann\", // ПІБ співробітника\n            \"email\": \"ann@streamtele.com\",\n            \"phone\": \"+38067XXXXXXX\",\n            \"internal_phone\": \"800XXXXX915\", // внутрішній номер співробітника\n            \"department\": \"Відділ розробки\", // відділ\n            \"position\": \"Менеджер\", // посада в компанії\n            \"access\": \"enabled\", // доступ до CRM\n            \"sip_peer\": \"offline\" // статус внутрішньої лінії\n          }\n        },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-23 13:49:23\"\n}"}],"_postman_id":"3a50a52c-0642-4127-868a-71d7f87a9f49"},{"name":"список відділів","id":"c6b5e19e-1416-4a22-80bd-b8ac6da2984f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"departmentlist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"797c9c96-e909-463e-8efc-938cbdb5c9e0","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"departmentlist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 09:53:11\",\n    \"api_calls_per_hour_counter\": \"12/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"departmentlist\", // дія, запитана в цьому розділі\n    \"departmentlist\": { // масив із результатами запиту\n        \"4\": \"Відділ Stream\",\n        \"36\": \"Техпідтримка\",\n        \"37\": \"Відділ продажів\",\n        \"357\": \"Абонентський відділ\",\n        \"8696\": \"Відділ маркетингу\",\n        \"8701\": \"Відділ контролю якості\",\n        \"8716\": \"Відділ розробки\",\n        \"8721\": \"HR-відділ\",\n        \"8726\": \"Адміністративний відділ\" \n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-23 09:53:11\" \n}"}],"_postman_id":"c6b5e19e-1416-4a22-80bd-b8ac6da2984f"},{"name":"список власних міток клієнтів","id":"78d7a4ba-1b40-4054-8218-055167954ebd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"labellist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"9eb2e311-5672-4354-a0f2-021f5fab9635","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"labellist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 09:55:53\",\n    \"api_calls_per_hour_counter\": \"13/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"labellist\", // дія, запитана в цьому розділі\n    \"labellist\": { // масив із результатами запиту\n        \"2\": \"Без мітки\",\n        \"191\": \"Партнер\",\n        \"2423\": \"Ми рекомендуємо\" \n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-23 09:55:53\"\n}"}],"_postman_id":"78d7a4ba-1b40-4054-8218-055167954ebd"},{"name":"список типів клієнтських анкет","id":"79e72349-79f2-48db-9eef-7f08263c4171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"customertypelist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"14f9c290-10ca-41b8-9306-c38041343645","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"customertypelist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 09:57:22\",\n    \"api_calls_per_hour_counter\": \"14/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"customertypelist\", // дія, запитана в цьому розділі\n    \"customertypelist\": { // масив із результатами запиту\n        \"1\": \"Потенційні клієнти\",\n        \"2\": \"Клієнти\" \n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-23 09:57:22\"\n}"}],"_postman_id":"79e72349-79f2-48db-9eef-7f08263c4171"},{"name":"список типів комунікацій","id":"b8e1a9a7-5d78-434a-b822-2924769b598a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"commtypelist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"224f14ba-dedb-4350-8487-f9a0e29e784c","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"commtypelist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 10:00:54\",\n    \"api_calls_per_hour_counter\": \"1/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"commtypelist\", // дія, запитана в цьому розділі\n    \"commtypelist\": { // масив із результатами запиту\n        \"1\": \"Невідомо\",\n        \"2\": \"Автоматичний запис\",\n        \"3\": \"Вхідний дзвінок\",\n        \"4\": \"Зустріч\",\n        \"5\": \"Вихідний дзвінок\",\n        \"6\": \"Відправка SMS\",\n        \"7\": \"E-Mail\",\n        \"8\": \"Вхідний SMS\",\n        \"9\": \"Онлайн-консультація\" \n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-23 10:00:54\"\n}"}],"_postman_id":"b8e1a9a7-5d78-434a-b822-2924769b598a"},{"name":"список тем комунікацій","id":"62f02250-0915-484c-a195-aca7f68b110a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"commsubjectlist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"f19e0f40-4a2d-4e1d-972d-ad4d2c582c0f","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"commsubjectlist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 10:01:45\",\n    \"api_calls_per_hour_counter\": \"2/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"commsubjectlist\", // дія, запитана в цьому розділі\n    \"commsubjectlist\": { // масив із результатами запиту\n        \"5193\": \"Перший дзвінок\",\n        \"5195\": \"Консультація\",\n        \"5197\": \"Зворотний зв'язок\",\n        \"7563\": \"Питання Support\"\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-23 10:01:45\"\n}"}],"_postman_id":"62f02250-0915-484c-a195-aca7f68b110a"},{"name":"список користувацьких полів","id":"555c94e1-0c8c-481b-958f-dbcff00a91f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"customrowslist"}]},"url":"https://crm.streamtele.com/api/lists","description":"<p>список користувацьких полів в анкетах клієнтів</p>\n","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"0d04ee53-b6f6-4a9c-a91e-60103b8cf672","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"customrowslist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-04-04 12:57:23\",\n    \"api_calls_per_hour_counter\": \"0/360\",\n    \"section\": \"lists\",\n    \"action\": \"customrowslist\",\n    \"customrowslist\": {\n        \"5692\": \"поле 1 [Text (<=100 chars)]\", // текстове поле 100 символів\n        \"5695\": \"поле 2 [Decimal number (example 1, 2, 56, ...)]\", // поле ціле число\n        \"5698\": \"поле 3 [Real number (example 0.65, 45.345, ....)]\", // поле дробове число\n        \"5701\": \"поле 4 [Date YYYY-MM-DD (example 2015-03-21)]\", // поле дата\n        \"5704\": \"поле 5 [Boolean 0 or 1]\", // поле так=1, ні=0 \n        \"5707\": \"поле 6 [Boolean 0 or 1]\", // поле прапорець є=1(чекбокс)\n        \"5710\": \"поле 7 [Large text (<=1200 chars)]\", // велике текстове поле 1200 символів\n        \"5713\": \"поле 8 [Select box. Options: {\\\"1\\\": \\\"Select box 1\\\",\\\"2\\\": \\\"Select box 2\\\"}]\", // випадаючий список // id полів выпадаючого списку\n        \"5716\": \"поле 9 [Multiselect box. Options: {\\\"1\\\": \\\"Multiselect box 1\\\",\\\"2\\\": \\\"Multiselect box 2\\\"}]\", //мультиселект // id полів мультиселект\n        \"5734\": \"поле 10 [Select with searchbox. Options: {\\\"1\\\": \\\"Select with searchbox 1\\\",\\\"2\\\": \\\"Select with searchbox 2\\\"}]\", // пошук всередині поля та вибір // // id полів пошуку\n        \"5735\": \"поле 11 [Link (example https://domain.com or http://domain.com or domain.com)]\" // посилання\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-04-04 12:57:23\" \n}"}],"_postman_id":"555c94e1-0c8c-481b-958f-dbcff00a91f2"},{"name":"список активних дзвінків","id":"35866676-8421-411f-b418-539e7f994305","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"activecallslist"},{"key":"action","value":"hide_calls_from_queue","type":"text","uuid":"081d033c-c8a2-4d58-a31e-5c9df9449db2","disabled":true}]},"url":"https://crm.streamtele.com/api/lists","description":"<p>Функція повертає список активних дзвінків.</p>\n<p>Опціональний параметр:</p>\n<ul>\n<li>hide_calls_from_queue - дозволяє відфільтрувати дзвінки з черги.</li>\n</ul>\n<p>Він підтримує такі значення:</p>\n<ul>\n<li><p><strong>true</strong> - виключити з відповіді дзвінки з direction = \"queue\";</p>\n</li>\n<li><p><strong>false</strong> - повернути всі активні дзвінки, включно з дзвінками з черги;</p>\n</li>\n<li><p><strong>параметр не передано</strong> - зберігається попередня поведінка API, повертаються всі активні дзвінки.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"3a2a9cb8-3d7d-4b20-a2df-8aa4d44962d5","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"activecallslist"},{"key":"action","value":"hide_calls_from_queue","type":"text","uuid":"a0c3e741-47b6-4440-9c48-5d54bc51f544","disabled":true}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-02-23 10:17:06\",\n    \"api_calls_per_hour_counter\": \"5/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"activecallslist\", // дія, запитана в цьому розділі\n    \"activecallslist\": [ // масив із результатами запиту\n        {\n            \"uniqueid\": \"1645604209.2158765\", // id запису в розділі Активні дзвінки\n            \"starttime\": \"2022-02-23 10:16:49\", // час/дата дзвінка\n            \"company\": \"Stream Telecom\", // назва компанії, яка здійснює дзвінок\n            \"direction\": \"out\", // тип дзвінка\n            \"duration\": \"00:00:09\", // тривалість дзвінка\n            \"user\": \"26246\", // id співробітника в системі\n            \"username\": \"Єлена\", // ПІБ співробітника\n            \"caller\": \"800XXXXX201\", // внутрішній номер співробітника\n            \"dialednumber\": \"380XXXXXXXXX\", // набраний номер\n            \"num_c\": \"0443002526\", // номер, з якого дзвонять\n            \"redirect_num\": \"\", // номер переадресації\n            \"customer\": \"5652498\", // id клієнта в системі\n            \"customername\": \"Олександр\", // ПІБ клієнта\n            \"customercompany\": \"ФОП Олександр\", // назва компанії клієнта\n            \"dst_username\": \"\" // ПІБ співробітника, якому дзвонять, якщо дзвінок локальний\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-02-23 10:17:06\"\n}"}],"_postman_id":"35866676-8421-411f-b418-539e7f994305"},{"name":"список активних черг ВАТС","id":"7c869d2e-9da8-4492-b73b-d52d74589720","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"activessqueueslist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"1be31fe3-ffed-4389-9dee-fe36718e19b5","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"activessqueueslist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-23 14:03:43\",\n    \"api_calls_per_hour_counter\": \"3/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"activessqueueslist\", // дія, запитана в цьому розділі\n    \"activessqueueslist\": [ // повертає дані про співробітників, які знаходяться у статусі \"Вільний\", \"Пауза\", \"Відключено\", N/A не відображається у відповіді\n        {\n            \"ss_queue_id\": \"17\", // id черги\n            \"company_id\": \"2\", // id компанії в системі\n            \"company\": \"Stream Telecom\", // назва компанії\n            \"manager\": \"Анна\", // ПІБ співробітника\n            \"queue\": \"1\", // номер черги\n            \"queue_code\": \"queue_2_1\", // системний ідентифікатор черги\n            \"queue_description\": \"Відділ продажу\", // назва черги\n            \"peer\": \"800XXXXX915\", // внутрішній номер співробітника в черзі\n            \"membership\": \"dynamic\", // тип черги\n            \"penalty\": \"1\", // пріоритет в черзі\n            \"callstaken\": \"3\", // кількість прийнятих дзвінків\n            \"lastcall\": \"14:20:34\", // час останнього дзвінка\n            \"status\": \"Вільний\", // статус в черзі\n            \"paused\": \"0\" // кількість пауз\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-23 14:03:43\"\n}"}],"_postman_id":"7c869d2e-9da8-4492-b73b-d52d74589720"},{"name":"статуси внутрішніх ліній (кол-центр)","id":"bc19da2f-573a-4e33-93c9-950bdfd41097","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"ccstatuseslist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"0784e1ad-2279-4137-aca7-54964b7bccc2","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"ccstatuseslist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-23 14:09:24\",\n    \"api_calls_per_hour_counter\": \"4/3600\",\n    \"section\": \"lists\",\n    \"action\": \"ccstatuseslist\", // дія, запитана в цьому розділі\n    \"ccstatuseslist\": { // масив з результатами запиту\n        \"1\": \"N/A\",\n        \"2\": \"Вільний\",\n        \"3\": \"Пауза\",\n        \"4\": \"Відключено\",\n        \"5\": \"Заповнення анкети\"\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-23 14:09:24\"\n}"}],"_postman_id":"bc19da2f-573a-4e33-93c9-950bdfd41097"},{"name":"внутрішні телефонні номери","id":"a3619c5c-f1e5-4b55-8f9d-f544e16405ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"extensionslist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"42f6137e-dd06-4ace-b8a5-c988bb54b87d","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"extensionslist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-23 14:11:46\",\n    \"api_calls_per_hour_counter\": \"20/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"extensionslist\", // дія, запитана в цьому розділі\n    \"extensionslist\": {\n        \"29\": {\n            \"extension\": \"800XXXXX901\", // внутрішня лінія\n            \"ccstatus\": \"1\", // id статусу колл-центру (з попереднього запиту)\n            \"sip_peer\": \"online\" // стан внутрішньої лінії\n        },\n        \"58\": {\n            \"extension\": \"800XXXXX903\",\n            \"ccstatus\": \"2\",\n            \"sip_peer\": \"offline\"\n        }\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-23 14:11:47\"\n}"}],"_postman_id":"a3619c5c-f1e5-4b55-8f9d-f544e16405ef"},{"name":"список зовнішніх номерів","id":"43fa085d-dc33-4a0a-a97f-992c1c3b3f06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"extnumlist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"ea88923d-d85b-4ba6-b85f-9505ab04a24b","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"extnumlist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-23 14:14:02\",\n    \"api_calls_per_hour_counter\": \"21/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"extnumlist\", // дія, запитана в цьому розділі\n    \"extnumlist\": {\n        \"1\": {\n            \"name\": \"0445854545\", // зовнішній номер\n            \"description\": \"Stream Sales\" // назва зовнішнього номера\n        },\n        \"2\": {\n            \"name\": \"380989004545\",\n            \"description\": \"Stream KS\"\n        },\n        \"3\": {\n            \"name\": \"380996113963\",\n            \"description\": \"Stream Vodafon\"\n        }\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-23 14:14:02\"\n}"}],"_postman_id":"43fa085d-dc33-4a0a-a97f-992c1c3b3f06"},{"name":"список віджетів","id":"7ac3d40f-05bb-49e8-a893-c77fdb6b4bdb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"widgetlist"}]},"url":"https://crm.streamtele.com/api/lists","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"056d8052-b40a-4fd3-ae03-a1a04d8f8bb8","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"widgetlist"}]},"url":"https://crm.streamtele.com/api/lists"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-23 14:16:00\",\n    \"api_calls_per_hour_counter\": \"22/3600\",\n    \"section\": \"lists\", // розділ API, до якого було звернення\n    \"action\": \"widgetlist\", // дія, запитана в цьому розділі\n    \"widgetlist\": {\n        \"1\": { // id віджета\n            \"name\": \"Замовлення дзвінка з сайту\", // назва віджета\n            \"description\": \"Віджет замовлення дзвінка для сайту streamtele.com\" // опис віджета\n        },\n        \"5\": {\n            \"name\": \"Замовлення дзвінка в чергу\",\n            \"description\": \"Віджет замовлення дзвінка для сайту streamtele.com\"\n        }\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-23 14:16:00\"\n}"}],"_postman_id":"7ac3d40f-05bb-49e8-a893-c77fdb6b4bdb"},{"name":"історія зміни статусів КЦ","id":"63fc1ce3-7cd6-42d4-9813-b327b070f2a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"ccstatuschangelist"},{"key":"filter[stamp_from]","value":"2023-01-01 09:57:45","description":"<p>Приклад формату дати: \"2023-01-30 09:57:45\" | \"2023-01-30\" | \"2023-01\"</p>\n","type":"text"},{"key":"filter[stamp_to]","value":"2023-01-30 09:57:45","description":"<p>Приклади формату дати: \"2023-01-30 09:57:45\" | \"2023-01-30\" | \"2023-01\".</p>\n","type":"text"}]},"url":"https://crm.streamtele.com/api/lists","description":"<p>Параметри <strong>[stamp_from]</strong> та <strong>[stamp_to]</strong> – необов'язкові:</p>\n<ol>\n<li><p>Якщо параметр <strong>stamp_to</strong> не вказано, він буде встановлений на поточний час.</p>\n</li>\n<li><p>Якщо параметр <strong>stamp_from</strong> не вказано, він буде встановлений як <strong>stamp_to мінус 1 місяць</strong>.</p>\n</li>\n</ol>\n<p>Обмеження: вибірка за 1 місяць (31 день), максимальна кількість записів – 100 000.</p>\n","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"c5e4ecd2-3fc2-47dc-8f43-aa9942cfe789","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"ccstatuschangelist"},{"key":"filter[stamp_from]","value":"2023-01-01 09:57:45","description":"Приклад формату дати: \"2023-01-30 09:57:45\" | \"2023-01-30\" | \"2023-01\"","type":"text"},{"key":"filter[stamp_to]","value":"2023-01-30 09:57:45","description":"Приклади формату дати: \"2023-01-30 09:57:45\" | \"2023-01-30\" | \"2023-01\".","type":"text"}]},"url":"https://crm.streamtele.com/api/lists"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2023-04-07 13:20:42\", // час початку запиту\n    \"api_calls_per_hour_counter\": \"1/3600\", // лічильник викликів api за годину\n    \"section\": \"lists\", // розділ api, до якого було звернення\n    \"action\": \"ccstatuschangelist\", // дія, запитана в даному розділі\n    \"ccstatuschangelist\": [  // масив із результатами запиту\n        {\n            \"company_id\": \"2\", // id запису компанії\n            \"user_id\": \"30161\", // id співробітника в системі\n            \"status\": \"Вільний\", // поточний статус співробітника в системі\n            \"duration\": \"0год 6хв 52сек\", // час у цьому статусі\n            \"changed_at\": \"2023-04-07 13:13:50\", // дата/час зміни статусу\n            \"by_user_id\": \"30161\", // id користувача, який змінив статус\n            \"ss_queue_id\": \"157\" // id черги\n        },\n        {\n            \"company_id\": \"2\",\n            \"user_id\": \"33745\",\n            \"status\": \"Пауза\",\n            \"duration\": \"0год 9хв 3сек\",\n            \"changed_at\": \"2023-03-07 14:36:34\",\n            \"by_user_id\": \"33745\",\n            \"ss_queue_id\": \"157\"\n        }\n    ],\n    \"result\": \"ok\", // результат виконання запиту\n    \"req_end_stamp\": \"2023-04-07 13:20:42\" // час завершення запиту\n}"}],"_postman_id":"63fc1ce3-7cd6-42d4-9813-b327b070f2a2"},{"name":"статуси ліній учасників КЦ","id":"e08948c3-d4c7-4e35-ba90-d729a65e6699","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"ccstatuslist"},{"key":"filter[ignore_inactive]","value":"1","type":"text","uuid":"77a6d6aa-184d-40de-b943-92a38e4fffc1","disabled":true},{"key":"filter[ignore_na]","value":"1","type":"text","uuid":"ab03c0bf-48da-4f5d-a88f-cd9d5fd54082","disabled":true}]},"url":"https://crm.streamtele.com/api/lists","description":"<p>Метод для отримання списку юзерів черг КЦ з можливістю керувати відображенням статусу «Відключено» та статусів N/A у відповіді API.</p>\n<p>Додаткові параметри фільтрації (обидва параметри є необов'язковими):</p>\n<ul>\n<li><p><strong>filter[ignore_inactive]</strong> — якщо передати значення <strong>1</strong>, із результату будуть виключені записи зі статусом «Відключено».</p>\n</li>\n<li><p><strong>filter[ignore_na]</strong> — якщо передати значення <strong>1</strong>, із результату будуть виключені записи зі статусом «N/A».</p>\n</li>\n</ul>\n<p>Важливо:<br />За замовчуванням API повертає записи з усіма статусами.<br />При цьому записи зі статусом «N/A» повертаються лише в тому випадку, якщо вони мають прив’язку до черги.</p>\n","urlObject":{"protocol":"https","path":["api","lists"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"6487c864-a4be-4e33-a315-afeb90cdc29b","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"ccstatuslist"}]},"url":"https://crm.streamtele.com/api/lists"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n  \"req_start_stamp\": \"2026-08-13 13:00:00\",\n  \"api_calls_per_hour_counter\": \"1/36000\",\n  \"section\": \"lists\",\n  \"action\": \"ccstatuslist\",\n  \"ccstatuslist\": [\n    {\n      \"peer\": \"80044000904\",\n      \"status_id\": 1,\n      \"user_id\": 13,\n      \"queue_ids\": [\n        80\n      ],\n      \"queue_names\": [\n        \"2\"\n      ]\n    },\n    {\n      \"peer\": \"80044000923\",\n      \"status_id\": 2,\n      \"user_id\": 47408,\n      \"queue_ids\": [\n        80,\n        1136,\n        1134\n      ],\n      \"queue_names\": [\n        \"2\",\n        \"8\",\n        \"6\"\n      ]\n    }\n  ],\n  \"result\": \"ok\",\n  \"req_end_stamp\": \"2026-08-13 13:00:01\"\n}"}],"_postman_id":"e08948c3-d4c7-4e35-ba90-d729a65e6699"}],"id":"b299a0d2-3225-4aed-b676-8a24ea412fd1","_postman_id":"b299a0d2-3225-4aed-b676-8a24ea412fd1","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"customers","item":[{"name":"список клієнтів","id":"a324f00c-8efd-4a16-896e-8211c73cc5e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"customerslist"}]},"url":"https://crm.streamtele.com/api/customers","description":"<p>Пошук клієнтської анкети за допомогою фільтра.<br />Максимальна кількість записів – 100.<br />У полі <strong>customrows[customrowId]</strong> повертаються дані користувацьких полів у анкетах клієнтів.</p>\n<p>Як фільтри можна застосувати наступні параметри <strong>filter[X]</strong>:</p>\n<ul>\n<li><p><strong>customer</strong> – ID анкети, вибір даних конкретної анкети.</p>\n</li>\n<li><p><strong>type</strong> – ID типу анкети.</p>\n</li>\n<li><p><strong>label</strong> – ID мітки.</p>\n</li>\n<li><p><strong>city</strong> – ID міста.</p>\n</li>\n<li><p><strong>channel</strong> – ID джерела інформації.</p>\n</li>\n<li><p><strong>manager</strong> – ID відповідального менеджера.</p>\n</li>\n<li><p><strong>email</strong> – пошук за емейлом (необхідне точне співпадіння).</p>\n</li>\n<li><p><strong>phone</strong> – пошук за телефоном (можливе неточне відповідність).</p>\n</li>\n<li><p><strong>stamp_from/stamp_to</strong> – дати інтервалу вибірки по даті створення анкети.</p>\n</li>\n<li><p><strong>last_comm_stamp_from/last_comm_stamp_to</strong> – дати останньої комунікації.</p>\n</li>\n<li><p><strong>lastchange_stamp_from/lastchange_stamp_to</strong> – дата/час останнього оновлення анкети, формат ДД-ММ-РРРР ЧЧ:ММ:СС.</p>\n</li>\n<li><p><strong>next_comm_stamp_from/next_comm_stamp_to</strong> – дати наступної комунікації.</p>\n</li>\n<li><p><strong>customrow_XXX</strong> – фільтр користувацьких полів.</p>\n</li>\n</ul>\n<p>XXX — це customrowID зі списку customrows.</p>\n<p>Фільтр для текстових полів та дат працює за маскою, для нулевих, цифрових полів і списків — за точним співпадінням.</p>\n<ul>\n<li><p><strong>items_limit</strong> – кількість повернених значень. За замовчуванням 100. Максимум 500.</p>\n</li>\n<li><p><strong>items_offset</strong> – з якої по рахунку записи починати віддавати результат, іншими словами, скільки записів пропустити. За допомогою цього зсуву можна вибирати послідовно по 100 записів, змінюючи позицію, з якої починається вибірка.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","customers"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"1f6f6a8c-4f96-46aa-9346-24c6605787e9","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"customerslist"}]},"url":"https://crm.streamtele.com/api/customers"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-24 12:45:54\",\n    \"api_calls_per_hour_counter\": \"7/3600\",\n    \"section\": \"customers\", // розділ API, до якого було звернення\n    \"action\": \"customerslist\", // дія, запитана в цьому розділі\n    \"customerslist\": [\n        {\n            \"customer\": \"19173541\", // id картки клієнта\n            \"type\": \"1\", // id типу клієнтської анкети\n            \"label\": \"2\", // id мітки клієнта\n            \"source\": \"5\", // id джерела даних\n            \"family_name\": \"Doe\", // Прізвище клієнта\n            \"name\": \"John\", // Ім'я клієнта\n            \"second_name\": \"\", // По батькові клієнта\n            \"sex\": \"n\", // стать\n            \"company_name\": \"\", // назва компанії\n            \"country\": \"Ukraine\", // країна\n            \"city\": \"Київ\", // місто\n            \"channel\": \"Інтернет\", // назва джерела інформації\n            \"comments\": \"\", // коментар до анкети клієнта\n            \"email\": \"\", // email клієнта\n            \"phones\": [\n                \"+38066XXXXXXX\" \n            ],\n            \"phones_str\": \"+38066XXXXXXX\", // номер телефону/ів клієнта\n            \"manager\": \"Анна(Відділ продажів)\", // ім'я співробітника, за яким закріплений клієнт\n            \"manager_id\": \"32605\", // id співробітника в системі\n            \"creator\": \"Анна(Відділ продажів)\", // ким створена анкета: ПІБ (відділ) співробітника\n            \"creator_id\": \"32605\", // ким створена анкета: id співробітника\n            \"create_stamp\": \"2022-03-24 12:41:38\", // дата створення анкети\n            \"last_comm_stamp\": \"2022-03-24 12:41:39\", // дата останньої комунікації з клієнтом\n            \"next_comm_stamp\": \"2022-03-25 12:31:00\", // дата наступної комунікації з клієнтом\n            \"move2clients_stamp\": \"0000-00-00 00:00:00\", // дата переміщення з потенційних клієнтів у клієнти\n            \"last_changes_stamp\": \"2022-03-24 12:41:38\", // дата останньої зміни анкети\n            \"customrows\": { // масив із даними про додаткові поля\n                \"5692\": \"поле текст\", // вміст текстового поля\n                \"5695\": \"12\", // поле ціле число\n                \"5698\": \"12.5\", // поле дробове число\n                \"5701\": \"2022-04-21\", // поле дата\n                \"5704\": \"1\", // поле так/ні: так=1\n                \"5707\": \"0\", // прапорець не встановлено\n                \"5710\": \"велике тестове поле\", // вміст великого текстового поля\n                \"5713\": \"1\" // id значення випадаючого списку : list-->customrowslist\n            }\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-04-06 15:04:16\"\n}"}],"_postman_id":"a324f00c-8efd-4a16-896e-8211c73cc5e3"},{"name":"додавання клієнта","id":"a9acd0bd-6401-48d3-b7fe-baac72bb33bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"addcustomer"},{"key":"name","value":"John Doe","type":"text"},{"key":"email","value":"jd@mail.com","type":"text"},{"key":"phone1","value":"380XXXXXXXXX","type":"text"}]},"url":"https://crm.streamtele.com/api/customers","description":"<p>Додавання клієнта в базу потенційних клієнтів</p>\n<p><strong>Обов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>name</strong> – ім'я клієнта.</p>\n</li>\n<li><p><strong>email</strong> – E-Mail (або телефон повинні бути обов'язково вказані).</p>\n</li>\n<li><p><strong>phone1</strong> та/або <strong>phone2</strong> та/або <strong>phone3</strong> – 11-15 цифр (або E-Mail повинні бути обов'язково вказані). У випадку використання старого варіанту <strong>phone</strong> — це значення сприймається як <strong>phone1</strong>.</p>\n</li>\n</ul>\n<p><strong>Необов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>source</strong> – ID джерела даних (за замовчуванням встановлено \"Введено користувачем\").</p>\n</li>\n<li><p><strong>channel</strong> – ID джерела інформації (за замовчуванням \"не відомо\").</p>\n</li>\n<li><p><strong>sex</strong> – стать: <strong>m</strong> — чоловічий, <strong>f</strong> — жіночий, <strong>n</strong> — не визначено.</p>\n</li>\n<li><p><strong>owner</strong> – ID користувача – відповідального менеджера (за замовчуванням сам користувач API).</p>\n</li>\n<li><p><strong>family_name</strong> – прізвище (до 45 символів).</p>\n</li>\n<li><p><strong>second_name</strong> – по батькові (до 45 символів).</p>\n</li>\n<li><p><strong>city</strong> – ID міста.</p>\n</li>\n<li><p><strong>address</strong> – адреса (до 200 символів).</p>\n</li>\n<li><p><strong>comments</strong> – опис (до 400 символів).</p>\n</li>\n<li><p><strong>label</strong> – ID мітки.</p>\n</li>\n<li><p><strong>next_comm_stamp</strong> – дата/час наступної комунікації, формат ГГГГ-ММ-ДД ЧЧ:ММ:СС, наприклад: \"2016-03-21 21:45:23\". Дата обов'язково повинна бути &gt;= поточному часу. Також можна вказати <strong>now</strong> – тоді буде вибрано поточний час автоматично, тобто нагадування про комунікацію буде одразу активовано.</p>\n</li>\n<li><p><strong>phoneX_comment</strong> – коментар до відповідного номера телефону (2-48 символів). X = 1, 2, 3.</p>\n</li>\n<li><p><strong>customrowdata[X]</strong> – користувацькі поля. X — це <strong>customrowId</strong> зі списку <strong>customrowslist</strong>.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","customers"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"549650b6-51e9-4785-916c-d8dcc4192932","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"addcustomer"},{"key":"name","value":"John Doe","type":"text"},{"key":"email","value":"jd@mail.com","type":"text"},{"key":"phone1","value":"380XXXXXXXXX","type":"text"}]},"url":"https://crm.streamtele.com/api/customers"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-24 12:51:40\",\n    \"api_calls_per_hour_counter\": \"8/3600\",\n    \"section\": \"customers\", // розділ API, до якого було звернення\n    \"action\": \"addcustomer\", // дія, запитана в цьому розділі\n    \"item_id\": \"303\", // id клієнта в системі\n    \"addcustomer\": \"Record adding to customer Ok - 303\", // клієнт доданий, id клієнта 303\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-24 12:51:40\"\n}"}],"_postman_id":"a9acd0bd-6401-48d3-b7fe-baac72bb33bc"},{"name":"редагування клієнта","id":"2e23e7eb-7035-47be-9115-3f8773db1f92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"editcustomer"},{"key":"customerid","value":"303","type":"text"}]},"url":"https://crm.streamtele.com/api/customers","description":"<p><strong>Обов'язкові параметри:</strong></p>\n<ul>\n<li><strong>customerid</strong> – ID клієнта</li>\n</ul>\n<p><strong>Необов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>name</strong> – назва угоди (до 45 символів)</p>\n</li>\n<li><p><strong>email</strong> – E-Mail (або телефон повинні бути обов'язково вказані)</p>\n</li>\n<li><p><strong>source</strong> – ID джерела даних</p>\n</li>\n<li><p><strong>channel</strong> – ID джерела інформації</p>\n</li>\n<li><p><strong>sex</strong> – стать: <strong>m</strong> — чоловічий, <strong>f</strong> — жіночий</p>\n</li>\n<li><p><strong>owner</strong> – ID користувача – відповідального менеджера (за замовчуванням сам користувач API)</p>\n</li>\n<li><p><strong>family_name</strong> – прізвище (до 45 символів)</p>\n</li>\n<li><p><strong>second_name</strong> – по батькові (до 45 символів)</p>\n</li>\n<li><p><strong>city</strong> – ID міста</p>\n</li>\n<li><p><strong>address</strong> – адреса (до 200 символів)</p>\n</li>\n<li><p><strong>comments</strong> – опис (до 400 символів)</p>\n</li>\n<li><p><strong>label</strong> – ID мітки</p>\n</li>\n<li><p><strong>custtype</strong> – тип запису: 1 – потенційний клієнт, 2 – реальний клієнт</p>\n</li>\n<li><p><strong>phone1</strong> та/або <strong>phone2</strong> та/або <strong>phone3</strong> – 11-15 цифр (або E-Mail повинні бути обов'язково вказані). У разі використання старого варіанту <strong>phone</strong> — це значення сприймається як <strong>phone1</strong>.</p>\n</li>\n</ul>\n<p><strong>УВАГА!</strong> У разі редагування телефонів, всі телефони повинні бути передані в систему, телефони, які не передані, вважаються видаленими.</p>\n<ul>\n<li><p><strong>phoneX_comment</strong> – коментар до відповідного номера телефону (2-48 символів). X = 1, 2, 3</p>\n</li>\n<li><p><strong>customrowdata[X]</strong> – користувацькі поля. X — це <strong>customrowId</strong> зі списку <strong>customrowslist</strong>.</p>\n</li>\n</ul>\n<p><strong>УВАГА!</strong> При редагуванні перезаписується тільки те користувацьке поле, яке вказано в команді. Інші поля залишаються без змін.</p>\n","urlObject":{"protocol":"https","path":["api","customers"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"824bf272-d284-4bad-8291-17bd8b7e95d8","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"editcustomer"},{"key":"customerid","value":"303","type":"text"}]},"url":"https://crm.streamtele.com/api/customers"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-24 12:59:21\",\n    \"api_calls_per_hour_counter\": \"12/3600\",\n    \"section\": \"customers\", // розділ API, до якого було звернення\n    \"action\": \"editcustomer\", // дія, запитана в цьому розділі\n    \"item_id\": \"303\", // id клієнта в системі\n    \"editcustomer\": \"Customer record changed Ok - 303\",\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-24 12:59:21\"\n}"}],"_postman_id":"2e23e7eb-7035-47be-9115-3f8773db1f92"},{"name":"видалення клієнта","id":"91ca08ee-170f-43ef-a458-7cc8e74dc2c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"deletecustomer"},{"key":"customerid","value":"303","type":"text"}]},"url":"https://crm.streamtele.com/api/customers","description":"<p><strong>Обов'язкові параметри:</strong></p>\n<ul>\n<li><strong>customerid</strong> – ID клієнта</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","customers"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"f418ff89-a840-4212-acf3-d8ba957ff2b5","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"deletecustomer"},{"key":"customerid","value":"303","type":"text"}]},"url":"https://crm.streamtele.com/api/customers"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-24 13:02:25\",\n    \"api_calls_per_hour_counter\": \"1/3600\",\n    \"section\": \"customers\", // розділ API, до якого було звернення\n    \"action\": \"deletecustomer\", // дія, запитана в цьому розділі\n    \"item_id\": \"303\", // id картки клієнта\n    \"deletecustomer\": \"Customer record deleted Ok - 303\", // успішне видалення картки клієнта\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-24 13:02:25\"\n}"}],"_postman_id":"91ca08ee-170f-43ef-a458-7cc8e74dc2c6"}],"id":"6d719fbe-2f25-4569-b3f1-51906206b7ed","_postman_id":"6d719fbe-2f25-4569-b3f1-51906206b7ed","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"communications","item":[{"name":"список комунікацій","id":"e5e8f7fe-a1d3-43b8-af68-27436d62119f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"commlist"}]},"url":"https://crm.streamtele.com/api/communications","description":"<p>Максимальна кількість записів – 100.<br />Для фільтру можна застосувати наступні параметри <strong>filter[X]</strong>:</p>\n<ul>\n<li><p><strong>customer</strong> – ID анкети клієнта</p>\n</li>\n<li><p><strong>owner</strong> – ID користувача – менеджера власника комунікації</p>\n</li>\n<li><p><strong>creator</strong> – ID користувача – творця комунікації</p>\n</li>\n<li><p><strong>commtype</strong> – ID типу комунікації</p>\n</li>\n<li><p><strong>subject</strong> – ID теми комунікації</p>\n</li>\n<li><p><strong>deal</strong> – ID угоди</p>\n</li>\n<li><p><strong>stamp_from/stamp_to</strong> – дати створення комунікації, формат: ГГГГ-ММ-ДД</p>\n</li>\n<li><p><strong>next_comm_stamp_from/next_comm_stamp_to</strong> – дати запланованої наступної комунікації, формат: РРРР-ММ-ДД</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","communications"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"5482ac9c-0c9e-423e-befc-e7e0de4fb036","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"commlist"}]},"url":"https://crm.streamtele.com/api/communications"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-24 13:06:06\",\n    \"api_calls_per_hour_counter\": \"2/3600\",\n    \"section\": \"communications\", // розділ API, до якого було звернення\n    \"action\": \"commlist\", // дія, запитана в цьому розділі\n    \"commlist\": [ // масив із результатами запиту\n        {\n            \"communication\": \"17917675\", // id запису комунікації\n            \"customer\": \"303\", // id картки клієнта\n            \"stamp\": \"2022-03-24 12:47:52\", // дата додавання комунікації\n            \"creator\": \"32605\", // id співробітника, який додав комунікацію\n            \"owner\": \"32605\", // id співробітника, за яким закріплена анкета клієнта\n            \"commtype\": \"5\", // id типу комунікації : lists-->commtypelist\n            \"note\": \"Відправив презентацію на пошту, Зателефоную до вечора\", // шаблон коментаря: коментар\n            \"next_comm_stamp\": \"2022-03-24 17:47:00\", // дата наступної комунікації\n            \"next_commtype\": \"5\", // id типу наступної комунікації : lists-->commtypelist\n            \"deal\": \"713926\", // id угоди, якщо комунікація за угодою (за анкетою клієнта поверне 0)\n            \"subject\": \"5193\" // id теми комунікації : lists-->commsubjectlist\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-24 13:06:12\"\n}"}],"_postman_id":"e5e8f7fe-a1d3-43b8-af68-27436d62119f"},{"name":"додавання комунікації","id":"31badd37-6d19-4653-b0d4-5c4f2943caa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"addcomm"},{"key":"note","value":"коротки опис","type":"text"},{"key":"customer","value":"303","type":"text"},{"key":"commtype","value":"12","type":"text"}]},"url":"https://crm.streamtele.com/api/communications","description":"<p><strong>Обов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>note</strong> – опис комунікації (від 2-х до 450 символів)</p>\n</li>\n<li><p><strong>customer</strong> – ID анкети клієнта</p>\n</li>\n<li><p><strong>commtype</strong> – ID типу комунікації</p>\n</li>\n</ul>\n<p><strong>Необов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>next_comm_stamp</strong> – планована дата наступної комунікації в майбутньому</p>\n</li>\n<li><p><strong>next_commtype</strong> – тип наступної комунікації (дата і тип наступної комунікації повинні бути задані одночасно)</p>\n</li>\n<li><p><strong>owner</strong> – ID користувача, власника комунікації (за замовчуванням менеджер клієнта)</p>\n</li>\n<li><p><strong>subject</strong> – ID теми комунікації</p>\n</li>\n<li><p><strong>deal</strong> – ID угоди (повинна бути прив'язана до того ж самого клієнта)</p>\n</li>\n<li><p><strong>planned_sum</strong> – планована сума угоди</p>\n</li>\n<li><p><strong>productname</strong> – назва продукту (до 90 символів)</p>\n</li>\n<li><p><strong>description</strong> – опис (до 350 символів)</p>\n</li>\n<li><p><strong>owner</strong> – ID користувача – менеджера угоди</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","communications"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"21a61692-b857-47b6-a554-cfa71f1a8ef1","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"addcomm"},{"key":"note","value":"Краткое описание","type":"text"},{"key":"customer","value":"303","type":"text"},{"key":"commtype","value":"12","type":"text"}]},"url":"https://crm.streamtele.com/api/communications"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-24 13:15:17\",\n    \"api_calls_per_hour_counter\": \"4/3600\",\n    \"section\": \"communications\", // розділ API, до якого було звернення\n    \"action\": \"addcomm\", // дія, запитана в цьому розділі\n    \"item_id\": \"17917882\", // id комунікації\n    \"addcomm\": \"Record adding to comminucations Ok - 17917882\", // комунікація успішно додана, id комунікації -17917882\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-24 13:15:17\" \n}"}],"_postman_id":"31badd37-6d19-4653-b0d4-5c4f2943caa6"}],"id":"8cbe57ca-aec3-49ba-86b7-089930a208ac","_postman_id":"8cbe57ca-aec3-49ba-86b7-089930a208ac","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"deals","item":[{"name":"список угод","id":"f1c2651b-aade-4c74-bf03-694c7c748fbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"dealslist"}]},"url":"https://crm.streamtele.com/api/deals","description":"<p>Максимальна кількість записів – 1000.  </p>\n<p>Як фільтр можна застосувати наступні параметри <strong>filter[X]</strong>:</p>\n<ul>\n<li><p><strong>deal</strong> – ID угоди</p>\n</li>\n<li><p><strong>customer</strong> – ID анкети клієнта</p>\n</li>\n<li><p><strong>manager</strong> – ID користувача – менеджера угоди</p>\n</li>\n<li><p><strong>creator</strong> – ID користувача – творця угоди</p>\n</li>\n<li><p><strong>status</strong> – ID статусу угоди</p>\n</li>\n<li><p><strong>state</strong> – ID стану угоди</p>\n</li>\n<li><p><strong>product[]</strong> – ID продукту зі списку <strong>productlist</strong>. Опція може бути використана кілька разів для додавання кількох продуктів.  </p>\n<p>  Приклад: <code>&amp;filter[product][]=id1&amp;filter[product][]=id2</code></p>\n</li>\n<li><p><strong>productcategory</strong> – ID категорії продукту</p>\n</li>\n<li><p><strong>stamp_from/stamp_to</strong> – дати створення угоди</p>\n</li>\n<li><p><strong>planned_stamp_from/planned_stamp_to</strong> – дати планованого завершення угоди</p>\n</li>\n<li><p><strong>real_stamp_from/real_stamp_to</strong> – дати фактичного завершення угоди</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","deals"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"7bbdeae5-9ef2-42fb-9c9c-6ea641476bba","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"dealslist"}]},"url":"https://crm.streamtele.com/api/deals"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-04-11 15:05:47\",\n    \"api_calls_per_hour_counter\": \"1/360\",\n    \"section\": \"deals\",\n    \"action\": \"dealslist\",\n    \"dealslist\": [\n        {\n            \"id\": \"713926\", // id угоди\n            \"create_stamp\": \"2022-04-06 16:20:41\", // дата/час створення угоди\n            \"name\": \"нова угода\", // назва угоди\n            \"creator\": \"Анна (Відділ за замовчуванням)\", // ПІБ/відділ співробітника, який створив угоду\n            \"creator_id\": \"38827\", // id співробітника, який створив угоду\n            \"manager\": \"Анна (Відділ за замовчуванням)\", // ПІБ/відділ співробітника, закріпленого за угодою\n            \"manager_id\": \"38827\", // id співробітника, який закріплений за угодою\n            \"description\": \"найновіша угода\", // опис угоди\n            \"planned_deal_stamp\": \"2022-04-15 00:00:00\", // планована дата закриття угоди\n            \"planned_deal_amount\": \"5000\", // планована сума угоди\n            \"real_deal_stamp\": \"2022-04-06 00:00:00\", // реальна дата закриття угоди\n            \"real_deal_amount\": \"6000\", // реальна сума угоди\n            \"probability\": \"80%\", // ймовірність успіху угоди\n            \"status\": \"9421\", // id статусу угоди deals-->dealstatuseslist\n            \"state\": \"1\", // id стану угоди deals-->dealstateslist\n            \"customer_id\": \"19261972\", // id картки клієнта\n            \"customer\": \"Петро\", // ПІБ клієнта\n            \"products\": [ // список позначених продуктових категорій та продуктів у них\n                {\n                    \"product_category\": \"8752\", // id категорії продукту : deals-->productcategorylist\n                    \"product\": \"2491\" // id продукту : deals-->productlist\n                },\n                {\n                    \"product_category\": \"8755\", \n                    \"product\": \"2500\"\n                }\n            ],\n            \"products_categories\": [ // список позначених продуктових категорій\n                {\n                    \"product_category\": \"8752\" // id категорії продукту  : deals-->productcategorylist\n                },\n                {\n                    \"product_category\": \"8755\"\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"f1c2651b-aade-4c74-bf03-694c7c748fbf"},{"name":"список продуктових категорій","id":"e0ad4289-5768-4b6a-9fbc-18f5993e01fe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"productcategorylist"}]},"url":"https://crm.streamtele.com/api/deals","urlObject":{"protocol":"https","path":["api","deals"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"209e3fe3-c1f2-4432-bfd4-d76cb2f22e65","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"productcategorylist"}]},"url":"https://crm.streamtele.com/api/deals"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-04-08 13:13:46\",\n    \"api_calls_per_hour_counter\": \"4/360\",\n    \"section\": \"deals\", // розділ API, до якого було звернення\n    \"action\": \"productcategorylist\", // дія, запитана в цьому розділі\n    \"productcategorylist\": {\n        \"8752\": \"категорія продукту 1\", // id категорії продукту : назва категорії продукту\n        \"8755\": \"категорія продукту 2\",\n        \"3879\": \"за замовчуванням\"\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-04-08 13:13:46\"\n}"}],"_postman_id":"e0ad4289-5768-4b6a-9fbc-18f5993e01fe"},{"name":"список продуктів","id":"e845a9f5-fe69-474f-9e45-5ac2a42ccce1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"productlist"}]},"url":"https://crm.streamtele.com/api/deals","urlObject":{"protocol":"https","path":["api","deals"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"74c2491b-b12a-4608-8fee-70dbe059470d","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"productlist"}]},"url":"https://crm.streamtele.com/api/deals"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-04-08 13:09:51\",\n    \"api_calls_per_hour_counter\": \"3/360\",\n    \"section\": \"deals\", // розділ API, до якого було звернення\n    \"action\": \"productlist\", // дія, запитана в цьому розділі\n    \"productlist\": {\n        \"2491\": { // id продукту\n            \"name\": \"продукт 1.1\", // назва продукту\n            \"category\": \"8752\" // id категорії, до якої продукт належить\n        },\n        \"2494\": {\n            \"name\": \"продукт 1.2\",\n            \"category\": \"8752\"\n        },\n        \"2497\": {\n            \"name\": \"продукт 2.1\",\n            \"category\": \"8755\"\n        },\n        \"2500\": {\n            \"name\": \"продукт 2.2\",\n            \"category\": \"8755\"\n        }\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-04-08 13:09:51\"\n}"}],"_postman_id":"e845a9f5-fe69-474f-9e45-5ac2a42ccce1"},{"name":"список статусів угод","id":"0d7bdfa6-0164-40b4-b7b3-82df48a66f40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"dealstatuseslist"}]},"url":"https://crm.streamtele.com/api/deals","urlObject":{"protocol":"https","path":["api","deals"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"9861f438-946a-46fb-af2e-dc8f2651ed50","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"dealstatuseslist"}]},"url":"https://crm.streamtele.com/api/deals"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-04-08 13:39:40\",\n    \"api_calls_per_hour_counter\": \"11/360\",\n    \"section\": \"deals\", // розділ API, до якого було звернення\n    \"action\": \"dealstatuseslist\", // дія, запитана в цьому розділі\n    \"dealstatuseslist\": {\n        \"9421\": \"етап 1\", // id статусу угоди : назва статусу угоди\n        \"9424\": \"етап 2\",\n        \"9427\": \"етап 3\"\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-04-08 13:39:40\"\n}"}],"_postman_id":"0d7bdfa6-0164-40b4-b7b3-82df48a66f40"},{"name":"список станів угод","id":"c7e18f5e-ee49-4550-80fc-ef28339badac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"dealstateslist"}]},"url":"https://crm.streamtele.com/api/deals","urlObject":{"protocol":"https","path":["api","deals"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"325641bd-b9ac-41a2-964d-97a1f643f834","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"dealstateslist"}]},"url":"https://crm.streamtele.com/api/deals"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-04-08 13:29:19\",\n    \"api_calls_per_hour_counter\": \"5/360\",\n    \"section\": \"угоди\", // розділ API, до якого було звернення\n    \"action\": \"списокстанівугод\", // дія, запитана в цьому розділі\n    \"dealstateslist\": {\n        \"2\": \"В роботі\", // id стану : назва стану угоди\n        \"3\": \"Скасована\", \n        \"1\": \"Потенційна угода\", \n        \"5\": \"Видалена угода\", \n        \"4\": \"Успішно закрита\" \n    },\n    \"result\": \"ок\",\n    \"req_end_stamp\": \"2022-04-08 13:29:19\"\n}"}],"_postman_id":"c7e18f5e-ee49-4550-80fc-ef28339badac"},{"name":"додавання угоди","id":"ba591205-1379-441f-bb43-d373a63df351","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"adddeal"},{"key":"name","value":"Супер сделка","type":"text"},{"key":"customer","value":"303","type":"text"},{"key":"state","value":"1","type":"text"},{"key":"status","value":"100","type":"text"},{"key":"probability","value":"100","type":"text"}]},"url":"https://crm.streamtele.com/api/deals","description":"<p><strong>Обов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>name</strong> – назва угоди (до 70 символів)</p>\n</li>\n<li><p><strong>customer</strong> – ID анкети клієнта</p>\n</li>\n<li><p><strong>state</strong> – ID стану угоди, можливі значення: 1 або 2</p>\n</li>\n<li><p><strong>status</strong> – ID статусу угоди</p>\n</li>\n<li><p><strong>probability</strong> – ймовірність успіху в процентах (число від 0 до 100)</p>\n</li>\n</ul>\n<p><strong>Необов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>planned_stamp</strong> – планована дата угоди</p>\n</li>\n<li><p><strong>planned_sum</strong> – планована сума угоди</p>\n</li>\n<li><p><strong>real_stamp</strong> – фактична дата угоди</p>\n</li>\n<li><p><strong>real_sum</strong> – фактична сума угоди</p>\n</li>\n<li><p><strong>product[]</strong> – ID продукту зі списку <strong>productlist</strong>. Опція може бути використана кілька разів для додавання кількох продуктів</p>\n</li>\n<li><p><strong>description</strong> – опис (до 350 символів)</p>\n</li>\n<li><p><strong>owner</strong> – ID користувача – менеджера угоди</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","deals"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"41c7b5f9-f217-469f-bfc2-ffce57493462","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"adddeal"},{"key":"name","value":"Супер сделка","type":"text"},{"key":"customer","value":"303","type":"text"},{"key":"state","value":"1","type":"text"},{"key":"status","value":"100","type":"text"},{"key":"probability","value":"100","type":"text"}]},"url":"https://crm.streamtele.com/api/deals"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-28 14:31:00\",\n    \"api_calls_per_hour_counter\": \"1/3600\",\n    \"section\": \"угоди\", // розділ API, до якого було звернення\n    \"action\": \"додатизгу\", // дія, запитана в даному розділі\n    \"item_id\": \"100\", // id угоди\n    \"adddeal\": \"Record adding to deals Ok - 100\", // запис успішно додано до угоди\n    \"result\": \"ок\",\n    \"req_end_stamp\": \"2022-03-28 14:31:00\"\n}"}],"_postman_id":"ba591205-1379-441f-bb43-d373a63df351"},{"name":"редагування угоди","id":"f5377813-56e9-48a8-8f2b-1dbc1840eab4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"editdeal"},{"key":"dealid","value":"100","type":"text"}]},"url":"https://crm.streamtele.com/api/deals","description":"<p><strong>Обов'язкові параметри:</strong></p>\n<ul>\n<li><strong>dealid</strong> – ID угоди</li>\n</ul>\n<p><strong>Необов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>name</strong> – назва угоди (до 70 символів)</p>\n</li>\n<li><p><strong>state</strong> – ID стану угоди, можливі значення: 1 або 2</p>\n</li>\n<li><p><strong>status</strong> – ID статусу угоди</p>\n</li>\n<li><p><strong>probability</strong> – ймовірність успіху в процентах (число від 0 до 100)</p>\n</li>\n<li><p><strong>planned_stamp</strong> – планована дата угоди</p>\n</li>\n<li><p><strong>planned_sum</strong> – планована сума угоди</p>\n</li>\n<li><p><strong>real_stamp</strong> – фактична дата угоди</p>\n</li>\n<li><p><strong>real_sum</strong> – фактична сума угоди</p>\n</li>\n<li><p><strong>product[]</strong> – ID продукту зі списку <strong>productlist</strong>. Опція може бути використана кілька разів для додавання кількох продуктів</p>\n</li>\n<li><p><strong>description</strong> – опис (до 350 символів)</p>\n</li>\n<li><p><strong>owner</strong> – ID користувача – менеджера угоди</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","deals"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"da85755d-3810-4db7-b45e-e6c732092706","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"editdeal"},{"key":"dealid","value":"100","type":"text"}]},"url":"https://crm.streamtele.com/api/deals"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-28 14:36:05\",\n    \"api_calls_per_hour_counter\": \"2/3600\",\n    \"section\": \"угоди\", // розділ API, до якого було звернення\n    \"action\": \"редагуватиугоду\", // дія, запитана в даному розділі\n    \"item_id\": \"100\", // id угоди\n    \"editdeal\": \"Record changed in deals Ok - 100\", // запис успішно відредаговано\n    \"result\": \"ок\",\n    \"req_end_stamp\": \"2022-03-28 14:36:05\"\n}"}],"_postman_id":"f5377813-56e9-48a8-8f2b-1dbc1840eab4"}],"id":"e64d3162-dab5-4347-a7d4-d1ae28b35a22","_postman_id":"e64d3162-dab5-4347-a7d4-d1ae28b35a22","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"autodial","item":[{"name":"список всіх завдань","id":"e796c4e3-3257-4927-a72d-33db307313a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"getTaskList","type":"text"}]},"url":"https://crm.streamtele.com/api/autodial","description":"<p>Отримати список всіх завдань на автообдзвін (масив об'єктів). Якщо вказано необов'язковий параметр <strong>task_id</strong>, будуть отримані параметри конкретного завдання.</p>\n","urlObject":{"protocol":"https","path":["api","autodial"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"8a704307-ba59-4f95-a616-0e4de0ca3406","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"getTaskList","type":"text"}]},"url":"https://crm.streamtele.com/api/autodial"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-25 12:24:38\",\n    \"api_calls_per_hour_counter\": \"1/360\",\n    \"section\": \"autodial\", // розділ API, до якого було звернення\n    \"action\": \"getTaskList\", // дія, запитана в цьому розділі\n    \"getTaskList\": [\n        {\n            \"id\": \"130\", // id завдання для автодозвону\n            \"ivr_tracker_id\": \"0404\", // назва автодозвону\n            \"int_number\": \"800XXXXX201\", // внутрішній номер, на який йде дозвін\n            \"count_lines\": \"2\", // кількість ліній\n            \"message_duration_sec\": \"15\", // тривалість дозвону\n            \"time_start\": \"2022-03-25 15:20:00\", // дата/час старту автодозвону\n            \"status\": \"active\" // статус автодозвону\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-25 12:24:38\"\n}"}],"_postman_id":"e796c4e3-3257-4927-a72d-33db307313a1"},{"name":"встановити статус завдання","id":"81579b66-0eee-460b-91b7-8e8bedf5399d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"setTaskStatus","type":"text"},{"key":"task_id","value":"130","type":"text"},{"key":"status","value":"pause","type":"text"}]},"url":"https://crm.streamtele.com/api/autodial","description":"<p><strong>Обов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>task_id</strong> – ідентифікатор завдання;</p>\n</li>\n<li><p><strong>status</strong> – статус із списку: <strong>active</strong>, <strong>pause</strong>, <strong>cancel</strong>.</p>\n</li>\n</ul>\n<p>Статус <strong>cancel</strong> відрізняється від <strong>pause</strong> тим, що потім активувати завдання можна тільки через API. Через інтерфейс CRM можна активувати лише завдання зі статусом <strong>pause</strong>.</p>\n","urlObject":{"protocol":"https","path":["api","autodial"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"2afc39b6-4c57-440c-adf9-296adfb6a667","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"setTaskStatus","type":"text"},{"key":"task_id","value":"130","type":"text"},{"key":"status","value":"pause","type":"text"}]},"url":"https://crm.streamtele.com/api/autodial"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-25 12:27:29\",\n    \"api_calls_per_hour_counter\": \"2/360\",\n    \"section\": \"autodial\", // розділ API, до якого було звернення\n    \"action\": \"setTaskStatus\", // дія, запитана в цьому розділі\n    \"setTaskStatus\": \"1\", // id статусу\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-25 12:27:29\"\n}"}],"_postman_id":"81579b66-0eee-460b-91b7-8e8bedf5399d"},{"name":"список та статуси завдань","id":"7184e30c-01c7-4de3-8afa-80c96cb2aef1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"getPhoneList","type":"text"},{"key":"task_id","value":"130","type":"text"}]},"url":"https://crm.streamtele.com/api/autodial","description":"<p>Получить список и статусы обзвона номеров (массив объектов).</p>\n<p><b>Обязательный параметр:</b></p>\n<ul>\n<li>task_id – идентификатор задания;</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","autodial"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"21eeda0a-fcce-44f0-969c-f1a9fa1dc3c0","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"getPhoneList","type":"text"},{"key":"task_id","value":"130","type":"text"}]},"url":"https://crm.streamtele.com/api/autodial"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-25 12:29:59\",\n    \"api_calls_per_hour_counter\": \"4/360\",\n    \"section\": \"autodial\", // розділ API, до якого було звернення\n    \"action\": \"getPhoneList\", // дія, запитана в цьому розділі\n    \"getPhoneList\": [\n        {\n            \"ext_phone_num\": \"38067XXXXXXX\", // номер телефону з дозвону\n            \"is_finish\": \"1\", // виклик відбувся =1\n            \"ts_finish\": \"2018-12-12 17:44:01\" // дата завершення виклику за номером\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-25 12:29:59\"\n}"}],"_postman_id":"7184e30c-01c7-4de3-8afa-80c96cb2aef1"},{"name":"додати номер у завдання","id":"79134850-ebde-45da-87bb-b4056c4d5be9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"addPhone"},{"key":"task_id","type":"text","value":"130"},{"key":"phone","value":"380XXXXXXXXX","type":"text"}]},"url":"https://crm.streamtele.com/api/autodial","description":"<p>Додати номер у завдання для дозвону.<br /><strong>Обов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>task_id</strong> – ідентифікатор завдання;</p>\n</li>\n<li><p><strong>phone</strong> – номер у форматі 380* без зайвих символів.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","autodial"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"af9a21b6-c0b0-4f42-bb0d-d9526a9ac679","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","type":"text","value":"CRM_USER"},{"key":"password","type":"text","value":"CRM_USER_PASSWORD"},{"key":"api_key","type":"text","value":"CRM_API_KEY"},{"key":"action","type":"text","value":"addPhone"},{"key":"task_id","type":"text","value":"130"},{"key":"phone","value":"380XXXXXXXXX","type":"text"}]},"url":"https://crm.streamtele.com/api/autodial"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-25 12:32:07\",\n    \"api_calls_per_hour_counter\": \"5/360\",\n    \"section\": \"autodial\", // розділ API, до якого було звернення\n    \"action\": \"addPhone\", // дія, запитана в цьому розділі\n    \"addPhone\": \"1\", // номер додано так = 1\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-25 12:32:07\"\n}"}],"_postman_id":"79134850-ebde-45da-87bb-b4056c4d5be9"}],"id":"f088e56a-5323-4726-a8e5-f4ff87ef2107","description":"<p><strong>ВАЖЛИВО!</strong>  </p>\n<p>Через API один і той самий номер можна додавати кілька разів, унікальність не перевіряється.</p>\n<p>Щоб переконатися, що номер ще не додано в поточне завдання, перед його додаванням викликайте метод <strong>getPhoneList</strong>.  </p>\n<p>Якщо при додаванні нових номерів через API статус завдання був <strong>finish</strong>, він автоматично змінюється на <strong>active</strong>.</p>\n<p>Статуси <strong>pause</strong> та <strong>cancel</strong> це не стосується — їх потрібно змінювати вручну.</p>\n","event":[{"listen":"prerequest","script":{"id":"11dca259-56d4-4152-ab06-4d0bf60ba0ac","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"954d0a2a-4e8a-4a92-8e82-db0d00da08f3","type":"text/javascript","exec":[""]}}],"_postman_id":"f088e56a-5323-4726-a8e5-f4ff87ef2107","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"ivr tracker","item":[{"name":"список з IVR трекера","id":"4770b263-27bd-48a4-87c6-9af210f41b7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"}]},"url":"https://crm.streamtele.com/api/ivr_tracker","description":"<p><strong>Необов'язкові параметри:</strong></p>\n<ul>\n<li><p><strong>count</strong> – кількість повернутих значень (за замовчуванням: 50);</p>\n</li>\n<li><p><strong>offset</strong> – зсув на n записів;</p>\n</li>\n<li><p><strong>session_id</strong> – ID сесії дзвінка.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","ivr_tracker"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"ceffa4bb-c302-4044-853c-ddacea3faca6","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"}]},"url":"https://crm.streamtele.com/api/ivr_tracker"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-25 12:34:48\",\n    \"api_calls_per_hour_counter\": \"6/360\",\n    \"section\": \"ivr_tracker\", // розділ API, до якого було звернення\n    \"results\": [\n        {\n            \"ts\": \"2020-01-30 18:48:59\", // дата/час дзвінка\n            \"ivr_id\": \"34\", // id IVR\n            \"ivr_step_id\": \"1\", // рівень IVR\n            \"ivr_chosen_id\": \"2\", // вибір всередині цього рівня\n            \"caller_id\": \"0443002525\", // зовнішній номер, на який телефонували\n            \"called_id\": \"800XXXXX201\" // внутрішній номер, на який розподілено дзвінок\n        }\n    ],\n    \"output\": {\n        \"total\": \"1\" \n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-25 12:34:48\"\n}"}],"_postman_id":"4770b263-27bd-48a4-87c6-9af210f41b7d"}],"id":"66a54827-0d4f-408b-a9b2-add8e5050dda","_postman_id":"66a54827-0d4f-408b-a9b2-add8e5050dda","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"ssqueue","item":[{"name":"список черг компанії","id":"0581b434-eb35-4590-8b35-ae29d76677d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"ssqueuelist","type":"text"}]},"url":"https://crm.streamtele.com/api/ssqueue","urlObject":{"protocol":"https","path":["api","ssqueue"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"55b3ce3f-577c-444f-b8ff-b0a7c3f7f9d7","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"ssqueuelist","type":"text"}]},"url":"https://crm.streamtele.com/api/ssqueue"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-30 15:09:48\",\n    \"api_calls_per_hour_counter\": \"1/360\",\n    \"section\": \"ssqueue\", // розділ API, до якого було звернення\n    \"action\": \"ssqueuelist\", // дія, запитана в цьому розділі\n    \"ssqueuelist\": [\n        {\n            \"id\": \"487\", // id Черги\n            \"name\": \"1\", // номер Черги\n            \"description\": \"Черга\" // опис/назва Черги\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-30 15:09:48\"\n}"}],"_postman_id":"0581b434-eb35-4590-8b35-ae29d76677d7"},{"name":"додавання менеджера в чергу","id":"8d3c5225-ceee-4d94-a45b-62f035cfaf2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"set_status","type":"text"},{"key":"internal_phone","value":"80044XXXXXX","type":"text"},{"key":"status","value":"on","type":"text"}]},"url":"https://crm.streamtele.com/api/ssqueue","description":"<p><strong>Параметри запиту для додавання менеджера в чергу та встановлення його статусу:</strong></p>\n<ul>\n<li><p><strong>internal_phone</strong> – внутрішній номер співробітника StreamCRM;</p>\n</li>\n<li><p><strong>status</strong> – статус черги, може мати значення: ('on', 'off', 'pause', 'na').</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","ssqueue"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"a3618527-bd27-46e6-bcb6-44be4d96c2c4","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"set_status","type":"text"},{"key":"internal_phone","value":"80044XXXXXX","type":"text"},{"key":"status","value":"on","type":"text"}]},"url":"https://crm.streamtele.com/api/ssqueue"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2022-03-30 15:40:02\",\n    \"api_calls_per_hour_counter\": \"17/360\",\n    \"section\": \"ssqueue\", // розділ API, до якого було звернення\n    \"action\": \"set_status\", // дія, запитана в цьому розділі\n    \"set_status\": [],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2022-03-30 15:40:02\"\n}"}],"_postman_id":"8d3c5225-ceee-4d94-a45b-62f035cfaf2d"}],"id":"a0d13ce1-a257-448f-8345-22317280bc95","_postman_id":"a0d13ce1-a257-448f-8345-22317280bc95","description":"","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}},{"name":"widget","item":[{"name":"noautodonelist","id":"cbea6ad2-b2d9-4af8-8930-eeeb9a7e3f42","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"noautodonelist","type":"text"}]},"url":"https://crm.streamtele.com/api/widget","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}},"urlObject":{"protocol":"https","path":["api","widget"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"0645926f-ff3f-4718-a44b-c0ffedae4c8b","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"noautodonelist","type":"text"}]},"url":"https://crm.streamtele.com/api/widget"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2024-08-02 09:31:52\",\n    \"api_calls_per_hour_counter\": \"2/3600\",\n    \"section\": \"widget\",\n    \"action\": \"noautodonelist\",\n    \"noautodonelist\": [\n        {\n            \"id\": \"37533\", // айді заявки\n            \"stamp\": \"17.05.2024 13:25:48\", // дата та час\n            \"name\": \"streamtelecom.ge UA\", // назва віджету\n            \"widgetid\": \"84ef2b3d4b72d248d2b38330d5bf43a8\", // ідентификатор віджету\n            \"number\": \"+995540000000\", // номер телефону\n            \"status\": \"Заявка успішно опрацьована\", // статус\n            \"statusId\": 1 // айді статусу\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2024-08-02 09:32:03\"\n}"}],"_postman_id":"cbea6ad2-b2d9-4af8-8930-eeeb9a7e3f42"},{"name":"autodonelist","id":"42e6d611-897a-463a-825d-cac452363772","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"autodonelist","type":"text"}]},"url":"https://crm.streamtele.com/api/widget","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}},"urlObject":{"protocol":"https","path":["api","widget"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"c7283f00-a872-4870-bea9-32ce7b8b3325","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"autodonelist","type":"text"}]},"url":"https://crm.streamtele.com/api/widget"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2024-08-02 09:42:42\",\n    \"api_calls_per_hour_counter\": \"3/3600\",\n    \"section\": \"widget\",\n    \"action\": \"autodonelist\",\n    \"autodonelist\": [\n        {\n            \"id\": \"45000\", //  айді заявки\n            \"stamp\": \"02.08.2024 12:03:31\", // дата та час\n            \"name\": \"streamtele.com ua\", // назва віджету\n            \"widgetid\": \"592f26d30778182eba9b7c1c574497a6\", // ідентификатор віджету\n            \"number\": \"+380981112233\", // номер телефону\n            \"status\": \"Заявка у роботі\", // статус\n            \"statusId\": \"2\" // айді статусу\n        }\n    ],\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2024-08-02 09:43:05\"\n}"}],"_postman_id":"42e6d611-897a-463a-825d-cac452363772"},{"name":"details","id":"fb34fafc-7c3f-49a9-9930-4f28e4da1f44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"details","type":"text"},{"key":"id","value":"45042","description":"<p>де id - це айді заявки з віджета, по якій потрібні дані</p>\n","type":"text"}]},"url":"https://crm.streamtele.com/api/widget","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}},"urlObject":{"protocol":"https","path":["api","widget"],"host":["crm","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"a86d75a4-cf5d-45c4-bb2c-dc26b32050bb","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"username","value":"CRM_USER","type":"text"},{"key":"password","value":"CRM_USER_PASSWORD","type":"text"},{"key":"api_key","value":"CRM_API_KEY","type":"text"},{"key":"action","value":"details","type":"text"},{"key":"id","value":"45042","description":"де id - це айді заявки з віджета, по якій потрібні дані","type":"text"}]},"url":"https://crm.streamtele.com/api/widget"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"req_start_stamp\": \"2024-08-02 13:28:47\",\n    \"api_calls_per_hour_counter\": \"19/3600\",\n    \"section\": \"widget\",\n    \"action\": \"details\",\n    \"details\": {\n        \"id\": \"45042\", // айді заявки\n        \"name\": \"streamtele.com ua\", // назва віджету\n        \"description\": \"Основний сайт\", // опис віджету\n        \"stamp\": \"02.08.2024 15:30:36\", // дата та час\n        \"widgetid\": \"592f26d30778182eba9b7c1c574497a6\", // ідентификатор віджету\n        \"ip\": \"46.211.144.67\", // айпі користувача\n        \"google_ga\": \"GA1.1.1109666966.1722601793\",\n        \"google_gid\": \"\",\n        \"facebook_fbp\": \"\",\n        \"utm_source\": \"\",\n        \"utm_content\": \"\",\n        \"utm_medium\": \"\",\n        \"utm_term\": \"\",\n        \"utm_campaign\": \"\",\n        \"status\": \"Заявка не виконана\", // статус\n        \"statusId\": \"3\" // айді статусу\n    },\n    \"result\": \"ok\",\n    \"req_end_stamp\": \"2024-08-02 13:28:47\"\n}"}],"_postman_id":"fb34fafc-7c3f-49a9-9930-4f28e4da1f44"}],"id":"6b2bb013-91f2-479d-b54b-c7e7a122bc9b","description":"<p><strong>Фільтри для action \"noautodonelist\" та \"autodonelist\"</strong></p>\n<p>filter[manager] - ID менеджера з розділу співробітники</p>\n<hr />\n<p>filter[status]- ID статусу<br />приймає значення:<br />0 - Заявка чекає на обробку<br />1 - Заявка успішно опрацьована<br />2 - Заявка у роботі<br />3 - Заявка не виконана<br />4 - Заявка скасована</p>\n<hr />\n<p>filter[number] - номер телефону<br />приймає значення:<br />+380501112233<br />380501112233<br />0501112233<br />501112233</p>\n<hr />\n<p>filter[ip] - ip-адреса<br />filter[items_limit] - кількість на сторінці<br />filter[items_offset] - порядковий номер рядка з якого починається вибірка<br />filter[id] - ID заявки<br />filter[widget] - ID віджету<br />filter[company]- ID компанії</p>\n<hr />\n<p>filter[stamp_from] - дата з (приклад 2024-08-01 10:00:10)<br />filter[stamp_to] - дата до (приклад 2024-08-02 10:00:10)</p>\n<hr />\n<p>filter[queue_exists] - є запис у черзі,<br />приймає значення:<br />0 - ні<br />1 - так</p>\n<hr />\n<p>filter[cdr_exists]= є запис CDR<br />приймає значення:<br />0 - ні<br />1 - так</p>\n<hr />\n<p>filter[type]= тип заявки<br />приймає значення:<br />callback - перездвонили<br />queue - запланована заявка<br />form - зворотній зв'язок через форму</p>\n","_postman_id":"6b2bb013-91f2-479d-b54b-c7e7a122bc9b","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496","id":"9a6cb431-3e20-47d8-a14b-983300581496","name":"Stream CRM API v1.25","type":"folder"}}}],"id":"9a6cb431-3e20-47d8-a14b-983300581496","description":"<p><strong>API URL:</strong> <a href=\"https://crm.streamtele.com/api\">https://crm.streamtele.com/api</a></p>\n<p>Усі запити до API виконуються за допомогою методу POST.</p>\n<p>Для роботи з API необхідно:</p>\n<ul>\n<li><p>Користувач має бути активним.</p>\n</li>\n<li><p>У користувача API повинна бути активна роль <strong>api</strong>.</p>\n</li>\n<li><p>Також повинні бути активні ролі, необхідні для відповідних функцій API.</p>\n</li>\n</ul>\n<p>У більшості випадків користувач API повинен мати рівень доступу керівника компанії.</p>\n<p>Обов'язкові параметри для всіх запитів:</p>\n<ul>\n<li><p><strong>username</strong> — ім'я користувача streamCRM</p>\n</li>\n<li><p><strong>password</strong> — пароль користувача streamCRM</p>\n</li>\n<li><p><strong>api_key</strong> — секретний ключ компанії з streamCRM (API_KEY можна переглянути або згенерувати повторно в профілі компанії)</p>\n</li>\n</ul>\n<p>Усі дані передаються у форматі <strong>FORM-DATA</strong>.</p>\n<p>У відповідь на будь-який запит API повертає JSON із набором значень. Деякі значення повертаються у відповіді на будь-який авторизований запит:</p>\n<ul>\n<li><p><strong>req_start_stamp</strong> — час початку обробки запиту</p>\n</li>\n<li><p><strong>req_end_stamp</strong> — час закінчення обробки запиту</p>\n</li>\n<li><p><strong>section</strong> — розділ API</p>\n</li>\n<li><p><strong>result</strong> — загальний результат виконання операції (error/ok)</p>\n</li>\n</ul>\n<p>У разі помилок у відповіді повертається масив із інформацією про виявлені помилки: <strong>errors</strong>.</p>\n<p>Розділ API вказується в URL запиту до API <code>https://crm.streamtele.com/api/SECTION</code>, де <strong>SECTION</strong> — це потрібний розділ API, наприклад розділ sms: <code>https://crm.streamtele.com/api/sms</code>.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"c0098fe5-87b5-4e2a-af12-4633d63d5d5a","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a9fc9f2e-80fa-4395-9f02-9970eb11d0ab","type":"text/javascript","exec":[""]}}],"_postman_id":"9a6cb431-3e20-47d8-a14b-983300581496"},{"name":"Stream CALL API v3.0","item":[{"name":"Sticky - Липкість","item":[],"id":"a1ae460a-c8e6-478f-b069-46f94552d4a2","description":"<h3 id=\"основна-інформація\">Основна інформація:</h3>\n<p>При увімкненні цього методу на ваш сервер буде надісланий <code>POST</code> запит для отримання даних про номер внутрішньої лінії менеджера, відповідального за клієнта, та ім'я клієнта (для відображення на екрані телефонного апарата менеджера). Після цього виклик може бути спрямований на відповідального менеджера.</p>\n<hr />\n<h3 id=\"параметри-запиту\"><strong>Параметри запиту:</strong></h3>\n<ul>\n<li><p><strong>uri:</strong> Адреса вашого ресурсу, за якою можна отримати дані (та сама, що й для надсилання подій у вашу систему).</p>\n</li>\n<li><p><strong>client_key:</strong> За необхідності можна вказати ключ авторизації у вашій системі.</p>\n</li>\n<li><p><strong>streamtele_api_key:</strong> API-ключ StreamTelecom.</p>\n</li>\n<li><p><strong>phone:</strong> Номер абонента, який телефонує.</p>\n</li>\n<li><p><strong>event:</strong> За замовчуванням значення <code>\"prerouting\"</code>.</p>\n</li>\n<li><p><strong>method:</strong> <code>POST</code>.</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"приклад-json-запиту\"><strong>Приклад JSON-запиту:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"headers\": {\n    \"Content-Type\": \"application/json\"\n  },\n  \"uri\": \"https://staging.example.com/streamtelecom/XXXXXXX\",\n  \"body\": {\n    \"event\": \"prerouting\",\n    \"client_key\": null,\n    \"streamtele_api_key\": \"5495XXXXXXXXXXX461981f04bc\",\n    \"phone\": \"38067XXXXXXX\"\n  },\n  \"method\": \"POST\",\n  \"json\": true\n}\n\n</code></pre>\n<hr />\n<h3 id=\"параметри-очікуваної-відповіді\"><strong>Параметри очікуваної відповіді:</strong></h3>\n<ul>\n<li><p><strong>internal_line:</strong> Номер внутрішньої лінії менеджера, відповідального за клієнта.</p>\n</li>\n<li><p><strong>name:</strong> Ім'я клієнта, за потреби відображення імені на екрані телефону/софтфона.</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"приклад-json-відповіді\"><strong>Приклад JSON-відповіді:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"internal_line\": \"80044XXXXXX\",\n  \"name\": \"test316\"\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"837fa8e1-164e-447f-b39f-e5b77829b833","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0bc98d9c-8e74-41a4-b338-36bda4bc6f84","type":"text/javascript","exec":[""]}}],"_postman_id":"a1ae460a-c8e6-478f-b069-46f94552d4a2"},{"name":"Click To Call","item":[{"name":"click to call","id":"5ceedc39-bcab-4374-be1e-7d665e74d02d","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"json","value":"true","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"from\":\"80044XXXXXX\",\n    \"to\":\"38063XXXXXXX\"\n}"},"url":"https://gate.streamtele.com/api/voip_events/call_from_to","description":"<p>Параметри в тілі запиту:</p>\n<ul>\n<li><p><strong>from</strong> – Внутрішня лінія, з якої буде здійснюватися дзвінок.<br />  Приклад: <code>\"from\": \"80044XXXXXX\"</code></p>\n</li>\n<li><p><strong>to</strong> – Набраний номер.<br />  Приклад: <code>\"to\": \"38063XXXXXXX\"</code></p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","voip_events","call_from_to"],"host":["gate","streamtele","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ceedc39-bcab-4374-be1e-7d665e74d02d"}],"id":"29dd6fc5-7a73-435f-9a00-72e387ee04cf","description":"<p>Ініціація виклику від внутрішньої лінії на номер вашого клієнта</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"1dd82a02-b1ef-4b36-9745-24ddfa4f5a94","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3ba26c4e-e8f7-4339-a68c-80791e6e4edd","type":"text/javascript","exec":[""]}}],"_postman_id":"29dd6fc5-7a73-435f-9a00-72e387ee04cf"},{"name":"Events","item":[{"name":"Start","item":[],"id":"63fa4c9c-aa98-43a5-8946-954e4cd99516","description":"<p><strong>Виклик надійшов на зовнішній номер компанії</strong></p>\n<h3 id=\"опис-параметрів\">Опис параметрів:</h3>\n<ul>\n<li><p><strong>event</strong> - Назва івента: <code>\"Start\"</code>.</p>\n</li>\n<li><p><strong>type</strong> - Тип дзвінка: <code>in</code> (вхідний) / <code>out</code> (вихідний).</p>\n</li>\n<li><p><strong>event_time</strong> - Час, коли стався івент, у форматі UNIX timestamp.<br />  Приклад: <code>\"event_time\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>from</strong> - Залежно від типу виклику може містити</p>\n<ul>\n<li><p>номер лінії менеджера (при вихідному дзвінку);</p>\n</li>\n<li><p>номер клієнта, який телефонує (при вхідному дзвінку).<br />  Приклад: <code>\"from\": \"38066XXXXXX\"</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>to</strong> - Залежно від типу виклику може містити:</p>\n<ul>\n<li><p>Зовнішній номер компанії, через який проходить виклик (при вхідному дзвінку);</p>\n</li>\n<li><p>номер клієнта, якому телефонують (при вихідному дзвінку).<br />  Приклад: <code>\"to\": \"380XXXXXXXX\"</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>via</strong> - Зовнішній номер компанії, через який проходить виклик.<br />  Приклад: <code>\"via\": \"38044XXXXXX\"</code>.</p>\n</li>\n<li><p><strong>sessionid</strong> - Унікальний ідентифікатор сесії дзвінка.<br />  Приклад: <code>\"sessionid\": \"1558695235.5669089\"</code>.</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"start-event-body\"><strong>Start</strong> event body:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"body\": {\n    \"event\": \"Start\",\n    \"type\": \"in\",\n    \"event_time\": \"1560407026407\",\n    \"from\": \"38063XXXXXXX\",\n    \"to\": \"38066XXXXXX\",\n    \"via\": \"38066XXXXXX\",\n    \"sessionid\": \"1558695235.5669089\"\n  }\n}\n\n</code></pre>\n","event":[{"listen":"prerequest","script":{"id":"5d15e7fa-9f9b-487d-a235-e851ede4d8ba","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"09fe8a64-167d-4b26-ba4d-559a3baa0135","type":"text/javascript","exec":[""]}}],"_postman_id":"63fa4c9c-aa98-43a5-8946-954e4cd99516","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"fc5f32bf-3346-4dfd-b930-ecd185315eb2","id":"fc5f32bf-3346-4dfd-b930-ecd185315eb2","name":"Events","type":"folder"}}},{"name":"StartCall","item":[],"id":"5528bcbb-1f3a-4df2-b2b3-a09e5cf258f9","description":"<p><strong>Виклик надійшов на внутрішню лінію менеджера</strong></p>\n<h3 id=\"опис-параметрів\"><strong>Опис параметрів:</strong></h3>\n<ul>\n<li><p><strong>event</strong> - Назва івента: <code>\"StartCall\"</code>.</p>\n</li>\n<li><p><strong>type</strong> - Тип дзвінка: <code>in</code> (вхідний) / <code>out</code> (вихідний).</p>\n</li>\n<li><p><strong>time_start</strong> - Час початку виклику у форматі UNIX timestamp.<br />  Приклад: <code>\"time_start\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>event_time</strong> - Час, коли стався івент, у форматі UNIX timestamp.<br />  Приклад: <code>\"event_time\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>from</strong> - Залежно від типу виклику може містити:</p>\n<ul>\n<li><p>номер лінії менеджера (при вихідному дзвінку);</p>\n</li>\n<li><p>номер клієнта, який телефонує (при вхідному дзвінку).<br />  Приклад: <code>\"from\": \"80044XXXXXX\"</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>to</strong> - Залежно від типу виклику може містити:</p>\n<ul>\n<li><p>номер набраного клієнта (при вихідному дзвінку);</p>\n</li>\n<li><p>номер лінії менеджера (при вхідному дзвінку).<br />  Приклад: <code>\"to\": \"80044XXXXXX\"</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>via</strong> - Зовнішній номер компанії, через який проходить виклик.<br />  Приклад: <code>\"via\": \"38044XXXXXX\"</code>.</p>\n</li>\n<li><p><strong>redirecting</strong> - Чи був виклик перенаправлений?</p>\n<ul>\n<li>За замовчуванням: <code>1</code> (так) / <code>null</code> (ні).</li>\n</ul>\n</li>\n<li><p><strong>call_id</strong> - Унікальний ідентифікатор виклику.<br />  Приклад: <code>\"call_id\": \"1558695235.5669089\"</code>.</p>\n</li>\n<li><p><strong>sessionid</strong> - Унікальна сесія виклику.<br />  Приклад: <code>\"sessionid\": \"1558695235.5669089\"</code>.</p>\n</li>\n<li><p><strong>join</strong> - Ідентифікатор того, що виклик перебуває в черзі.</p>\n<ul>\n<li>За замовчуванням: <code>\"yes\"</code> (так) / <code>null</code> (ні).</li>\n</ul>\n</li>\n</ul>\n<hr />\n<h3 id=\"startcall-event-body\">StartCall event body:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"body\": {\n    \"event\": \"StartCall\",\n    \"type\": \"in\",\n    \"time_start\": \"1560407026407\",\n    \"event_time\": \"1560407026407\",\n    \"from\": \"38063XXXXXXX\",\n    \"to\": \"80044XXXXXX\",\n    \"via\": \"38044XXXXXX\",\n    \"redirecting\": \"null\",\n    \"call_id\": \"1558695235.5669089\",\n    \"sessionid\": \"1558695235.5669089\",\n    \"join\": \"yes\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"0a304ec0-8303-43fa-9543-a24241600994","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e89d4589-056e-4aad-9365-f2dd96b054e2","type":"text/javascript","exec":[""]}}],"_postman_id":"5528bcbb-1f3a-4df2-b2b3-a09e5cf258f9"},{"name":"Answer","item":[],"id":"811aefb8-fa28-4eca-a98d-6d890efec08d","description":"<p><strong>Менеджер відповів на дзвінок</strong></p>\n<h3 id=\"опис-параметрів\"><strong>Опис параметрів:</strong></h3>\n<ul>\n<li><p><strong>event</strong> - Назва івента: <code>\"Answer\"</code>.</p>\n</li>\n<li><p><strong>type</strong> - Тип дзвінка: <code>in</code> (вхідний) / <code>out</code> (вихідний).</p>\n</li>\n<li><p><strong>time_start</strong> - Час початку виклику у форматі UNIX timestamp.<br />  Приклад: <code>\"time_start\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>time_ring</strong> - Час дозвону у форматі UNIX timestamp.<br />  Приклад: <code>\"time_ring\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>event_time</strong> - Час, коли стався івент, у форматі UNIX timestamp.<br />  Приклад: <code>\"event_time\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>from</strong> - Залежно від типу виклику може містити:</p>\n<ul>\n<li><p>номер лінії менеджера (при вихідному дзвінку);</p>\n</li>\n<li><p>номер клієнта, який телефонує (при вхідному дзвінку).<br />  Приклад: <code>\"from\": \"80044XXXXXX\"</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>to</strong> - Залежно від типу виклику може містити:</p>\n<ul>\n<li><p>номер набраного клієнта (при вихідному дзвінку);</p>\n</li>\n<li><p>номер лінії менеджера (при вхідному дзвінку).<br />  Приклад: <code>\"to\": \"80044XXXXXX\"</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>via</strong> - Зовнішній номер компанії, через який проходить виклик.<br />  Приклад: <code>\"via\": \"38044XXXXXX\"</code>.</p>\n</li>\n<li><p><strong>redirecting</strong> - Чи був виклик перенаправлений?</p>\n<ul>\n<li>За замовчуванням: <code>1</code> (так) / <code>null</code> (ні).</li>\n</ul>\n</li>\n<li><p><strong>call_id</strong> - Унікальний ідентифікатор виклику.<br />  Приклад: <code>\"call_id\": \"1558695235.5669089\"</code>.</p>\n</li>\n<li><p><strong>sessionid</strong> - Унікальна сесія виклику.<br />  Приклад: <code>\"sessionid\": \"1558695235.5669089\"</code>.</p>\n</li>\n<li><p><strong>join</strong> - Ідентифікатор того, що виклик перебуває в черзі.</p>\n<ul>\n<li>За замовчуванням: <code>\"yes\"</code> (так) / <code>null</code> (ні).</li>\n</ul>\n</li>\n</ul>\n<hr />\n<h3 id=\"answer-event-body\">Answer event body:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"body\": {\n    \"event\": \"Answer\",\n    \"type\": \"in\",\n    \"time_start\": \"1560407026407\",\n    \"time_ring\": \"1560407026407\",\n    \"event_time\": \"1560407026407\",\n    \"from\": \"38063XXXXXXX\",\n    \"to\": \"80044XXXXXX\",\n    \"via\": \"80044XXXXXX\",\n    \"redirecting\": \"null\",\n    \"call_id\": \"1558695235.5669089\",\n    \"sessionid\": \"1958794225.5463021\",\n    \"join\": \"yes\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"83f7d0a6-7f6e-4ad7-8e4e-21c90f80620d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"df9739ad-ad3e-4047-8881-634c208caf49","type":"text/javascript","exec":[""]}}],"_postman_id":"811aefb8-fa28-4eca-a98d-6d890efec08d"},{"name":"Hangup","item":[],"id":"8a03bd3f-645d-44df-ac43-64c72833e640","description":"<p><strong>Виклик завершено</strong></p>\n<h3 id=\"опис-параметрів\"><strong>Опис параметрів:</strong></h3>\n<ul>\n<li><p><strong>event</strong> - Назва івента: <code>\"Hangup\"</code>.</p>\n</li>\n<li><p><strong>type</strong> - Тип дзвінка: <code>in</code> (вхідний) / <code>out</code> (вихідний).</p>\n</li>\n<li><p><strong>time_start</strong> - Час початку виклику у форматі UNIX timestamp.<br />  Приклад: <code>\"time_start\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>time_ring</strong> - Час дозвону у форматі UNIX timestamp.<br />  Приклад: <code>\"time_ring\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>time_answer</strong> - Час, коли на виклик відповіли у форматі UNIX timestamp.<br />  Приклад: <code>\"time_answer\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>event_time</strong> - Час, коли стався івент, у форматі UNIX timestamp.<br />  Приклад: <code>\"event_time\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>from</strong> - Залежно від типу виклику може містити:</p>\n<ul>\n<li><p>номер лінії менеджера (при вихідному дзвінку);</p>\n</li>\n<li><p>номер клієнта, який телефонує (при вхідному дзвінку).<br />  Приклад: <code>\"from\": \"80044XXXXXX\"</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>to</strong> - Залежно від типу виклику може містити:</p>\n<ul>\n<li><p>номер набраного клієнта (при вихідному дзвінку);</p>\n</li>\n<li><p>номер лінії менеджера (при вхідному дзвінку).<br />  Приклад: <code>\"to\": \"80044XXXXXX\"</code>.</p>\n</li>\n</ul>\n</li>\n<li><p><strong>via</strong> - Зовнішній номер компанії, через який проходить виклик.<br />  Приклад: <code>\"via\": \"38044XXXXXX\"</code>.</p>\n</li>\n<li><p><strong>redirecting</strong> - Чи був виклик перенаправлений?</p>\n<ul>\n<li>За замовчуванням: <code>1</code> (так) / <code>null</code> (ні).</li>\n</ul>\n</li>\n<li><p><strong>result</strong> - Статус виклику: чи відповіли на виклик.</p>\n<ul>\n<li>За замовчуванням: <code>\"answer\"</code> (відповіли) / <code>\"no answer\"</code> (не відповіли).</li>\n</ul>\n</li>\n<li><p><strong>call_id</strong> - Унікальний ідентифікатор виклику.<br />  Приклад: <code>\"call_id\": \"1558695235.5669089\"</code>.</p>\n</li>\n<li><p><strong>sessionid</strong> - Унікальна сесія виклику.<br />  Приклад: <code>\"sessionid\": \"1586343097.1229109\"</code>.</p>\n</li>\n<li><p><strong>recordUrl</strong> - URL запису розмови (якщо дзвінок успішний) або <code>null</code> (якщо виклик без відповіді).<br />  Приклад: <code>\"recordUrl\": \"https://gate.streamtele.com/api/streamtele-v3/audio?CALL_UUID\"</code>.</p>\n</li>\n<li><p><strong>join</strong> - Ідентифікатор того, що виклик знаходиться в черзі.</p>\n<ul>\n<li>За замовчуванням: <code>\"yes\"</code> (так) / <code>null</code> (ні).</li>\n</ul>\n</li>\n<li><p><strong>end_sess</strong> - Ідентифікатор того, що виклик є останнім (відповіли або скинули).</p>\n<ul>\n<li>За замовчуванням: <code>\"yes\"</code> (так) / <code>null</code> (ні).</li>\n</ul>\n</li>\n</ul>\n<hr />\n<h3 id=\"hangup-event-body\">Hangup event body:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"body\": {\n    \"event\": \"Hangup\",\n    \"type\": \"in\",\n    \"event_time\": \"1560407026407\",\n    \"time_start\": \"1560407026407\",\n    \"time_ring\": \"1560407026407\",\n    \"time_answer\": \"1560407026407\",\n    \"from\": \"38063XXXXXXX\",\n    \"to\": \"80044XXXXXX\",\n    \"via\": \"38044XXXXXXX\",\n    \"redirecting\": \"null\",\n    \"result\": \"answer\",\n    \"call_id\": \"1558695235.5669089\",\n    \"sessionid\": \"1586343097.1229109\",\n    \"recordUrl\": \"https://gate.streamtele.com/api/streamtele-v3/audio?CALL_UUID\",\n    \"join\": \"yes\",\n    \"end_sess\": \"yes\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"d721c8ce-c7bf-4ab4-8112-ce75dfb79eb0","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a9853bb5-0a54-4812-a142-c109d3b4f00a","type":"text/javascript","exec":[""]}}],"_postman_id":"8a03bd3f-645d-44df-ac43-64c72833e640"},{"name":"End_in","item":[],"id":"2c031674-91be-4d19-9860-6301388cd411","description":"<p><strong>Завершення виклику на етапі IVR (End_in)</strong></p>\n<h3 id=\"опис-параметрів\"><strong>Опис параметрів:</strong></h3>\n<ul>\n<li><p><strong>event</strong> - Назва івента: <code>\"End_in\"</code>.</p>\n</li>\n<li><p><strong>type</strong> - Тип дзвінка: <code>\"in\"</code> (вхідний).</p>\n</li>\n<li><p><strong>time_start</strong> - Час початку виклику у форматі UNIX timestamp.<br />  Приклад: <code>\"time_start\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>event_time</strong> - Час, коли стався івент, у форматі UNIX timestamp.<br />  Приклад: <code>\"event_time\": \"1560407026407\"</code>.</p>\n</li>\n<li><p><strong>from</strong> - Номер клієнта, який телефонує.<br />  Приклад: <code>\"from\": \"38063XXXXXXX\"</code>.</p>\n</li>\n<li><p><strong>to</strong> - Номер внутрішньої лінії (лінії, на яку здійснюється виклик).<br />  Приклад: <code>\"to\": \"80044XXXXXX\"</code>.</p>\n</li>\n<li><p><strong>via</strong> - Зовнішній номер компанії, через який проходить виклик.<br />  Приклад: <code>\"via\": \"80044XXXXXX\"</code>.</p>\n</li>\n<li><p><strong>sessionid</strong> - Унікальна сесія виклику.<br />  Приклад: <code>\"sessionid\": \"1558695235.5669089\"</code>.</p>\n</li>\n</ul>\n<hr />\n<h3 id=\"end_in-event-body\">End_in event body:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"body\": {\n    \"event\": \"End_in\",\n    \"type\": \"in\",\n    \"from\": \"+38063XXXXXXX\",\n    \"to\": \"80044XXXXXX\",\n    \"via\": \"38096XXXXXXX\",\n    \"time_start\": \"1586343903855\",\n    \"event_time\": \"1586343905703\",\n    \"sessionid\": \"1586343903.1245956\"\n  }\n}\n\n</code></pre>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"192c7c71-2700-41d1-b935-9be9f5c462be","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8795d222-e207-4a16-8a57-08ccc362a62d","type":"text/javascript","exec":[""]}}],"_postman_id":"2c031674-91be-4d19-9860-6301388cd411"}],"id":"fc5f32bf-3346-4dfd-b930-ecd185315eb2","description":"<p>Цей розділ описує івенти, які наш сервер передаватиме вам під час дзвінків.</p>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"fef56b9a-0f5a-441b-8f3f-3e5007d4a0a6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"1e434146-15ab-4e05-aebc-49f2e66fa294","type":"text/javascript","exec":[""]}}],"_postman_id":"fc5f32bf-3346-4dfd-b930-ecd185315eb2"}],"id":"590d276f-83a1-42f1-a3a5-0a9c96feaf14","description":"<p>Мінімальний набір налаштувань:</p>\n<ul>\n<li><p>Створені внутрішні номери, кожному співробітнику виділено внутрішній номер;</p>\n</li>\n<li><p>У особистому кабінеті мають бути створені ключі авторизації API;</p>\n</li>\n<li><p>На внутрішні номери віртуальної АТС має бути налаштоване обладнання для здійснення та прийому дзвінків, наприклад, софтфон або IP-телефон, або включено переадресацію;</p>\n</li>\n<li><p>Увімкнена інтеграція для вашої компанії на стороні StreamTelecom.</p>\n</li>\n</ul>\n","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"f13db399-8046-46d0-a6e7-b58e4f9cbfc9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a488e52c-0b7d-4499-9a53-b1da1ea4bf69","type":"text/javascript","exec":[""]}}],"_postman_id":"590d276f-83a1-42f1-a3a5-0a9c96feaf14"},{"name":"RoboCall","item":[{"name":"Auth","item":[{"name":"LogIn","id":"775af4ff-a81c-44d2-88c9-dc9106851549","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"YOUR@EMAIL\",\n    \"password\": \"SUPER_SECRET_PASSWORD\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rc.streamtele.com/api/v1/auth/logIn","description":"<p><strong>User authorization in the system.<br />access_token lifetime - 2 hours<br />refresh_token lifetime - 4 hours</strong></p>\n<p><em><strong>We recommend updating the token bundle once an hour</strong></em></p>\n","urlObject":{"protocol":"https","path":["api","v1","auth","logIn"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"914e75d2-5037-42a9-b5d8-cc22d2027ba9","name":"Success LogIn","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"YOUR@EMAIL\",\n    \"password\": \"SUPER_SECRET_PASSWORD\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rc.streamtele.com/api/v1/auth/logIn"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"result\": true,\n    \"message\": {\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ2.eyJkYXRhIjp7InJpZCI6MSwidWlkIjoxNn0sImlhdCI6MTY1ODgwOTgwNCwiZXhwIjoxNjU4ODE3MDA0fQ.d6bTlp8iLNueV2_gaO1lvyRVSr6aCr5tr1hJJVymBf4\",\n        \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ2.eyJyZWZyZXNoIjo3MjAwLCJpYXQiOjE2NTg4MDk4MDQsImV4cCI6MTY1ODgyMDYwNH0.BVUz4rGakb5Uz0ZO_fsoDpthOCe9wjQUveeOnWxybB8\"\n    },\n    \"error\": null\n}"}],"_postman_id":"775af4ff-a81c-44d2-88c9-dc9106851549"},{"name":"Refresh","id":"df98d9bf-7ed0-48a8-84ea-ec736e4c0123","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"refresh_token\": \"REFRESH_TOKEN\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rc.streamtele.com/api/v1/auth/refresh","description":"<p>Method for updating a tokens bundle</p>\n","urlObject":{"protocol":"https","path":["api","v1","auth","refresh"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"66b3494f-4a1a-4ffa-b619-db21b78c8c24","name":"Successfully refreshed","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"refresh_token\": \"REFRESH_TOKEN\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rc.streamtele.com/api/v1/auth/refresh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 26 Jul 2022 06:07:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"388"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"184-nDFOVfb7AHlo9ak5dJbN4+mmD9Q\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": true,\n    \"message\": {\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ4.eyJkYXRhIjp7InJpZCI6MSwidWlkIjoxNn0sImlhdCI6MTY1ODgxNTY1NSwiZXhwIjoxNjU4ODIyODU1fQ.a1MHPCbhTqy9w8KaWE4tKK1fakmlPDJtHe1GFNzhiw9\",\n        \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ4.eyJyZWZyZXNoIjo3MjAwLCJpYXQiOjE2NTg4MTU2NTUsImV4cCI6MTY1ODgyNjQ1NX0.HGi1YeyuSulegAwcOwAAI0v18_3UCEgg6skasj6qJ11\"\n    },\n    \"error\": null\n}"}],"_postman_id":"df98d9bf-7ed0-48a8-84ea-ec736e4c0123"},{"name":"LogOut","id":"3cbb8b6c-6b64-46e5-a5f2-de74cbae9430","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://rc.streamtele.com/api/v1/auth/logout","description":"<p>Logging out the user makes the tokens invalid</p>\n","urlObject":{"protocol":"https","path":["api","v1","auth","logout"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"a426fba9-5b0e-4d27-85f7-b1fd77ec967e","name":"Success LogOut","originalRequest":{"method":"POST","header":[],"url":"https://rc.streamtele.com/api/v1/auth/logout"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"200 Ok"}],"_postman_id":"3cbb8b6c-6b64-46e5-a5f2-de74cbae9430"}],"id":"b2151279-44f8-4871-80af-6bd164b05167","description":"<p><strong>This section describes the user authorization methods:</strong></p>\n<p><strong>login</strong> - user authorization in the system to receive a bunch of JWT tokens<br /><strong>refresh</strong> - update a bunch of JWT tokens<br /><strong>logout</strong> - user logout from the system</p>\n","_postman_id":"b2151279-44f8-4871-80af-6bd164b05167"},{"name":"Call2FA API v1.0.0","item":[{"name":"Tasks","item":[{"name":"Get task by ID","id":"56e58e10-ba78-4743-965a-00f94a5eef16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rc.streamtele.com/api/v1/task/b570b883-a6ab-4b48-b022-398b7fe80e2b","description":"<p>Getting information about a call by its ID received when creating a task for a call</p>\n<p>All information is located in the message variable:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\">{\n  \"result\": true, // will be false if error occurred\n  \"message\": { // All necessary info about task\n    \"type\": \"task\", // Always will be task\n    \"id\": \"017630ec-dee1-4fb8-b1b3-7759cbfe50cc\", // Task ID\n    \"attributes\": {\n      \"state\": \"done\",\n      \"phone\": \"380XXXXXXXXX\", // Customer phone number\n      \"call_from_number\": \"380XXXXXXXXX\", // Your external phone number from which was made call\n      \"callback_url\": \"https://your.api.server/api/call_log\", // Your callback url where we'll send task info after call ends\n      \"ivr_answer\": null, // Will be filled if customer press button, filled if you use first type of Call2FA, in other cause will be null \n      \"is_called\": true, // True if system called to customer, in other cause will be false\n      \"is_callback_sent\": true, // True if system successfully send callback to your usl, False if system 5 times will receive from your server not status 200 on request\n      \"is_error_happened\": false, // Will be true if error occurred during the call to customer\n      \"error_desc\": null, // Error description\n      \"created_at\": \"2022-07-26 07:41:15\", // When task was created\n      \"updated_at\": \"2022-07-26 07:41:15\" // When task was updated\n    }\n  },\n  \"error\": null // will be filled if error occurred \n}\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","v1","task","b570b883-a6ab-4b48-b022-398b7fe80e2b"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"f153f5da-d00f-4b18-bf21-5cb1a013cbc7","name":"Get task by ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://rc.streamtele.com/api/v1/task/b570b883-a6ab-4b48-b022-398b7fe80e2b","protocol":"https","host":["rc","streamtele","com"],"path":["api","v1","task","b570b883-a6ab-4b48-b022-398b7fe80e2b"],"query":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","disabled":true}]}},"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 26 Jul 2022 06:29:48 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"64"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"40-61BoBmsf+825OGf5J8HQzbcne3U\""}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": true,\n    \"message\": {\n        \"type\": \"task\",\n        \"id\": \"017630ec-dee1-4fb8-b1b3-7759cbfe50cc\",\n        \"attributes\": {\n            \"state\": \"done\",\n            \"phone\": \"380XXXXXXXXX\",\n            \"callback_url\": \"https://your.api.server/api/call_log\",\n            \"ivr_answer\": null,\n            \"is_called\": true,\n            \"is_callback_sent\": true,\n            \"is_error_happened\": false,\n            \"error_desc\": null,\n            \"created_at\": \"2022-07-26 07:41:15\",\n            \"updated_at\": \"2022-07-26 07:41:15\",\n            \"call_from_number\": \"380XXXXXXXXX\"\n        }\n    },\n    \"error\": null\n}"}],"_postman_id":"56e58e10-ba78-4743-965a-00f94a5eef16"},{"name":"Task first type","id":"6c402219-bc2d-42d8-8b09-56c760a426d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"phone\": \"380XXXXXXXXX\",\n    \"callback_url\": \"https://rc.streamtele.com/api/call_log\",\n    \"audio_id\": 165\n}","options":{"raw":{"language":"json"}}},"url":"https://rc.streamtele.com/api/v1/task","description":"<p><strong>The first type of Call2FA implies the following algorithm:</strong><br /><strong>1 -</strong> Your system makes a request to our service with the client number and the address of the callback url, in response it receives the task ID, the client number and the callback url<br /><strong>2 -</strong> Our system calls the client's number, after picking up the phone, a pre-recorded audio file is played to him, in which he is asked to press, for example, 1 to confirm the action<br /><strong>3 -</strong> If the client pressed 1 or hung up, call information will be sent to the previously specified callback url with the choice of the client if he pressed 1 or something else</p>\n","urlObject":{"protocol":"https","path":["api","v1","task"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"31c8894e-967f-44f7-88a6-0a9daa6ba9aa","name":"Task first type","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phone\": \"380XXXXXXXXX\",\n    \"callback_url\": \"https://you.api.server/api/call_log\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rc.streamtele.com/api/v1/task"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"result\": true,\n    \"message\": {\n        \"id\": \"1c38b7a6-8d40-4009-a931-2b26587b9b2c\",\n        \"phone\": \"380XXXXXXXXX\",\n        \"callback_url\": \"https://you.api.server/api/call_log\",\n        \"created_at\": \"2022-07-26 07:34:44\"\n    },\n    \"error\": null\n}"}],"_postman_id":"6c402219-bc2d-42d8-8b09-56c760a426d6"},{"name":"Task second type","id":"5b3baeb4-ffff-470b-86ac-9b956e765868","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"phone\": \"380XXXXXXXXX\",\n    \"callback_url\": \"https://rc.streamtele.com/api/call_log\",\n    \"call_from\": \"380XXXXXXXXX\" // Not required field, if set call will be made from this number, number format must be next: 380XXXXXXXXX\n}","options":{"raw":{"language":"json"}}},"url":"https://rc.streamtele.com/api/v1/task-last4","description":"<p><strong>The second type of Call2FA implies the following algorithm:</strong></p>\n<p><strong>1 -</strong> Your system makes a request to our service with a client number and a callback url address, in response it receives a task ID, a client number, an external number randomly selected from the pool from which the call will be made and a callback url<br /><strong>2 -</strong> Our system calls the client's number, from the external number selected at the first stage, if the client picks up the phone, the call will be immediately terminated<br /><strong>3 -</strong> The client enters the last 3-4 digits of the caller's number on your resource, where you compare them with the last digits of the external number you received at the first stage and decide whether to authorize the client or not<br /><strong>4 -</strong> After the call is completed, the system will send information about the call to the previously specified callback url.</p>\n","urlObject":{"protocol":"https","path":["api","v1","task-last4"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"14d4b719-ad56-42af-8016-87e854d871b4","name":"Task second type","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phone\": \"380XXXXXXXXX\",\n    \"callback_url\": \"https://you.api.server/api/call_log\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://rc.streamtele.com/api/v1/task-last4","protocol":"https","host":["rc","streamtele","com"],"path":["api","v1","task-last4"],"query":[{"key":"","value":"","disabled":true}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"result\": true,\n    \"message\": {\n        \"id\": \"017630ec-dee1-4fb8-b1b3-7759cbfe50cc\",\n        \"phone\": \"380XXXXXXXXX\",\n        \"call_from\": \"380XXXXXXXXX\",\n        \"callback_url\": \"https://you.api.server/api/call_log\",\n        \"created_at\": \"2022-07-26 07:41:15\"\n    },\n    \"error\": null\n}"}],"_postman_id":"5b3baeb4-ffff-470b-86ac-9b956e765868"},{"name":"Text-To-Speach (TTS)","id":"a05062fb-0d59-4326-95de-8b0e7248af8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"phone\": \"38066XXXXXXX\",\n    \"callback_url\": \"https://your.domain.com/api/call_log\",\n    \"text\": \"Шановний кліенте. Повідомляемо, що станом на 24.10.2022 по Вашому особистому рахунку 1, 1, 0, 0, 0, 7, 0, 3, 3, 2 існує заборгованість  перед YOUR_COMPANY_NAME у розмірі 1235 гривень 56 копійок. Просимо, сплатити борг найближчим часом. У разі несплати боргу постачальник має право припинити надання послуг, до сплати боргу.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rc.streamtele.com/api/v1/task-standart-tts","description":"<p><strong>The Text-To-Speach(TTS) implies the following algorithm:</strong><br />1 - Your system makes a request to our service with a client number, text to say to the customer and a callback url address, in response it receives a task ID, a client number and a callback url<br />2 - Our system calls the client's number, if client picks up the phone, system will play to the client an audio generated from your text.<br />3 - After the call is completed, the system will send information about the call to the previously specified callback url.</p>\n<p><strong>IMPORTANT: At this moment we support just Ukrainian language with female voice.</strong></p>\n<p>Examples of data:</p>\n<ul>\n<li>Date - must be written or fully texted like: \"перше грудня двадцять другого року\" or in next format 01.12.2022</li>\n<li>Account number - if you want to say it one by one symbol, then it must be written like: '1, 2, 3, 4'</li>\n<li>Price - if you want to set it as an number, then it must look like: '15 325,45 ₴' or written as a text: 'п'ятнадцять тисяч триста двадцять п'ять гривень, сорок п'ять копійок'</li>\n<li>Shortcuts - If you will write like example 'ТОВ', robot will read it as: 'Товариство з Обмеженою Відповідальністю', if you want to robot read it as shortcut, you should write it in lowercase as 'тов'</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","task-standart-tts"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"1e9bce45-a39b-43a1-8c8b-d19ff326fdc0","name":"Text-To-Speach (TTS)","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"phone\": \"38066XXXXXXX\",\n    \"callback_url\": \"https://your.domain.com/api/call_log\",\n    \"text\": \"Шановний кліенте. Повідомляемо, що станом на 24.10.2022 по Вашому особистому рахунку 1, 1, 0, 0, 0, 7, 0, 3, 3, 2 існує заборгованість  перед YOUR_COMPANY_NAME у розмірі 1235 гривень 56 копійок. Просимо, сплатити борг найближчим часом. У разі несплати боргу постачальник має право припинити надання послуг, до сплати боргу.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://rc.streamtele.com/api/v1/task-standart-tts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Wed, 09 Nov 2022 13:35:20 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"198"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"c6-LU3YTW/xAWGZ3NS1EfT0H8kPNFc\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": true,\n    \"message\": {\n        \"id\": \"dfd1761c-20a7-4da1-bd97-435aa817713a\",\n        \"phone\": \"38066XXXXXXX\",\n        \"callback_url\": \"https://your.domain.com/api/call_log\",\n        \"created_at\": \"2022-11-09 15:35:20\"\n    },\n    \"error\": null\n}"}],"_postman_id":"a05062fb-0d59-4326-95de-8b0e7248af8b"}],"id":"e1970644-6188-4c24-a3e5-7df4632c0035","description":"<p><strong>This section describes the work with tasks:</strong></p>\n<p><strong>Get task by ID</strong> - allowed to get task information by it's ID<br /><strong>Task first type</strong> - create first type of Call2FA task<br /><strong>Task second type</strong> - create second type of Call2FA task</p>\n<h3 id=\"important-in-tasks-where-present-callback_url-it-will-be-checked-by-sending-get-request-on-validity-when-phone-call-finished-task-info-will-be-sent-via-post-request\"><em><strong>IMPORTANT: In tasks where present callback_url it will be checked by sending GET request on validity.</strong></em> When phone call finished task info will be sent via POST request</h3>\n","_postman_id":"e1970644-6188-4c24-a3e5-7df4632c0035"}],"id":"c7d06d55-f2e2-4114-b8f8-ab79625a4723","description":"<p>Call authorization is used as a second authentication factor. This is a great way to protect you and the user from unauthorized access.</p>\n<ul>\n<li><strong>Flexible prices</strong> - Cost from 0.10 UAH and depends on volume verifications per month</li>\n<li><strong>Speed and simplicity</strong> - Call comes always and faster than sms message</li>\n<li><strong>Safety</strong> - Users can authorise only by his own number</li>\n</ul>\n<p><strong>Call authorization has the following types:</strong></p>\n<ol>\n<li>Your system makes a request with a client number and a webhook to our service, our system calls the client when he answers the call, he is prompted to press 1 to confirm the action in the application or on the site, after which you receive his answer to your webhook</li>\n<li>Your system makes a request with a client number and a webhook to our service, our system calls the client from a specific phone number, and he, in turn, must enter the last 3-4 digits of the caller's number in the application or website</li>\n</ol>\n<p><strong>Text-To-Speach (TTS):</strong></p>\n<p>Our system can make calls to your clients and play to them auto generated audio from your text.<br />For example you need to inform many customers with different info but you has no time to make various prerecorded audios, we can help you - just send us phone number and deseared text.</p>\n","_postman_id":"c7d06d55-f2e2-4114-b8f8-ab79625a4723"},{"name":"Auto-informer API v1.0.0","item":[{"name":"Audio","item":[{"name":"Upload audio file","id":"02628dcc-9be6-432f-b156-e0a4df0ca023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"fileName","value":"Track 08.mp3","description":"<p>Send here directly file name - required</p>\n","type":"text"},{"key":"file","type":"file","description":"<p>mp3 audio file</p>\n","value":null}]},"url":"https://rc.streamtele.com/api/v1/audio","description":"<p>Upload new audio file to use it in auto-informer</p>\n","urlObject":{"protocol":"https","path":["api","v1","audio"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"d161618b-3040-483c-8997-6bbacea7472d","name":"Upload audio file","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"fileName","value":"Track 08.mp3","description":"Send here directly file name - required","type":"text"},{"key":"file","type":"file","value":null}]},"url":"https://rc.streamtele.com/api/v1/audio"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 08:26:40 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"80"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"50-xIkwX6tvUoXILeyJ425Z9z3Ro6g\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"message\": \"File Track 08.mp3 saved!\", // Just message about action\n    \"file_id\": 100500, // New audio file id which you can use when will create auto-informer with type 1(Play Audio)\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"02628dcc-9be6-432f-b156-e0a4df0ca023"},{"name":"List available audio files","id":"48958fd9-34ff-479d-b0fd-3f88ba77e3be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rc.streamtele.com/api/v1/list/audio","description":"<p>Returns user's uploaded audio files</p>\n","urlObject":{"protocol":"https","path":["api","v1","list","audio"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"25359720-670a-4a8e-a869-40f0aee08722","name":"List available audio files","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://rc.streamtele.com/api/v1/list/audio"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 08:13:07 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"82"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"52-1rTbd1ynRqASupGQjPF1v1tkwHY\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"files\": [ // Array of available audio files\n        {\n            \"id\": 100500, // Audio file id which you can use when will create auto-informer with type 1(Play Audio)\n            \"name\": \"01-b-2023.mp3\" // Audio file name\n        }\n    ],\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"48958fd9-34ff-479d-b0fd-3f88ba77e3be"},{"name":"Delete audio file by id","id":"9b813f8c-5d8a-4636-b752-0fc2e3946ac7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://rc.streamtele.com/api/v1/audio/:audio_id","description":"<p>Delete audio file by its id</p>\n","urlObject":{"protocol":"https","path":["api","v1","audio",":audio_id"],"host":["rc","streamtele","com"],"query":[],"variable":[{"id":"956626aa-759f-4a67-afe4-de084cc2f44c","description":{"content":"<p>ID of audio file which you want to delete</p>\n","type":"text/plain"},"type":"any","value":null,"key":"audio_id"}]}},"response":[{"id":"e5a144f5-40ee-4664-9cfa-218ddf1988b3","name":"Delete audio file by id","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://rc.streamtele.com/api/v1/audio/:audio_id","protocol":"https","host":["rc","streamtele","com"],"path":["api","v1","audio",":audio_id"],"variable":[{"key":"audio_id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 08:19:54 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"3b-pE1MJKm/onDTM8bze5ueqU6F8xY\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"message\": \"File 100500 removed!\", // Just message about action\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"9b813f8c-5d8a-4636-b752-0fc2e3946ac7"}],"id":"9c6a3b9a-3a52-4470-831f-c49b856e5638","description":"<p>To use this functionality, you need to specify clients numbers in international format, for example: 38066XXXXXX in \"number\" column in the import file for imports and during the creation of the auto-informer, specify the Play Audio type which has id 1 and set which file id you need to use</p>\n","_postman_id":"9c6a3b9a-3a52-4470-831f-c49b856e5638"},{"name":"Available voices and languages","item":[{"name":"List available voices and languages","id":"97ff9eee-4421-4ce0-a800-f364eba60026","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rc.streamtele.com/api/v1/list/languages","urlObject":{"protocol":"https","path":["api","v1","list","languages"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"f93fdee1-9d38-4bc8-9eb3-9d75e9a94a9a","name":"List available voices and languages","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://rc.streamtele.com/api/v1/list/languages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 08:34:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"16745"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"4169-mg/hPMSdNV9XcZJjbXrE+QK4arg\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,//Is action was successful or not\n    \"voices\": [ // Array with available languages and voices\n        {\n            \"language\": \"Arabic\", // Language \n            \"code\": \"ar-XA\", // Language code to use in TTS auto-informer \n            \"voice\": \"ar-XA-Wavenet-A\", // Voice code to use in TTS auto-informer \n            \"gender\": \"FEMALE\" // Gender of dictor\n        }\n    ],\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"97ff9eee-4421-4ce0-a800-f364eba60026"}],"id":"018ec7f3-a1c4-4d2f-9697-f997f361eb06","description":"<p>The list includes voices of <strong>WaveNet</strong> and <strong>Neural2</strong>. WaveNet and Neural2 voices are of higher quality and their voice type in the list is «WaveNet» or «Neural2». To use this functionality, you need to specify the following fields from the list below in the import file and when creating an auto-informant, specify the <strong>TTS</strong> type which has id 2:</p>\n<ul>\n<li><strong>code</strong> - code, for example: <strong>uk-UA</strong></li>\n<li><strong>voice</strong> - voice ID, for example: <strong>uk-UA-Wavenet-A</strong></li>\n<li><strong>text</strong> - text that needs to be voiced to the client, for example: <strong>Good day. You are greeted by RoboCall company</strong>.<br />  <em><strong>The maximum length of the message should not exceed 400 characters!</strong></em></li>\n<li><strong>number</strong> - client's phone number in international format, for example: <strong>38066XXXXXX</strong></li>\n</ul>\n","_postman_id":"018ec7f3-a1c4-4d2f-9697-f997f361eb06"},{"name":"Auto-informer","item":[{"name":"Create auto-informer","item":[{"name":"Combined - without context","id":"e0952224-73c6-47ad-983f-45d8a10fae8d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>csv comma-separated file in UTF-8 encoding</p>\n","type":"file","value":null},{"key":"fileName","value":"example_autoinformer.csv","description":"<p>Send here directly file name with extension csv - required</p>\n","type":"text"},{"key":"autoInformerName","value":"Тест тип 0","description":"<p>auto-informer name</p>\n","type":"text"},{"key":"type","value":"0","type":"text","description":"<p>ID of auto-informer type, for \"Combined\" set type: 0</p>\n"}]},"url":"https://rc.streamtele.com/api/v1/autoinformer","description":"<p><strong>Combined without context</strong> - that means what this auto-informer uses prerecorded audio files with combination with TTS, this type has <strong>ID: 0</strong>, <a href=\"https://rc.streamtele.com/web/api/ainf/getaexamplefile\">you can get example import CSV file for this type by this link</a></p>\n<p>This type of auto-informer is used to inform customers that, as of the date specified in the file, they have a debt specified in the file to the company specified in the file.</p>\n<p>In import file you must set next columns:</p>\n<ul>\n<li><strong>name</strong> - your company name, <strong>without special characters</strong></li>\n<li><strong>date</strong> - debt date, for example: <strong>03.11.2022 - format: DD.MM.YYYY</strong></li>\n<li><strong>price</strong> - debt sum , for example: <strong>2457.72 - notice what in price you must use dot instead of comma</strong></li>\n<li><strong>number</strong> - client's phone number in international format, for example: <strong>38066XXXXXX</strong></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"b89c17af-7e84-4632-9e7a-d261f6a33b7e","name":"Create type 0 without context","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","description":"csv comma-separated file in UTF-8 encoding","type":"file","value":null},{"key":"fileName","value":"example_autoinformer.csv","description":"Send here directly file name with extension csv - required","type":"text"},{"key":"autoInformerName","value":"Тест тип 0","description":"auto-informer name","type":"text"},{"key":"type","value":"0","type":"text","description":"ID of auto-informer type, for \"Combined\" set type: 0"}]},"url":"https://rc.streamtele.com/api/v1/autoinformer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 14:13:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"33-ibIHod8VpJX7+3+47xsvfVYs40U\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"autoinformer_id\": 100500, // ID of newly created auto-informer, can be used to start this auto-informer\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"e0952224-73c6-47ad-983f-45d8a10fae8d"},{"name":"Combined - with context","id":"914c3e4e-6f32-4578-a73d-e5b6efeb6f3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>csv comma-separated file in UTF-8 encoding</p>\n","type":"file","value":null},{"key":"fileName","value":"example_autoinformer.csv","description":"<p>Send here directly file name with extension csv - required</p>\n","type":"text"},{"key":"autoInformerName","value":"Тест тип 0","description":"<p>auto-informer name</p>\n","type":"text"},{"key":"type","value":"0","type":"text","description":"<p>ID of auto-informer type, for \"Combined\" set type: 0</p>\n"},{"key":"context","value":"1","description":"<p>id of context for auto-informer - optional</p>\n","type":"text"}]},"url":"https://rc.streamtele.com/api/v1/autoinformer","description":"<p><strong>Combined with context</strong> - that means what this auto-informer uses prerecorded audio files with combination with TTS, this type has <strong>ID: 0</strong>, <a href=\"https://rc.streamtele.com/web/api/ainf/getaexamplefile\">you can get example import CSV file for this type by this link</a>, this auto-informer has a additional function to delimit your auto-informers to sub types, for example, you want to use this auto-informer type but for different customers you need to make different messages, for that you can use \"context\", we can setup for you different contexts for this type of auto-informer and when you will creating new auto-informer, just set variable \"context\" with needed context id in request body, <a href=\"https://documenter.getpostman.com/view/8036399/UzXLzdj7#5b518eb2-80bd-4eec-b38f-87063a083a44\">this ID you can get by making API request from this example by the link</a></p>\n<p>This type of auto-informer is used to inform customers that, as of the date specified in the file, they have a debt specified in the file to the company specified in the file.</p>\n<p>In import file you must set next columns:</p>\n<ul>\n<li><strong>name</strong> - your company name, <strong>without special characters</strong></li>\n<li><strong>date</strong> - debt date, for example: <strong>03.11.2022 - format: DD.MM.YYYY</strong></li>\n<li><strong>price</strong> - debt sum , for example: <strong>2457.72 - notice what in price you must use dot instead of comma</strong></li>\n<li><strong>number</strong> - client's phone number in international format, for example: <strong>38066XXXXXX</strong></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"45842d02-0683-4561-9d9e-ce6bcd296d55","name":"Create type 0 with context","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","description":"csv comma-separated file in UTF-8 encoding","type":"file","value":null},{"key":"fileName","value":"example_autoinformer.csv","description":"Send here directly file name with extension csv - required","type":"text"},{"key":"autoInformerName","value":"Тест тип 0","description":"auto-informer name","type":"text"},{"key":"type","value":"0","type":"text","description":"ID of auto-informer type, for \"Combined\" set type: 0"},{"key":"context","value":"1","description":"id of context for auto-informer - optional","type":"text"}]},"url":"https://rc.streamtele.com/api/v1/autoinformer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 14:15:40 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"33-DM3YLcXCh8Au+PgqrImh78CUF7o\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"autoinformer_id\": 100500, // ID of newly created auto-informer, can be used to start this auto-informer\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"914c3e4e-6f32-4578-a73d-e5b6efeb6f3c"},{"name":"Play Audio","id":"5ce5d542-3c5c-458e-b828-a3536857b32e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>csv comma-separated file in UTF-8 encoding</p>\n","type":"file","value":null},{"key":"fileName","value":"example_autoinformer.csv","description":"<p>Send here directly file name with extension csv - required</p>\n","type":"text"},{"key":"autoInformerName","value":"Тест тип 1","description":"<p>auto-informer name</p>\n","type":"text"},{"key":"type","value":"1","type":"text","description":"<p>ID of auto-informer type, for \"Play Audio\" set type: 1</p>\n"},{"key":"audio_id","value":"156","type":"text","description":"<p>ID of audio file</p>\n"}]},"url":"https://rc.streamtele.com/api/v1/autoinformer","description":"<p><strong>Play Audio</strong> - that means what this auto-informer uses just prerecorded audio files, which you can upload to server used Audio API, this auto-informer has <strong>ID: 1</strong>, <a href=\"https://rc.streamtele.com/web/api/ainf/getaexamplefile_play_audio\">you can get example import CSV file for this type by this link</a></p>\n<p>To get <strong>audio_id</strong> you can use next <a href=\"https://documenter.getpostman.com/view/8036399/UzXLzdj7#fbe4f0db-c72c-4ade-bf53-b64a90d4283d\">link with example API request to list all available audio files</a> or you can use file_id received from <a href=\"https://documenter.getpostman.com/view/8036399/UzXLzdj7#9cec9612-760e-4a2b-bd09-66811bf6a430\">this example with audio file upload</a></p>\n<p>In import file you must set next column:</p>\n<ul>\n<li><strong>number</strong> - client's phone number in international format, for example: <strong>38066XXXXXX</strong></li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"8669d065-7a17-4683-9fdf-a9046562cc47","name":"Create type 1 - play audio","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","description":"csv comma-separated file in UTF-8 encoding","type":"file","value":null},{"key":"fileName","value":"example_autoinformer.csv","description":"Send here directly file name with extension csv - required","type":"text"},{"key":"autoInformerName","value":"Тест тип 1","description":"auto-informer name","type":"text"},{"key":"type","value":"1","type":"text","description":"ID of auto-informer type, for \"Play Audio\" set type: 1"},{"key":"audio_id","value":"156","type":"text","description":"ID of audio file"}]},"url":"https://rc.streamtele.com/api/v1/autoinformer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 14:16:08 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"33-Ja3mbSSXOZvgeZNMZIgVRW9TIj8\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"autoinformer_id\": 100500, // ID of newly created auto-informer, can be used to start this auto-informer\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"5ce5d542-3c5c-458e-b828-a3536857b32e"},{"name":"TTS(Text-To-Speech)","id":"30c013d9-9b9b-41ef-844d-6f8abe178c80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","description":"<p>csv comma-separated file in UTF-8 encoding</p>\n","type":"file","value":null},{"key":"fileName","value":"example_autoinformer_tts.csv","description":"<p>Send here directly file name with extension csv - required</p>\n","type":"text"},{"key":"autoInformerName","value":"Тест тип 2","description":"<p>auto-informer name</p>\n","type":"text"},{"key":"type","value":"2","type":"text","description":"<p>ID of auto-informer type, for \"TTS\" set type: 2</p>\n"}]},"url":"https://rc.streamtele.com/api/v1/autoinformer","description":"<p><strong>TTS(Text-To-Speech)</strong> - that means what this auto-informer uses Text-To-Speech functionality to generate voice from given text, that auto-informer has <strong>ID: 2</strong>, <a href=\"https://rc.streamtele.com/web/api/ainf/getaexamplefile_tts\">you can get example import CSV file for this type by this link</a></p>\n<p>In import file you must set next columns:</p>\n<ul>\n<li><strong>code</strong> - language code, for example: '<strong>uk-UA</strong>'</li>\n<li><strong>voice</strong> - voice ID, for example: '<strong>uk-UA-Wavenet-A</strong>'</li>\n<li><strong>text</strong> - text that needs to be voiced to the client, for example:Good day. You are greeted by RoboCall company.<br />  <em><strong>The maximum length of the message should not exceed 400 characters!</strong></em></li>\n<li><strong>number</strong> - client's phone number in international format, for example: <strong>38066XXXXXX</strong></li>\n</ul>\n<p>To get code and voice you can use next <a href=\"https://documenter.getpostman.com/view/8036399/UzXLzdj7#dcf02f41-ba63-4160-bd87-a5af65c5546b\">link with example API request for receiving available languages and voices</a></p>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"491d3792-c5c0-48eb-87b9-6e213fc2deea","name":"Create type 2 - TTS","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"file","description":"csv comma-separated file in UTF-8 encoding","type":"file","value":null},{"key":"fileName","value":"example_autoinformer_tts.csv","description":"Send here directly file name with extension csv - required","type":"text"},{"key":"autoInformerName","value":"Тест тип 2","description":"auto-informer name","type":"text"},{"key":"type","value":"2","type":"text","description":"ID of auto-informer type, for \"TTS\" set type: 2"}]},"url":"https://rc.streamtele.com/api/v1/autoinformer"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"autoinformer_id\": 100500, // ID of newly created auto-informer, can be used to start this auto-informer\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"30c013d9-9b9b-41ef-844d-6f8abe178c80"}],"id":"2f639632-5c11-4777-a6ba-9cb512b1fb24","description":"<p><strong>You can create 3 types of auto-informer:</strong><br />1 - <strong>Combined</strong> - that means what this auto-informer uses prerecorded audio files with combination with TTS, this type has <strong>ID: 0</strong>, <a href=\"https://rc.streamtele.com/web/api/ainf/getaexamplefile\">you can get example import CSV file for this type by this link</a>, this auto-informer has a additional function to delimit your auto-informers to sub types, for example, you want to use this auto-informer type but for different customers you need to make different messages, for that you can use \"context\", we can setup for you different contexts for this type of auto-informer and when you will creating new auto-informer, just set variable \"context\" with needed context id in request body, <a href=\"https://documenter.getpostman.com/view/8036399/UzXLzdj7#5b518eb2-80bd-4eec-b38f-87063a083a44\">this ID you can get by making API request from this example by the link</a><br />2 - <strong>Play Audio</strong> - that means what this auto-informer uses just prerecorded audio files, which you can upload to server used Audio API, this auto-informer has <strong>ID: 1</strong>, <a href=\"https://rc.streamtele.com/web/api/ainf/getaexamplefile_play_audio\">you can get example import CSV file for this type by this link</a><br />3 - <strong>TTS</strong> - that means what this auto-informer uses Text-To-Speech functionality to generate voice from given text, that auto-informer has <strong>ID: 2</strong>, <a href=\"https://rc.streamtele.com/web/api/ainf/getaexamplefile_tts\">you can get example import CSV file for this type by this link</a></p>\n<p>When you creates new auto informer with one of this types, you must set its type ID in required variable \"type\" in request body</p>\n<p><em><strong>Important note:</strong></em></p>\n<ul>\n<li><strong>CSV</strong> file for import must be <strong>comma delimited with UTF-8 encoding</strong></li>\n<li>Column \"<strong>number</strong>\" must contains phone numbers in international format without \"+\" sign and must be in text format, is you will use number format, system will see phone numbers as incorrect and import will be aborted</li>\n<li>Examples of import files for all those auto-informer types you can get by the links above</li>\n<li><em><strong>Before you can use those auto-informer types you must contact with yours Stream Telecom manager to discuss your auto-informer setup for your needs and than you'll can use its functionality</strong></em></li>\n</ul>\n","_postman_id":"2f639632-5c11-4777-a6ba-9cb512b1fb24"},{"name":"start/stop auto-informer","item":[{"name":"Start auto-informer","id":"8fda7b21-3daa-46b0-95ed-6c149b451f13","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://rc.streamtele.com/api/v1/autoinformer/start/:auto_informer_id","description":"<p><em><strong>Important note:</strong></em> <strong>You can't start auto-informer if its file_status is \"pending\" or \"failed\"</strong><br />\"<strong>pending</strong>\" - means what this import file still in processing on backend<br />\"<strong>failed</strong>\" - means what this import file is failed to load into DB, this status can have couple reasons as:</p>\n<ul>\n<li>file have wrong encoding, not <strong>comma separated UTF-8</strong></li>\n<li>system can't read data from this file, for example phone number was saved with format \"number\" instead of \"text\" and for system in file its view will be like : <strong>380������ or 38066+E11</strong></li>\n</ul>\n<p>Or if auto-informer <strong>state</strong> already have value: <strong>running or done</strong></p>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer","start",":auto_informer_id"],"host":["rc","streamtele","com"],"query":[],"variable":[{"id":"0f64ae94-e625-4f75-bf2c-abfd9fd01dff","description":{"content":"<p>ID of auto-informer which you want to start</p>\n","type":"text/plain"},"type":"any","value":null,"key":"auto_informer_id"}]}},"response":[{"id":"d2f833b0-4c2a-4ef7-bce1-7e4c12baca3a","name":"Start auto-informer","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://rc.streamtele.com/api/v1/autoinformer/start/:auto_informer_id","protocol":"https","host":["rc","streamtele","com"],"path":["api","v1","autoinformer","start",":auto_informer_id"],"variable":[{"key":"auto_informer_id","value":null,"description":"ID of auto-informer which you want to start"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 13:19:03 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"42-dxAsbfBCmcgZiT009zp4C8CW3kY\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"message\": \"Autoinformer 100500 started\", // Just message\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"8fda7b21-3daa-46b0-95ed-6c149b451f13"},{"name":"Stop auto-informer","id":"8060ec9b-8909-4ad7-b1e6-b8790121a51c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://rc.streamtele.com/api/v1/autoinformer/stop/:auto_informer_id","description":"<p><em><strong>Important note:</strong></em> <strong>You can't stop auto-informer if its \"state\" is \"not_started\" or \"done\"</strong></p>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer","stop",":auto_informer_id"],"host":["rc","streamtele","com"],"query":[],"variable":[{"description":{"content":"<p>ID of auto-informer which you want to stop</p>\n","type":"text/plain"},"type":"any","value":null,"key":"auto_informer_id"}]}},"response":[{"id":"0c84b625-2111-4c3b-9bb7-ef3d5949caf8","name":"Stop auto-informer","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://rc.streamtele.com/api/v1/autoinformer/stop/:auto_informer_id","protocol":"https","host":["rc","streamtele","com"],"path":["api","v1","autoinformer","stop",":auto_informer_id"],"variable":[{"key":"auto_informer_id","value":null,"description":"ID of auto-informer which you want to start"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 13:19:09 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"42-iLyuvQeIYG3PrPfOv0D3yw4Xxaw\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"message\": \"Autoinformer 100500 stopped\", // Just message\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"8060ec9b-8909-4ad7-b1e6-b8790121a51c"}],"id":"2a35ca8a-53dc-429b-bfb5-27b292d967a7","description":"<p><strong>After start calls are made from 08:00 to 20:00, from Monday to Friday.</strong></p>\n<p>After auto-informer is finished, you can get access to detailed statistics(by api request or in <a href=\"https://desktop.postman.com/?desktopVersion=9.31.0&amp;userId=8036399&amp;teamId=485780\">web interface</a>) to evaluate the effectiveness.</p>\n","_postman_id":"2a35ca8a-53dc-429b-bfb5-27b292d967a7"},{"name":"List all auto-informers","id":"18a69e39-0655-441e-9493-13d68f2b9673","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rc.streamtele.com/api/v1/autoinformer","description":"<h3 id=\"returns-list-of-all-user-auto-informers\"><strong>Returns list of all user auto-informers</strong></h3>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"da834cbf-bc8f-48a0-b5dd-b404536763d3","name":"List all auto-informers","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://rc.streamtele.com/api/v1/autoinformer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 09:04:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1083"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"43b-usWw0WNcqdUEVuz/i/EgiT/foHE\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"autoinformers\": [ // Array with all auto-informers\n        {\n            \"id\": 100500, // auto-informer id\n            \"name\": \"Тест тип 2\", // auto-informer name\n            \"state\": \"not_started\", // auto-informer state: not_started, running, stopped, done\n            \"created_at\": \"28.03.2023, 09:56:20\", // when auto-informer was created\n            \"updated_at\": \"28.03.2023, 09:56:20\", // when auto-informer was updated\n            \"start_at\": null, // when auto-informer was started\n            \"stopped_at\": null, // when auto-informer was stopped\n            \"file_name\": \"example_autoinformer_tts.csv\", // auto-informer import file name\n            \"file_status\": \"loaded\", // auto-informer import file status: pending, loaded, failed\n            \"rows\": 1, // rows in auto-informer import file\n            \"procentage\": 0, // how much percentage was finished\n            \"type\": 2 // auto-informer type id: 0 - combined, 1 - play audio, 2 - tts\n        }\n    ],\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"18a69e39-0655-441e-9493-13d68f2b9673"},{"name":"Get auto-informer data with short stats by id","id":"7dabc45a-8777-4661-a50f-efe6e034079b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rc.streamtele.com/api/v1/autoinformer/:auto_informer_id","description":"<h3 id=\"returns-info-for-specific-auto-informer-by-its-id-with-short-statistics\"><strong>Returns info for specific auto-informer by its id with short statistics</strong></h3>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer",":auto_informer_id"],"host":["rc","streamtele","com"],"query":[],"variable":[{"id":"eacd4837-45c1-4e24-8888-ce6c80969197","description":{"content":"<p>ID of auto-informer for which you want to get data</p>\n","type":"text/plain"},"type":"any","value":null,"key":"auto_informer_id"}]}},"response":[{"id":"93f1edd8-c5ce-4e9f-a48f-8b61e7e45942","name":"Get auto-informer data with short stats by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://rc.streamtele.com/api/v1/autoinformer/:auto_informer_id","protocol":"https","host":["rc","streamtele","com"],"path":["api","v1","autoinformer",":auto_informer_id"],"variable":[{"key":"auto_informer_id","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 09:07:46 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"433"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"1b1-W47rsEyGBO7XmyNRRb++SL8bP4k\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"autoinformer\": { \n            \"id\": 100500, // auto-informer id\n            \"name\": \"Тест тип 2\", // auto-informer name\n            \"state\": \"not_started\", // auto-informer state: not_started, running, stopped, done\n            \"created_at\": \"28.03.2023, 09:56:20\", // when auto-informer was created\n            \"updated_at\": \"28.03.2023, 09:56:20\", // when auto-informer was updated\n            \"start_at\": null, // when auto-informer was started\n            \"stopped_at\": null, // when auto-informer was stopped\n            \"file_name\": \"example_autoinformer_tts.csv\", // auto-informer import file name\n            \"file_status\": \"loaded\", // auto-informer import file status: pending, loaded, failed\n            \"rows\": 1, // rows in auto-informer import file\n            \"procentage\": 0, // how much percentage was finished\n            \"type\": 2, // auto-informer type id: 0 - combined, 1 - play audio, 2 - tts\n            \"context\": null // context name\n        },\n    \"stats\": {\n        \"called_out\": 0, // calls processed\n        \"answer\": 0, // calls answered\n        \"no_answer\": 0, // calls with no answer \n        \"busy\": 0, // calls where customer is busy\n        \"congestion\": 0, // congestion, system tried to make a call but failed\n        \"error\": 0, // errors, system can't make call\n        \"price\": 0, // price for that auto-informer, calls in error and congestion states not included in calculation\n        \"currency\": \"UAH\" // currency of price calculation \n    },\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"7dabc45a-8777-4661-a50f-efe6e034079b"},{"name":"Get available user contexts","id":"a7b8f2e7-3c0b-4cdf-b3d8-9b2fa6870375","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rc.streamtele.com/api/v1/autoinformer/contexts","description":"<h3 id=\"returns-available-user-contexts-which-can-be-used-when-creating-new-combined-auto-informer\"><strong>Returns available user contexts which can be used when creating new \"combined\" auto informer</strong></h3>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer","contexts"],"host":["rc","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"c19ed591-a930-46b2-870b-5048f223e7b4","name":"Get available user contexts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":"https://rc.streamtele.com/api/v1/autoinformer/contexts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.20.1"},{"key":"Date","value":"Tue, 28 Mar 2023 10:59:38 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"196"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"c4-uSgCProH1mccGK73NzlGEDSBjUk\""},{"key":"Strict-Transport-Security","value":"max-age=15768000"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true, //Is action was successful or not\n    \"contexts\": [ // Array with user contexts, can be [] if not setted up for user\n        {\n            \"id\": 1, // context id - use it when creating combined auto-informer with context\n            \"name\": \"Информирование\" // context name\n        }\n    ],\n    \"error\": null // In cause of error will contain error desc\n}"}],"_postman_id":"a7b8f2e7-3c0b-4cdf-b3d8-9b2fa6870375"},{"name":"Get auto-informer report file by id","id":"c59d0e76-d3c1-4e21-bb06-12b22696aaee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://rc.streamtele.com/api/v1/autoinformer/report/:auto_informer_id","description":"<h3 id=\"returns-xlsx-file-with-auto-informer-full-report-for-each-call\"><strong>Returns xlsx file with auto-informer full report for each call</strong></h3>\n","urlObject":{"protocol":"https","path":["api","v1","autoinformer","report",":auto_informer_id"],"host":["rc","streamtele","com"],"query":[],"variable":[{"id":"1d7e638e-14c1-4a15-950b-a7bd7558e450","description":{"content":"<p>ID of auto-informer for which you want to get report</p>\n","type":"text/plain"},"type":"any","value":null,"key":"auto_informer_id"}]}},"response":[{"id":"22b508e8-173e-4222-8325-007a0e5a658d","name":"Get auto-informer report file by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer ACCESS_TOKEN","type":"text"}],"url":{"raw":"https://rc.streamtele.com/api/v1/autoinformer/report/:auto_informer_id","protocol":"https","host":["rc","streamtele","com"],"path":["api","v1","autoinformer","report",":auto_informer_id"],"variable":[{"key":"auto_informer_id","value":null,"description":"ID of auto-informer for which you want to get report"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c59d0e76-d3c1-4e21-bb06-12b22696aaee"}],"id":"7c074f32-2a47-46e9-874d-bc42f2b76685","description":"<p>Calls are made from 08:00 to 20:00, from Monday to Friday. After auto-informer is finished, you can get access to detailed statistics(by api request or in <a href=\"https://desktop.postman.com/?desktopVersion=9.31.0&amp;userId=8036399&amp;teamId=485780\">web interface</a>) to evaluate the effectiveness. auto-informers for debt are very popular. Often people simply forget to make a payment on time. Using calls as an auto-informer is beneficial in terms of price and time. After all, the system has an intuitive interface. The advantages of the auto-informer for calling clients based on the RoboCall system are:</p>\n<ol>\n<li>reliability</li>\n<li>efficiency</li>\n<li>low financial costs</li>\n<li>the possibility of analyzing the result based on actual statistical data</li>\n</ol>\n<p>Practice clearly shows a 20% reduction in non-payment of debts after the start of using the RoboCall auto-informer, and this is a good indicator for business.</p>\n","_postman_id":"7c074f32-2a47-46e9-874d-bc42f2b76685"}],"id":"4cc600e8-3e90-4ccf-801f-dbe4f7dc04f4","description":"<img src=\"https://content.pstmn.io/5bac755b-ecfb-49b8-82ee-40209712036c/cm9ib2NhbGwgMi5wbmc=\" />\n\n<p><strong>Auto-informer for calling clients</strong><br />One of the rules of successful business is close communication with clients, which is implemented on the basis of modern means: e-mail, messengers, mobile and landline telephone communication, etc. As practice shows, automatic telephone calls are a very effective means of informing clients. With their help, it is possible to work with a large base of clients in a short period of time at a minimum of costs and to convey to them information of a different nature - from the announcement of a promotion to a reminder about the timely payment of a loan or installments.</p>\n<p><strong>RoboCALL is your auto informant</strong><br />The system of automatic calling of clients RoboCall can be used as an auto-informer. Everything you need to work with it:</p>\n<ol>\n<li>load the customer database</li>\n<li>start calls</li>\n</ol>\n<p>Calls are made from 08:00 to 20:00, from Monday to Friday. After auto-informer is finished, you can get access to detailed statistics(by api request or in <a href=\"https://rc.streamtele.com/\">web interface</a>) to evaluate the effectiveness. auto-informers for debt are very popular. Often people simply forget to make a payment on time. Using calls as an auto-informer is beneficial in terms of price and time. After all, the system has an intuitive interface. The advantages of the auto-informer for calling clients based on the RoboCall system are:</p>\n<ol>\n<li>reliability</li>\n<li>efficiency</li>\n<li>low financial costs</li>\n<li>the possibility of analyzing the result based on actual statistical data</li>\n</ol>\n<p>Practice clearly shows a 20% reduction in non-payment of debts after the start of using the RoboCall auto-informer, and this is a good indicator for business.</p>\n","_postman_id":"4cc600e8-3e90-4ccf-801f-dbe4f7dc04f4"}],"id":"fb8865d5-4c18-4c05-b750-d3227a5011c9","_postman_id":"fb8865d5-4c18-4c05-b750-d3227a5011c9","description":""},{"name":"Stream CallCheck v1.0","item":[{"name":"Авторизація","item":[{"name":"Login","id":"aa31a202-8cd4-4f98-8bee-0c705cf2699e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"alice@example.com\",\n    \"password\":\"12345\"\n}","options":{"raw":{"language":"json"}}},"url":"https://callcheck.streamtele.com/auth/login","description":"<p><strong>Отримання JWT</strong></p>\n<p>Для отримання JWT, необхідно надіслати запит з <strong>email</strong> та <strong>password</strong>, які ви отримали від нашої компанії.</p>\n<p>Після успішного отримання JWT, який міститься в полі <strong>access_token</strong>, ви зможете надсилати запити до нашого API.</p>\n<hr />\n<p><strong>УВАГА:</strong><br /><strong>access_token</strong> не є безстроковим, тому його потрібно перезавантажувати час від часу. Час (в секундах), протягом якого JWT активний, вказується в полі <strong>expires_in</strong>.</p>\n","auth":{"type":"noauth","isInherited":true,"source":{"_postman_id":"922bc04a-22b7-483d-8116-3be74d855c17","id":"922bc04a-22b7-483d-8116-3be74d855c17","name":"Авторизація","type":"folder"}},"urlObject":{"protocol":"https","path":["auth","login"],"host":["callcheck","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"29af1df6-cbae-432d-902b-6457c44b66fc","name":"Auth","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"email\":\"alice@example.com\",\n    \"password\":\"12345\"\n}","options":{"raw":{"language":"json"}}},"url":"https://callcheck.streamtele.com/auth/login"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHdwOlwvXC9jYWxsY2hlY2suc3RyZWFtdGVsZS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNjAzODkzNjAwLCJleHAiOjE2MDM4OTcyMDAsIm5iZiI6MTYwMzc5MzYwMCwianRpIjoiQzRIdkdHdXV2QWdmak8ycSIsInN1YiI6MywicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSJ9.cfbaVV-4nNi56C2vvQd2e-OOVnnWdXncDOpSE5mqnoI\",\n    \"token_type\": \"bearer\",\n    \"expires_in\": 3600\n}"}],"_postman_id":"aa31a202-8cd4-4f98-8bee-0c705cf2699e"},{"name":"Refresh","id":"5a2f1888-a710-48ea-b4eb-2a9fadf15679","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-length":true,"host":true,"user-agent":true,"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://callcheck.streamtele.com/auth/refresh","description":"<p>Оновлення зв'язки JWT токенів для доступу</p>\n","urlObject":{"protocol":"https","path":["auth","refresh"],"host":["callcheck","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"46ddaf2d-6a08-4988-bb68-a8bca5e4a0b6","name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://callcheck.streamtele.com/auth/refresh"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"access_token\": \"string\",\n    \"token_type\": \"string\",\n    \"expires_in\": 0\n}"},{"id":"42ba6a81-a3a1-4e0b-b202-8dc4aa195bd2","name":"401","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://callcheck.streamtele.com/auth/refresh"},"code":401,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"api\": \"string\",\n    \"error\": {\n        \"http_code\": 0,\n        \"message\": \"string\"\n    }\n}"}],"_postman_id":"5a2f1888-a710-48ea-b4eb-2a9fadf15679"},{"name":"LogOut","id":"d8bb6005-9f3a-4da2-bbb1-72d561082a2f","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true,"content-length":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://callcheck.streamtele.com/auth/logout","description":"<p>Скидання JWT токенів</p>\n","urlObject":{"protocol":"https","path":["auth","logout"],"host":["callcheck","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"1298a19e-b420-46c9-bb1e-1ea48f349fe8","name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://callcheck.streamtele.com/auth/logout"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"string\"\n}"},{"id":"d3add58a-3dd1-4098-b435-c920fa7205fe","name":"401","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://callcheck.streamtele.com/auth/logout"},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"api\": \"string\",\n    \"error\": {\n        \"http_code\": 0,\n        \"message\": \"string\"\n    }\n}"}],"_postman_id":"d8bb6005-9f3a-4da2-bbb1-72d561082a2f"}],"id":"922bc04a-22b7-483d-8116-3be74d855c17","auth":{"type":"noauth","isInherited":false},"event":[{"listen":"prerequest","script":{"id":"6d35226d-c159-4880-a6c5-f7a0557b897d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"653979b9-d812-444a-b6d2-361e976d9b72","type":"text/javascript","exec":[""]}}],"_postman_id":"922bc04a-22b7-483d-8116-3be74d855c17","description":""},{"name":"Завдання для верифікації","item":[{"name":"Створити","id":"85d352a2-d9d5-43d3-8b0c-f5f0e98aa50b","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"host":true,"user-agent":true,"accept":true}},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"phone\": \"string\",\n  \"callback_url\": \"string\"\n}"},"url":"https://callcheck.streamtele.com/api/v1/task","description":"<p>Створення завдання на ініціацію виклику</p>\n","urlObject":{"protocol":"https","path":["api","v1","task"],"host":["callcheck","streamtele","com"],"query":[],"variable":[]}},"response":[{"id":"3f9e45f0-ba6d-48a9-bcd8-9ca759d58bc3","name":"200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"phone\": \"string\",\n  \"callback_url\": \"string\"\n}"},"url":"https://callcheck.streamtele.com/api/v1/task"},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"type\": \"string\",\n        \"id\": \"string\",\n        \"attributes\": {\n            \"state\": \"string\",\n            \"phone\": \"string\",\n            \"callback_url\": \"string\",\n            \"ivr_answer\": \"string\",\n            \"is_called\": true,\n            \"is_callback_sent\": true,\n            \"is_error_happened\": true,\n            \"error_desc\": \"string\",\n            \"created_at\": \"string\",\n            \"updated_at\": \"string\"\n        }\n    }\n}"},{"id":"0e30b8d9-99fa-49c3-9315-4e3c1b1f0c6e","name":"400/401/403","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"phone\": \"string\",\n  \"callback_url\": \"string\"\n}"},"url":"https://callcheck.streamtele.com/api/v1/task"},"status":"400/401/403","_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"api\": \"string\",\n    \"error\": {\n        \"http_code\": 0,\n        \"message\": \"string\"\n    }\n}"}],"_postman_id":"85d352a2-d9d5-43d3-8b0c-f5f0e98aa50b"},{"name":"Отримати","id":"aac6745a-06f9-4750-8a21-ea15e847d26b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":"https://callcheck.streamtele.com/api/v1/task/:id","description":"<p>Отримання інформації про завдання за id</p>\n","urlObject":{"protocol":"https","path":["api","v1","task",":id"],"host":["callcheck","streamtele","com"],"query":[],"variable":[{"type":"any","value":"ID завдання","key":"id"}]}},"response":[{"id":"a53e2c34-4f2f-4190-ae89-636a2588a2e7","name":"200","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://callcheck.streamtele.com/api/v1/task/:id","protocol":"https","host":["callcheck","streamtele","com"],"path":["api","v1","task",":id"],"variable":[{"key":"id","value":""}]}},"code":200,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"data\": {\n    \"type\": \"string\",\n    \"id\": \"string\",\n    \"attributes\": {\n      \"state\": \"string\",\n      \"phone\": \"string\",\n      \"callback_url\": \"string\",\n      \"ivr_answer\": \"string\",\n      \"is_called\": true,\n      \"is_callback_sent\": true,\n      \"is_error_happened\": true,\n      \"error_desc\": \"string\",\n      \"created_at\": \"string\",\n      \"updated_at\": \"string\"\n    }\n  }\n}"},{"id":"9e74b5ff-92d6-4e58-823b-f9b680aaa0f3","name":"401/404","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"https://callcheck.streamtele.com/api/v1/task/:id","protocol":"https","host":["callcheck","streamtele","com"],"path":["api","v1","task",":id"],"variable":[{"key":"id","value":""}]}},"status":"401/404","_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"api\": \"string\",\n    \"error\": {\n        \"http_code\": 0,\n        \"message\": \"string\"\n    }\n}"}],"_postman_id":"aac6745a-06f9-4750-8a21-ea15e847d26b"}],"id":"d234a2ab-a71e-4b71-836a-6c366174a099","description":"<p>Після створення дзвінка буде ініційовано запит на заданий callback.  </p>\n<p>Після відповіді користувача (наприклад, вибір 1 в IVR або іншої цифри) ми відправимо на вказаний callback POST-запит (в форматі JSON):</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": {\n    \"type\": \"string\",\n    \"id\": \"string\",\n    \"attributes\": {\n      \"state\": \"string\",\n      \"phone\": \"string\",\n      \"callback_url\": \"string\",\n      \"ivr_answer\": \"string\",\n      \"is_called\": true,\n      \"is_callback_sent\": true,\n      \"is_error_happened\": true,\n      \"error_desc\": \"string\",\n      \"created_at\": \"string\",\n      \"updated_at\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n<p><strong>УВАГА:</strong><br />Якщо сервер, на якому розташований callback, не відповідає HTTP-статусом 200, ми надішлемо повторний запит. Така схема робить 5 спроб відправити, після чого припиняє відправку.</p>\n<h3 id=\"можливі-значення-для-state-завдання-task-та-їх-значення\">Можливі значення для <strong>state</strong> завдання (task) та їх значення:</h3>\n<ul>\n<li><p><strong>new</strong> — Завдання тільки що було створено.</p>\n</li>\n<li><p><strong>in_processing</strong> — Завдання взято в обробку для ініціації дзвінка.</p>\n</li>\n<li><p><strong>rejected</strong> — Користувач відхилив дзвінок.</p>\n</li>\n<li><p><strong>no_pickup</strong> — Користувач не відповів на дзвінок.</p>\n</li>\n<li><p><strong>done</strong> — Завдання завершено успішно.</p>\n</li>\n<li><p><strong>error</strong> — Сталася помилка, наприклад, передано некоректний номер телефону або не вдалося ініціювати дзвінок.</p>\n</li>\n<li><p><strong>congestion</strong> — Недостаток каналів для дзвінків.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"014a5d78-a015-4c8f-822e-7e048db64c5b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"a5f65574-b8d6-4b6b-b1f2-a0c975e00ef7","type":"text/javascript","exec":[""]}}],"_postman_id":"d234a2ab-a71e-4b71-836a-6c366174a099"}],"id":"f7968ecc-081d-47c4-9f86-a1dbde651dda","description":"<p><strong>Корисні посилання для роботи з API:</strong></p>\n<ul>\n<li><strong>Опис API</strong>: <a href=\"https://callcheck.streamtele.com/api/v1/swagger\">Документація API на Swagger</a></li>\n</ul>\n<hr />\n<p><strong>ВАЖЛИВО!</strong></p>\n<p>Рекомендуємо ознайомитися з описом API, оскільки це дозволить виконувати всі зазначені запити безпосередньо через інтерфейс <strong>Swagger UI</strong>, що значно спростить процес інтеграції та тестування.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"event":[{"listen":"prerequest","script":{"id":"16e53a08-c8d6-42a4-92a0-a59be9d65098","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0b402d60-d978-4fcf-b07f-611cbbc54ef5","type":"text/javascript","exec":[""]}}],"_postman_id":"f7968ecc-081d-47c4-9f86-a1dbde651dda"},{"name":"Viber","item":[{"name":"Отправить сообщение","id":"f1ee8971-a928-43fb-a1a0-dcd5162076bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"https://62.67.222.146:8002/api?ani=TestAI&dnis=38063XXXXXXX&username=Loggin&password=Pass&serviceType=3452&command=submit&im-channels=Viber&im-message=Тестове повідомлення&im-ttl=30&message-purpose=transaction ","urlObject":{"protocol":"https","port":"8002","path":["api"],"host":["62","67","222","146"],"query":[{"description":{"content":"<p>Зареєстроване AI (Альфа ім'я)</p>\n","type":"text/plain"},"key":"ani","value":"TestAI"},{"description":{"content":"<p>Номер телефону отримувача</p>\n","type":"text/plain"},"key":"dnis","value":"38063XXXXXXX"},{"description":{"content":"<p>Логін (видається під час створення облікового запису)</p>\n","type":"text/plain"},"key":"username","value":"Loggin"},{"description":{"content":"<p>Пароль (видається під час створення облікового запису)</p>\n","type":"text/plain"},"key":"password","value":"Pass"},{"description":{"content":"<p>Видається під час створення облікового запису</p>\n","type":"text/plain"},"key":"serviceType","value":"3452"},{"description":{"content":"<p>За замовчуванням submit</p>\n","type":"text/plain"},"key":"command","value":"submit"},{"description":{"content":"<p>За замовчуванням Viber</p>\n","type":"text/plain"},"key":"im-channels","value":"Viber"},{"description":{"content":"<p>Текст повідомлення</p>\n","type":"text/plain"},"key":"im-message","value":"Тестове повідомлення"},{"description":{"content":"<p>В секундах вказуємо: 30, 50, 70...</p>\n","type":"text/plain"},"key":"im-ttl","value":"30"},{"description":{"content":"<p>promotion або transaction вказуємо в залежності від типу повідомлення</p>\n","type":"text/plain"},"key":"message-purpose","value":"transaction "}],"variable":[]}},"response":[],"_postman_id":"f1ee8971-a928-43fb-a1a0-dcd5162076bd"}],"id":"9ba082ad-7720-4e84-a84e-01ec1cca035b","_postman_id":"9ba082ad-7720-4e84-a84e-01ec1cca035b","description":""},{"name":"HTTP error codes:","item":[],"id":"2fe38180-1c24-4ab8-81eb-5e03ae394fec","description":"<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><b>Error Code</b></th>\n<th><b>Meaning</b></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>Bad Request -- Your request is invalid.</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized -- Your API key is wrong.</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden -- The data requested is hidden for administrators only.</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found -- The specified data could not be found.</td>\n</tr>\n<tr>\n<td>405</td>\n<td>Method Not Allowed -- You tried to access a data with an invalid method.</td>\n</tr>\n<tr>\n<td>406</td>\n<td>Not Acceptable -- You requested a format that isn't json.</td>\n</tr>\n<tr>\n<td>410</td>\n<td>Gone -- The data requested has been removed from our servers.</td>\n</tr>\n<tr>\n<td>418</td>\n<td>I'm a teapot.</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too Many Requests -- You're requesting too many data! Slow down!</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error -- We had a problem with our server. Try again later.</td>\n</tr>\n<tr>\n<td>503</td>\n<td>Service Unavailable -- We're temporarily offline for maintenance. Please try again later.</td>\n</tr>\n</tbody>\n</table>\n</div>","auth":{"type":"noauth","isInherited":false},"_postman_id":"2fe38180-1c24-4ab8-81eb-5e03ae394fec"}],"event":[{"listen":"prerequest","script":{"id":"f206fd93-839b-4190-98fe-ec282878f4f2","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"101d796c-6a58-4c0e-ba05-7e1e073c10fa","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"localhost:3000"}]}