{"info":{"_postman_id":"72b02cb7-47f6-4355-9832-720deaaa3046","name":"Gerabot API v1.0.3","description":"<html><head></head><body><h1 id=\"zagalna-informaciya\">Загальна інформація</h1>\n<p>Усі запити необхідно надсилати на особисте посилання вашого аккаунту.</p>\n<p>Наразі доступні методи</p>\n<ul>\n<li>Отримання списку чатів <code>api/chats/getList</code></li>\n<li>Відправка повідомлення <code>api/chats/sendMessage</code></li>\n<li>Створення ліда <code>api/lead/new</code></li>\n<li>Редагування ліда <code>api/lead/edit</code></li>\n</ul>\n<h1 id=\"avtorizaciya-zapitiv\">Авторизація запитів</h1>\n<p>Для авторизації запитів використувується Bearer Token, де значенням токену є піддомен сайту зашифрований у base64</p>\n<p>Для аккаунту <a href=\"https://gerabot.com\">account.scripto.com.ua</a> піддомен є account</p>\n<blockquote>\n<p>base64_decode(\"account\")</p>\n</blockquote>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Загальна інформація","slug":"zagalna-informaciya"},{"content":"Авторизація запитів","slug":"avtorizaciya-zapitiv"}],"owner":"16675682","collectionId":"72b02cb7-47f6-4355-9832-720deaaa3046","publishedId":"VUqrMboJ","public":true,"customColor":{"top-bar":"00D393","right-sidebar":"303030","highlight":"00d393"},"publishDate":"2023-01-20T07:41:38.000Z"},"item":[{"name":"api/chats/getList","id":"4cdb694a-dd34-44e0-8220-ec2f060d8dd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/api/chats/getList","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"ZGV2ZWxvcDI="}]},"isInherited":true,"source":{"_postman_id":"72b02cb7-47f6-4355-9832-720deaaa3046","id":"72b02cb7-47f6-4355-9832-720deaaa3046","name":"Gerabot API v1.0.3","type":"collection"}},"urlObject":{"path":["api","chats","getList"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"26870bb0-67f4-4769-8ad5-2d47be86370d","name":"api/chats/getList","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[]},"url":"{{url}}/api/chats/getList"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Fri, 20 Jan 2023 07:58:22 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization,Accept-Encoding"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Set-Cookie","value":"cisession=t2in6pfhv0ki2t452lb0nd8od22e8iru; expires=Fri, 20-Jan-2023 09:58:22 GMT; Max-Age=7200; path=/; HttpOnly"},{"key":"Content-Encoding","value":"gzip"},{"key":"Content-Length","value":"169"},{"key":"Keep-Alive","value":"timeout=5, max=1000"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"result\":true,\"data\":{\"items\":[{\"id\":\"208200\",\"lastAction\":\"1670943137\",\"chatId\":\"2128176263\",\"type\":\"telegram\",\"name\":\"Me \",\"phone\":\"\",\"unreaded\":\"\",\"category\":\"0\",\"subscribed\":\"1\",\"avatar\":\"\"}]}}"}],"_postman_id":"4cdb694a-dd34-44e0-8220-ec2f060d8dd8"},{"name":"api/chats/sendMessage","id":"0b4f0b16-df60-4a0e-9455-d6633cc383f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"chat_id","value":"208200","description":"<p>Ідентивікатор чату id, отриманний з загального списку чатів </p>\n","type":"text","contentType":""},{"key":"message[text]","value":"Hello","type":"text"}]},"url":"{{url}}/api/chats/sendMessage","description":"<p>Для відправки повідомлення надішліть ідентіфікатор чату, та повідомлення.</p>\n<p><strong>! Наразі підтримуються лише текстові повідомлення !</strong></p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"ZGV2ZWxvcDI="}]},"isInherited":true,"source":{"_postman_id":"72b02cb7-47f6-4355-9832-720deaaa3046","id":"72b02cb7-47f6-4355-9832-720deaaa3046","name":"Gerabot API v1.0.3","type":"collection"}},"urlObject":{"path":["api","chats","sendMessage"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"26c31906-9aa8-4d6f-b859-cbccc55dbef8","name":"Message was sended","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"chat_id","value":"208200","type":"text"},{"key":"message[text]","value":"Hello","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"{{url}}/api/chats/sendMessage"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Fri, 20 Jan 2023 08:25:03 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"55"},{"key":"Keep-Alive","value":"timeout=5, max=1000"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"result\":true,\"data\":{\"message\":\"Message was sended\"}}"},{"id":"73906d31-69b6-487a-95b9-738e90f36187","name":"Chat not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"chat_id","value":"208201","type":"text"},{"key":"message[text]","value":"Hello","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"{{url}}/api/chats/sendMessage"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Fri, 20 Jan 2023 08:25:39 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"52"},{"key":"Keep-Alive","value":"timeout=5, max=1000"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"result\":false,\"data\":{\"message\":\"Chat not found\"}}"},{"id":"7f939453-9ef8-460a-b2f4-e5497e5654fe","name":"Incorrect format of message","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"chat_id","value":"208200","type":"text"},{"key":"message[image]","value":"Hello","type":"text"}],"options":{"raw":{"language":"json"}}},"url":"{{url}}/api/chats/sendMessage"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Date","value":"Fri, 20 Jan 2023 08:26:07 GMT"},{"key":"Server","value":"Apache/2.4.41 (Ubuntu)"},{"key":"Vary","value":"Authorization"},{"key":"Expires","value":"Thu, 19 Nov 1981 08:52:00 GMT"},{"key":"Cache-Control","value":"no-store, no-cache, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Length","value":"51"},{"key":"Keep-Alive","value":"timeout=5, max=1000"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"text/html; charset=UTF-8"}],"cookie":[],"responseTime":null,"body":"{\"result\":false,\"data\":{\"message\":\"Not supported\"}}"}],"_postman_id":"0b4f0b16-df60-4a0e-9455-d6633cc383f2"},{"name":"api/lead/new","id":"b2339e47-1ac6-4615-81c0-7efde7503af2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Volodya","type":"text"},{"key":"email","value":"mail@gmail.com","type":"text"},{"key":"phone","value":"phone_number","type":"text"}]},"url":"{{url}}/api/lead/new","description":"<p><strong>Доступные поля</strong></p>\n<blockquote>\n<p>name - Имя<br />surname - Фамилия<br />middle_name - Отчество<br />email - Почта<br />phone - Телефон<br />company - Компания<br />category - Идентификатор категории в конструкторе  </p>\n<p>source - Ресурс с которого добавлен лид</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"ZGV2ZWxvcDI="}]},"isInherited":true,"source":{"_postman_id":"72b02cb7-47f6-4355-9832-720deaaa3046","id":"72b02cb7-47f6-4355-9832-720deaaa3046","name":"Gerabot API v1.0.3","type":"collection"}},"urlObject":{"path":["api","lead","new"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b2339e47-1ac6-4615-81c0-7efde7503af2"},{"name":"api/client/new","id":"89f12e10-d2c8-402c-9d64-ed9a6b1a881e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Volodya","type":"text"},{"key":"email","value":"mail@gmail.com","type":"text"},{"key":"phone","value":"phone_number","type":"text"}]},"url":"{{url}}/api/lead/new","description":"<p><strong>Доступные поля</strong></p>\n<blockquote>\n<p>name - Имя<br />surname - Фамилия<br />middle_name - Отчество<br />email - Почта<br />phone - Телефон<br />company - Компания<br />category - Идентификатор категории в конструкторе</p>\n<p>source - Ресурс с которого добавлен клиент</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"ZGV2ZWxvcDI="}]},"isInherited":true,"source":{"_postman_id":"72b02cb7-47f6-4355-9832-720deaaa3046","id":"72b02cb7-47f6-4355-9832-720deaaa3046","name":"Gerabot API v1.0.3","type":"collection"}},"urlObject":{"path":["api","lead","new"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"89f12e10-d2c8-402c-9d64-ed9a6b1a881e"},{"name":"api/client/setVariables","id":"4d2bef27-7e5e-4e3f-a194-df6f6337da43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"id","value":"1","type":"text"},{"key":"variables[Задолженность]","value":"test","type":"text"}]},"url":"{{url}}/api/client/setVariables","description":"<p><strong>Доступные поля</strong></p>\n<blockquote>\n<p>name - Имя</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"ZGV2ZWxvcDI="}]},"isInherited":true,"source":{"_postman_id":"72b02cb7-47f6-4355-9832-720deaaa3046","id":"72b02cb7-47f6-4355-9832-720deaaa3046","name":"Gerabot API v1.0.3","type":"collection"}},"urlObject":{"path":["api","client","setVariables"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"4d2bef27-7e5e-4e3f-a194-df6f6337da43"},{"name":"api/lead/edit","id":"e6e3f741-a356-4e0c-90cb-aee7e0dc6239","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"develop2","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Volodya","type":"text"},{"key":"email","value":"mail@gmail.com","type":"text"},{"key":"phone","value":"phone_number","type":"text"}]},"url":"{{url}}/api/lead/edit","description":"<p><strong>Доступные поля</strong></p>\n<blockquote>\n<p>name - Имя<br />surname - Фамилия<br />middle_name - Отчество<br />email - Почта<br />phone - Телефон<br />company - Компания<br />category - Идентификатор категории в конструкторе</p>\n</blockquote>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"ZGV2ZWxvcDI="}]},"isInherited":true,"source":{"_postman_id":"72b02cb7-47f6-4355-9832-720deaaa3046","id":"72b02cb7-47f6-4355-9832-720deaaa3046","name":"Gerabot API v1.0.3","type":"collection"}},"urlObject":{"path":["api","lead","edit"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6e3f741-a356-4e0c-90cb-aee7e0dc6239"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"ZGV2ZWxvcDI="}]}},"event":[{"listen":"prerequest","script":{"id":"7582697d-004a-4374-af7c-d937c3e3c400","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"fe5d4042-d858-4b06-828f-e79fd9f8728b","type":"text/javascript","exec":[""]}}],"variable":[{"key":"DOMAIN","value":"{{url}}"},{"key":"TOKEN","value":"ZGV2ZWxvcDI=","type":"string"},{"key":"token","value":"ZGV2ZWxvcDI="}]}