{"info":{"_postman_id":"96e9f947-83af-4c46-84c7-ef051bdea351","name":"Selarti public api","description":"<html><head></head><body><p>🇬🇧 To get an API key, click on your avatar in the panel, then get api key. The key will be sent to telegrams</p>\n<p>🇷🇺 Чтобы получить API ключ, нажмите на свой аватар в панели, затем get api key. Ключ будет отправлен в telegram</p>\n<p>🇺🇿 API kalitini olish uchun panelda o'z avataringizni bosing, keyin API kalitini oling. Kalit telegramga yuboriladi.</p>\n<img src=\"https://content.pstmn.io/9cfbb482-6d0d-41aa-9079-0c5703898170/aW1hZ2UucG5n\" width=\"382\" height=\"205\">\n\n<h2 id=\"🔐-authentication-flow--процесс-аутентификации--autentifikatsiya-jarayoni\">🔐 Authentication Flow / Процесс аутентификации / Autentifikatsiya jarayoni</h2>\n<p><strong>🇬🇧 For</strong> <strong><code>/api/1.1/wf/</code></strong> <strong>endpoints:</strong></p>\n<ol>\n<li><p>First, call <code>/api/1.1/wf/auth</code> with your API key</p>\n</li>\n<li><p>Use the returned bearer token for subsequent requests</p>\n</li>\n<li><p>Add token to <code>Authorization: Bearer {token}</code> header</p>\n</li>\n</ol>\n<p><strong>🇷🇺 Для</strong> <strong><code>/api/1.1/wf/</code></strong> <strong>эндпоинтов:</strong></p>\n<ol>\n<li><p>Сначала вызовите <code>/api/1.1/wf/auth</code> с вашим API ключом</p>\n</li>\n<li><p>Используйте полученный bearer токен для последующих запросов</p>\n</li>\n<li><p>Добавьте токен в заголовок <code>Authorization: Bearer {token}</code></p>\n</li>\n</ol>\n<p><strong>🇺🇿</strong> <strong><code>/api/1.1/wf/</code></strong> <strong>endpointlar uchun:</strong></p>\n<ol>\n<li><p>Avval <code>/api/1.1/wf/auth</code> ni API kalitingiz bilan chaqiring</p>\n</li>\n<li><p>Qaytgan bearer tokenni keyingi so'rovlar uchun ishlating</p>\n</li>\n<li><p>Tokenni <code>Authorization: Bearer {token}</code> sarlavhasiga qo'shing</p>\n</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"38595362","collectionId":"96e9f947-83af-4c46-84c7-ef051bdea351","publishedId":"2sAXqwZL69","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-09-26T07:58:48.000Z"},"item":[{"name":"Authentication","item":[{"name":"auth","id":"af64fd7d-d539-4a9c-af09-bc7bc6509352","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"key\":\"\"}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/auth","urlObject":{"path":["api","1.1","wf","auth"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"af64fd7d-d539-4a9c-af09-bc7bc6509352"}],"id":"0ddbcab5-6bb2-4fb0-bcd5-6bb06c6e8ea3","description":"<p><strong>Base URL:</strong> <a href=\"https://selarti.com\">https://selarti.com</a></p>\n","_postman_id":"0ddbcab5-6bb2-4fb0-bcd5-6bb06c6e8ea3"},{"name":"Data Retrieval","item":[{"name":"get gpt version","id":"ea2ac304-10b6-47f3-b2c9-fba02d31a125","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://selarti.com/api/1.1/wf/get_gpt_version","description":"<p>🇬🇧 Retrieving a list of all available AI models</p>\n<p>🇷🇺 Получение списка всех доступных моделей ИИ</p>\n","urlObject":{"path":["api","1.1","wf","get_gpt_version"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[{"id":"5dc5a206-17ed-4ace-91cc-825ede831991","name":"get gpt version","originalRequest":{"method":"GET","header":[],"url":"https://selarti.com/api/1.1/wf/get_gpt_version"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"response\": {\n        \"gpt-version\": [\n            \"gpt-5\",\n            \"gpt-5-mini\",\n            \"gpt-5-nano\",\n            \"gpt-4.1\",\n            \"gpt-4.1-mini\",\n            \"gpt-4.1-nano\",\n            \"gpt-4.5 preview\",\n            \"gpt-o3\",\n            \"gpt-o3-deep-research\",\n            \"gpt-o4-mini\",\n            \"gpt-o4-mini-deep-research\",\n            \"gpt-o3-pro\",\n            \"gpt-o1-pro\",\n            \"gpt-o1\",\n            \"gpt-o3-mini\",\n            \"gpt-4o\",\n            \"gpt-4o-mini\",\n            \"gpt-4-turbo\",\n            \"gpt-4-turbo-preview\"\n        ]\n    }\n}"}],"_postman_id":"ea2ac304-10b6-47f3-b2c9-fba02d31a125"},{"name":"get ai","id":"6e9b8811-4290-487d-ac52-5722df30b256","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"https://selarti.com/api/1.1/wf/get_ai?company_id={company_id}&ai_id={ai_id}","description":"<p>🇬🇧 Getting AI settings</p>\n<p>🇷🇺 Получение настроек ИИ</p>\n","urlObject":{"path":["api","1.1","wf","get_ai"],"host":["https://selarti.com"],"query":[{"key":"company_id","value":"{company_id}"},{"description":{"content":"<p>optional. if empty, then get all ai of this company</p>\n","type":"text/plain"},"key":"ai_id","value":"{ai_id}"}],"variable":[]}},"response":[{"id":"d423b28a-3d09-432f-9f98-fdd3ad77fff3","name":"get ai","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://selarti.com/api/1.1/wf/get_ai?company_id={company_id}&ai_id={ai_id}","host":["https://selarti.com"],"path":["api","1.1","wf","get_ai"],"query":[{"key":"company_id","value":"{company_id}"},{"key":"ai_id","value":"{ai_id}","description":"optional. if empty, then get all ai of this company"}]}},"code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"response\": {\n        \"ai\": [\n            {\n                \"company\": \"1758004959765x760505718290309100\",\n                \"name\": \"AI Name\",\n                \"start_message\": \"{Hello | Hi| Wassup}\",\n                \"work option\": \"Incoming communication\",\n                \"instruction_history\": [\n                    \"1758898258280x851693232977870800\",\n                    \"1758894473695x787132469676605400\"\n                ],\n                \"Modified Date\": 1758898474068,\n                \"Created Date\": 1758898259032,\n                \"reasoning_effort\": \"medium\",\n                \"top_p\": 1,\n                \"functions\": [\n                    \"1758891292333x930006135988551700\"\n                ],\n                \"verbosity\": \"medium\",\n                \"temperature\": 1,\n                \"_id\": \"1758898258680x191507398022397950\",\n                \"version\": \"gpt-5\",\n                \"Created By\": \"1724260419868x663599964633111400\"\n            }\n        ]\n    }\n}"}],"_postman_id":"6e9b8811-4290-487d-ac52-5722df30b256"},{"name":"get task","id":"5926644c-6b2c-4c3a-90fd-af891a0f1e7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"https://selarti.com/api/1.1/wf/get_task?company_id={company_id}&task_id={task_id}","urlObject":{"path":["api","1.1","wf","get_task"],"host":["https://selarti.com"],"query":[{"key":"company_id","value":"{company_id}"},{"description":{"content":"<p>optional. if empty, then get all task of this company</p>\n","type":"text/plain"},"key":"task_id","value":"{task_id}"}],"variable":[]}},"response":[],"_postman_id":"5926644c-6b2c-4c3a-90fd-af891a0f1e7e"},{"name":"get company","id":"9f503a1f-b7d2-4952-828a-75ac333e585c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"https://selarti.com/api/1.1/wf/get_company?company_id={company_id}","urlObject":{"path":["api","1.1","wf","get_company"],"host":["https://selarti.com"],"query":[{"description":{"content":"<p>optional. if empty, then get all company</p>\n","type":"text/plain"},"key":"company_id","value":"{company_id}"}],"variable":[]}},"response":[],"_postman_id":"9f503a1f-b7d2-4952-828a-75ac333e585c"},{"name":"get thread","id":"82e75107-2d0f-4f58-83a8-588ed125c77f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"https://selarti.com/api/1.1/wf/get_thread?external_id={external_id}&limit=20&offset=0","urlObject":{"path":["api","1.1","wf","get_thread"],"host":["https://selarti.com"],"query":[{"disabled":true,"description":{"content":"<p>optional. if empty, then get all thread of this task</p>\n","type":"text/plain"},"key":"thread_id","value":"{thread_id}"},{"description":{"content":"<p>optional. external id from messaging platform, this ID can also be set via the add_target method</p>\n","type":"text/plain"},"key":"external_id","value":"{external_id}"},{"disabled":true,"key":"task_id","value":"{task_id}"},{"description":{"content":"<p>optional. if empty, it will return 20 threads</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"description":{"content":"<p>optional. if empty, it will return 20 threads</p>\n","type":"text/plain"},"key":"offset","value":"0"}],"variable":[]}},"response":[{"id":"cf3c8350-7119-4799-8ca3-fe0a7022a105","name":"get thread","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://selarti.com/api/1.1/wf/get_thread?task_id=1721129985149x478019552540622850&limit=20&offset=0","host":["https://selarti.com"],"path":["api","1.1","wf","get_thread"],"query":[{"key":"thread_id","value":"{thread_id}","description":"optional. if empty, then get all thread of this task","disabled":true},{"key":"task_id","value":"1721129985149x478019552540622850"},{"key":"limit","value":"20","description":"optional. if empty, it will return 20 threads"},{"key":"offset","value":"0","description":"optional. if empty, it will return 20 threads"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 05 Nov 2024 14:35:40 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"*"},{"key":"x-bubble-perf","value":"{\"total\":555.5,\"percents\":{\"top\":{\"bubble_cpu\":7,\"block\":91.5,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0.8},\"sub\":{\"pp_userdb\":1.1,\"pp_wait_userdb\":0,\"http_request\":0,\"serverjson\":117.1,\"appserver_cache_misses_time\":0,\"redis\":69.6,\"fiber_queue\":20.1,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":1,\"http_request\":0,\"derived_build\":0,\"derived_cache_attempts\":2,\"derived_cache_memory_misses\":2,\"serverjson\":32,\"appserver_cache_attempts\":1,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":1,\"appserver_cache_misses\":0,\"redis\":34,\"fiber_queue\":36,\"blocks\":35},\"misc\":{\"userdb_results\":4,\"userdb_data\":3955,\"spent_time\":7824453}}"},{"key":"x-bubble-capacity-used","value":"0.12 unit-seconds used"},{"key":"x-bubble-capacity-limit","value":"0 ms slower"},{"key":"vary","value":"Accept-Encoding"},{"key":"content-encoding","value":"gzip"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8ddd924eea5e9d2e-DME"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"response\": {\n        \"thread\": [\n            {\n                \"Modified Date\": 1724310220845,\n                \"Created Date\": 1721810009008,\n                \"Created By\": \"no_user\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"title\": \"Frame user\",\n                \"ai_thread_id\": \"thread_3jzvqhqjfZbWHzksEBZwt9Ql\",\n                \"close\": false,\n                \"get_contact\": true,\n                \"is_bot\": false,\n                \"success\": true,\n                \"task\": \"1721129985149x478019552540622850\",\n                \"count_message\": 3,\n                \"last_message_date\": 1721810016865,\n                \"last_message_text\": \"сообщение 3\",\n                \"wh_get_contact\": true,\n                \"wh_success\": true,\n                \"interest\": true,\n                \"wh_interest\": true,\n                \"date_interest\": 1724310220688,\n                \"date_success\": 1724310220734,\n                \"date_contact\": 1724310220844,\n                \"channel\": \"1721232388946x680785136160866300\",\n                \"user_replied\": false,\n                \"_id\": \"1721810007751x441563050728488960\"\n            },\n            {\n                \"Modified Date\": 1724310973734,\n                \"Created Date\": 1721717808238,\n                \"Created By\": \"no_user\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"title\": \"Frame user\",\n                \"ai_thread_id\": \"thread_30nzKqokrXfPbM45tOtdUm4p\",\n                \"close\": false,\n                \"get_contact\": false,\n                \"is_bot\": false,\n                \"success\": false,\n                \"task\": \"1721129985149x478019552540622850\",\n                \"count_message\": 3,\n                \"last_message_date\": 1721717815864,\n                \"last_message_text\": \"сообщение 3\",\n                \"wh_get_contact\": true,\n                \"wh_success\": true,\n                \"interest\": false,\n                \"wh_interest\": true,\n                \"date_interest\": 1724310968679,\n                \"date_success\": 1724310968793,\n                \"date_contact\": 1724310968820,\n                \"date_close\": 1724310968659,\n                \"channel\": \"1721232388946x680785136160866300\",\n                \"user_replied\": false,\n                \"_id\": \"1721717807635x754083799687233500\"\n            }\n        ]\n    }\n}"}],"_postman_id":"82e75107-2d0f-4f58-83a8-588ed125c77f"},{"name":"get message","id":"52e47318-ac40-4884-9a87-47a186da8a20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"GET","header":[],"url":"https://selarti.com/api/1.1/wf/get_message?thread_id={thread_id}&message_id={message_id}&limit=20&offset=0&start_date=1729580592315","urlObject":{"path":["api","1.1","wf","get_message"],"host":["https://selarti.com"],"query":[{"key":"thread_id","value":"{thread_id}"},{"description":{"content":"<p>optional. if empty, then get all message of this thread</p>\n","type":"text/plain"},"key":"message_id","value":"{message_id}"},{"description":{"content":"<p>optional. if empty, it will return 20 messages</p>\n","type":"text/plain"},"key":"limit","value":"20"},{"description":{"content":"<p>optional. if empty, it will return 20 messages</p>\n","type":"text/plain"},"key":"offset","value":"0"},{"description":{"content":"<p>optional. Created Date &gt; start_date</p>\n","type":"text/plain"},"key":"start_date","value":"1729580592315"}],"variable":[]}},"response":[{"id":"bb61b6a7-a423-4bbf-af03-ff801c697229","name":"get message","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://selarti.com/api/1.1/wf/get_message?thread_id={thread_id}&message_id={message_id}&limit=20&offset=0&start_date=1729580592315","host":["https://selarti.com"],"path":["api","1.1","wf","get_message"],"query":[{"key":"thread_id","value":"{thread_id}"},{"key":"message_id","value":"{message_id}","description":"optional. if empty, then get all message of this thread"},{"key":"limit","value":"20","description":"optional. if empty, it will return 20 messages"},{"key":"offset","value":"0","description":"optional. if empty, it will return 20 messages"},{"key":"start_date","value":"1729580592315","description":"optional. Created Date > start_date"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 06 Nov 2024 07:36:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"*"},{"key":"x-bubble-perf","value":"{\"total\":104.5,\"percents\":{\"top\":{\"bubble_cpu\":44.9,\"block\":51.7,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0.8},\"sub\":{\"pp_userdb\":5.7,\"pp_wait_userdb\":1,\"http_request\":0,\"serverjson\":66,\"appserver_cache_misses_time\":0,\"redis\":42.9,\"fiber_queue\":2.4,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":1,\"http_request\":0,\"derived_build\":0,\"derived_cache_attempts\":2,\"derived_cache_memory_misses\":2,\"serverjson\":38,\"appserver_cache_attempts\":1,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":1,\"appserver_cache_misses\":0,\"redis\":44,\"fiber_queue\":45,\"blocks\":44},\"misc\":{\"userdb_results\":16,\"userdb_data\":9773,\"spent_time\":9046850}}"},{"key":"x-bubble-capacity-used","value":"0.139 unit-seconds used"},{"key":"x-bubble-capacity-limit","value":"0 ms slower"},{"key":"vary","value":"Accept-Encoding"},{"key":"content-encoding","value":"gzip"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8de3693e5f129d6b-DME"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"response\": {\n        \"message\": [\n            {\n                \"Modified Date\": 1729580592321,\n                \"Created Date\": 1729580592315,\n                \"Created By\": \"1708251849975x447112648674775600\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"text\": \"Test message 123\",\n                \"thread\": \"1728545696102x349363422913789200\",\n                \"message_type\": \"bot\",\n                \"task\": \"1728544908612x185748016875438100\",\n                \"ai_message_id\": \"msg_TFZ3bLIdi5khgzech63arcNU\",\n                \"message_status\": \"failed\",\n                \"_id\": \"1729580592309x766155581985038100\"\n            },\n            {\n                \"Modified Date\": 1729580545253,\n                \"Created Date\": 1729580545246,\n                \"Created By\": \"1708251849975x447112648674775600\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"text\": \"Test message 123\",\n                \"thread\": \"1728545696102x349363422913789200\",\n                \"message_type\": \"bot\",\n                \"task\": \"1728544908612x185748016875438100\",\n                \"ai_message_id\": \"msg_oz7efc7mYVcrEilllIf3GEtl\",\n                \"message_status\": \"failed\",\n                \"_id\": \"1729580545226x679476419578583400\"\n            },\n            {\n                \"Modified Date\": 1729580208400,\n                \"Created Date\": 1729580208353,\n                \"Created By\": \"1708251849975x447112648674775600\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"text\": \"Test message 123\",\n                \"thread\": \"1728545696102x349363422913789200\",\n                \"message_type\": \"operator\",\n                \"task\": \"1728544908612x185748016875438100\",\n                \"ai_message_id\": \"msg_WvfJwCruCY5hkysJa9T0ooTq\",\n                \"message_status\": \"failed\",\n                \"_id\": \"1729580208346x688458169573974700\"\n            },\n            {\n                \"Modified Date\": 1729243596784,\n                \"Created Date\": 1729243596764,\n                \"Created By\": \"1708251849975x447112648674775600\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"text\": \"привет\",\n                \"thread\": \"1728545696102x349363422913789200\",\n                \"message_type\": \"operator\",\n                \"task\": \"1728544908612x185748016875438100\",\n                \"ai_message_id\": \"msg_nYFYTF2jY4LsPGXo6bsp7JVU\",\n                \"message_status\": \"failed\",\n                \"_id\": \"1729243596759x974469583962224000\"\n            },\n            {\n                \"Modified Date\": 1729061803809,\n                \"Created Date\": 1729061803790,\n                \"Created By\": \"1708251849975x447112648674775600\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"text\": \"Test message 123\",\n                \"thread\": \"1728545696102x349363422913789200\",\n                \"message_type\": \"operator\",\n                \"task\": \"1728544908612x185748016875438100\",\n                \"ai_message_id\": \"msg_TjvnlUhS5u4JHda8NXIwmJsv\",\n                \"message_status\": \"failed\",\n                \"_id\": \"1729061803786x682087278794683400\"\n            },\n            {\n                \"Modified Date\": 1728993262767,\n                \"Created Date\": 1728993262766,\n                \"Created By\": \"1708251849975x447112648674775600\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"text\": \"hi\",\n                \"thread\": \"1728545696102x349363422913789200\",\n                \"message_type\": \"operator\",\n                \"task\": \"1728544908612x185748016875438100\",\n                \"_id\": \"1728993262745x308628955162404600\"\n            },\n            {\n                \"Modified Date\": 1728984813781,\n                \"Created Date\": 1728984813780,\n                \"Created By\": \"1708251849975x447112648674775600\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"text\": \"привет\",\n                \"thread\": \"1728545696102x349363422913789200\",\n                \"message_type\": \"bot\",\n                \"task\": \"1728544908612x185748016875438100\",\n                \"_id\": \"1728984813757x881410858498354700\"\n            },\n            {\n                \"Modified Date\": 1728548445919,\n                \"Created Date\": 1728548445919,\n                \"Created By\": \"admin_user_selarti_test\",\n                \"company\": \"1708251850060x460235863640434700\",\n                \"text\": \"1 + 1 будет равно 2.\",\n                \"thread\": \"1728545696102x349363422913789200\",\n                \"message_type\": \"bot\",\n                \"task\": \"1728544908612x185748016875438100\",\n                \"_id\": \"1728548445918x395778606576680640\"\n            }\n        ]\n    }\n}"}],"_postman_id":"52e47318-ac40-4884-9a87-47a186da8a20"},{"name":"get channel","id":"00230582-302a-4478-8d09-2cf9b189f46e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://selarti.com/api/1.1/wf/get_channel?company_id={company_id}","urlObject":{"path":["api","1.1","wf","get_channel"],"host":["https://selarti.com"],"query":[{"key":"company_id","value":"{company_id}"}],"variable":[]}},"response":[],"_postman_id":"00230582-302a-4478-8d09-2cf9b189f46e"}],"id":"d640fd69-273d-4c89-8768-d5d22b4611b6","description":"<p><strong>Base URL:</strong> <a href=\"https://selarti.com\">https://selarti.com</a></p>\n","_postman_id":"d640fd69-273d-4c89-8768-d5d22b4611b6"},{"name":"Telegram user login","item":[{"name":"Telegram userlogin","id":"44a24eee-9c26-4997-8a5c-9e8ad4953c40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company\": \"\",\r\n    \"phone_number\": \"\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/userLogin","urlObject":{"path":["api","1.1","wf","userLogin"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"44a24eee-9c26-4997-8a5c-9e8ad4953c40"},{"name":"Telegram authcode","id":"b5c5ba1c-0a4a-4e34-bd7c-934bd9db8302","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company\": \"\",\r\n    \"token\": \"79018510315:abcd\",\r\n    \"code\": 12345,\r\n    \"phone\": \"79018510315\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/authcode","urlObject":{"path":["api","1.1","wf","authcode"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5c5ba1c-0a4a-4e34-bd7c-934bd9db8302"},{"name":"Telegram authPassword","id":"da94e535-fba4-4db9-aac5-1e9ca1136a0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company\": \"\",\r\n    \"token\": \"79018510315:abcd\",\r\n    \"password\": \"112233\",\r\n    \"phone\": \"79018510315\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/authPassword","urlObject":{"path":["api","1.1","wf","authPassword"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"da94e535-fba4-4db9-aac5-1e9ca1136a0d"}],"id":"c760f468-0fb4-4fd0-82d2-08090ee034a3","_postman_id":"c760f468-0fb4-4fd0-82d2-08090ee034a3","description":""},{"name":"Send message","item":[{"name":"send message","id":"f5084e03-d529-4044-9f70-7ae8ad7881ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"thread\": \"1728545696102x349363422913789200\", // thread_id \r\n    \"message\": \"Test message 123\", // message that will be sent to the user\r\n    \"message_type\": \"bot\" //operator or bot\r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/send_message","urlObject":{"path":["api","1.1","wf","send_message"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f5084e03-d529-4044-9f70-7ae8ad7881ec"},{"name":"send message external","id":"d0d66a94-eebd-4095-b5fe-f58b31b1ab28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"task_id\": \"1721129985149x478019552540622850\", \r\n    \"chat_id\": \"123456789\", //unique chat_id in your system\r\n    \"message\": \"Test message via api\",\r\n    \"message_type\": \"bot\" //optional. operator/bot/user. If empty = user \r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/send_message_external","urlObject":{"path":["api","1.1","wf","send_message_external"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[{"id":"da88139e-e2b2-4a48-bbde-a1ee05e1e5d7","name":"example","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"task_id\": \"1721129985149x478019552540622850\", \r\n    \"chat_id\": \"123456789\", //unique chat_id in your system\r\n    \"message\": \"Test message via api\" \r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/send_message_external"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 11 Nov 2024 14:48:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"access-control-allow-origin","value":"*"},{"key":"x-bubble-perf","value":"{\"total\":859.4,\"percents\":{\"top\":{\"bubble_cpu\":14.1,\"block\":85.9,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0.1},\"sub\":{\"pp_userdb\":2.2,\"pp_wait_userdb\":0,\"http_request\":16.2,\"serverjson\":102.4,\"appserver_cache_misses_time\":0,\"redis\":327.5,\"fiber_queue\":5.2,\"capacity_wait\":0.6}},\"counts\":{\"pp_userdb\":3,\"http_request\":1,\"derived_build\":1,\"derived_cache_attempts\":3,\"derived_cache_memory_misses\":3,\"derived_cache_redis_misses\":1,\"derived_cache_postgres_misses\":1,\"serverjson\":437,\"appserver_cache_attempts\":2,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":1,\"appserver_cache_misses\":1,\"redis\":559,\"fiber_queue\":193,\"blocks\":192},\"misc\":{\"userdb_results\":4,\"userdb_data\":2472,\"spent_time\":29194081,\"derived_build_time_spent\":26}}"},{"key":"x-bubble-capacity-used","value":"0.449 unit-seconds used"},{"key":"x-bubble-capacity-limit","value":"0 ms slower"},{"key":"vary","value":"Accept-Encoding"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"8e0f14eb1bc79da7-DME"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"response\": {\n        \"thread\": {\n            \"_id\": \"1731336491572x316716105037601100\",\n            \"Created By\": \"1708251849975x447112648674775600\",\n            \"Created Date\": 1731336491590,\n            \"Modified Date\": 1731336491593,\n            \"ai_thread_id\": \"thread_zZ32RNJ0WIH6rzBLS719LylE\",\n            \"task\": \"1721129985149x478019552540622850\",\n            \"chat_id\": \"123456789\",\n            \"company\": \"1708251850060x460235863640434700\",\n            \"title\": \"API chat 123456789\",\n            \"contact\": \"123456789\",\n            \"close\": false,\n            \"count_message\": 0,\n            \"get_contact\": false,\n            \"interest\": false,\n            \"is_bot\": false,\n            \"operator\": false,\n            \"success\": false,\n            \"user_replied\": false,\n            \"wh_get_contact\": false,\n            \"wh_interest\": false,\n            \"wh_success\": false\n        }\n    }\n}"}],"_postman_id":"d0d66a94-eebd-4095-b5fe-f58b31b1ab28"},{"name":"send message list","id":"03a04acd-db3a-49fb-9105-fa178a294307","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"thread_list\": [\"1732278936892x679120003157196800\", \"1721231916159x926265886929059800\"], // list thread_id (interval 15 sec)\r\n    \"start_date\": \"2025-01-09T12:00:00+03:00\", //format ISO 8601 or unixtime (2025-01-09 or 2025-01-09T12:00:00Z or 2025-01-09T12:00:00+03:00 or 1736404892)\r\n    \"message\": \"Test\", // message that will be sent to the user\r\n    \"message_type\": \"bot\" //operator or bot\r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/send_message_list","urlObject":{"path":["api","1.1","wf","send_message_list"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"03a04acd-db3a-49fb-9105-fa178a294307"}],"id":"4b845c23-9461-48b1-8d91-075f80f4c201","description":"<p><strong>Base URL:</strong> <a href=\"https://selarti.com\">https://selarti.com</a></p>\n","_postman_id":"4b845c23-9461-48b1-8d91-075f80f4c201"},{"name":"Advanced API","item":[{"name":"add target with context","id":"82898678-dd40-4f48-8e3a-10944d5b2fc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"    {\n        \"target\":\"@selarti_support\", // required. phone, username, id (depending on the communication channel)\n        \"first_name\": \"Ivan\", // optional\n        \"last_name\": \"Smit\", // optional\n        \"context\": \"text\", // optional. is used in AI\n        \"external_id\": \"1122\", // optional. sent in webhook\n        \"start_message\": \"{hi|hello}\" //optional. if empty, then used from AI. Format spintax or regular string\n    }","options":{"raw":{"language":"json"}}},"url":"https://api.selarti.com/v1/add_target?task_id={{task_id}}","description":"<p>Advanced Method for Target Audience Transmission</p>\n","urlObject":{"protocol":"https","path":["v1","add_target"],"host":["api","selarti","com"],"query":[{"key":"task_id","value":"{{task_id}}"}],"variable":[]}},"response":[{"id":"e7dac61f-49a2-4fd3-81c1-4cee2efb1b25","name":"add target with context","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"    {\n        \"target\":\"@selarti_support\", // required. phone, username, id (depending on the communication channel)\n        \"first_name\": \"Ivan\", // optional\n        \"last_name\": \"Smit\", // optional\n        \"context\": \"text\", // optional. is used in AI\n        \"external_id\": \"1122\" // optional. sent in webhook \n    }","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.selarti.com/v1/add_target?task_id={{task_id}}","protocol":"https","host":["api","selarti","com"],"path":["v1","add_target"],"query":[{"key":"task_id","value":"{{task_id}}"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"target_id\": 44350\n}"}],"_postman_id":"82898678-dd40-4f48-8e3a-10944d5b2fc1"}],"id":"edaece1b-c9cb-4e3c-8a9a-bb94ccdcca7b","description":"<p><strong>Base URL:</strong> <a href=\"https://api.selarti.com\">https://api.selarti.com</a></p>\n","_postman_id":"edaece1b-c9cb-4e3c-8a9a-bb94ccdcca7b"},{"name":"Other","item":[{"name":"add target","id":"f0d6b84c-d294-4001-9580-aacb2363b1a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"task\": \"\", // task_id \r\n    \"target\": \"123\" // phone, username, id (depending on the communication channel). For more than one, use \"1111\\n2222\\n3333...\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/add_target","urlObject":{"path":["api","1.1","wf","add_target"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0d6b84c-d294-4001-9580-aacb2363b1a3"},{"name":"create ai","id":"dfa07495-a6c7-476e-9494-d13108d0e667","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"company_id\": \"1727272792085x807585043098198500\",\r\n    \"name\": \"Test ai\",\r\n    \"start_message\": \"Hello\",\r\n    \"version\": \"GPT-4o\",\r\n    \"work_option\": \"incoming and outgoing communication\",\r\n    \"instruction\": \"Test instruction\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/create_ai","urlObject":{"path":["api","1.1","wf","create_ai"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfa07495-a6c7-476e-9494-d13108d0e667"},{"name":"create_thread","id":"b377c148-5ddb-4e13-b071-b0120b14ee18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"task_id\": \"1736844036728x319592979904856060\",\r\n    \"chat_id\": \"1\" //unique chat_id in your system (optional)\r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/create_thread","urlObject":{"path":["api","1.1","wf","create_thread"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b377c148-5ddb-4e13-b071-b0120b14ee18"},{"name":"update tag","id":"2ae9bf65-630c-4e0e-911f-01cd11dd9db0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"thread\": \"1728545696102x349363422913789200\", //required, thread_id \r\n    \"success\": true, //optional, true/false\r\n    \"interest\": true, //optional, true/false\r\n    \"get_contact\": true, //optional, true/false\r\n    \"operator\": true, //optional, true/false\r\n    \"is_bot\": true, //optional, true/false\r\n    \"close\": true //optional, true/false\r\n}","options":{"raw":{"language":"json"}}},"url":"https://selarti.com/api/1.1/wf/update_tag","urlObject":{"path":["api","1.1","wf","update_tag"],"host":["https://selarti.com"],"query":[],"variable":[]}},"response":[],"_postman_id":"2ae9bf65-630c-4e0e-911f-01cd11dd9db0"}],"id":"7873c1ab-de8b-4374-b114-24aa0e4e5719","description":"<p><strong>Base URL:</strong> <a href=\"https://selarti.com\">https://selarti.com</a></p>\n","_postman_id":"7873c1ab-de8b-4374-b114-24aa0e4e5719"}],"event":[{"listen":"prerequest","script":{"id":"b0d3729e-d5b7-4f82-b724-2c2f3409a037","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"88209d11-5de9-4f11-9e9c-55bf68d8e50f","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"token","value":"","type":"string"},{"key":"url","value":"https://selarti.com","type":"string"},{"key":"key","value":"","type":"string"}]}