{"info":{"_postman_id":"48096c11-4f47-4e39-886c-f9f7c1886708","name":"Agentebot API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"3798213","collectionId":"48096c11-4f47-4e39-886c-f9f7c1886708","publishedId":"UzBiNoJ8","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"0858F8"},"publishDate":"2022-06-15T01:55:56.000Z"},"item":[{"name":"Send WhatsApp Message","id":"30ff8652-f93a-4b73-a29a-5a07cf400851","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"token\": \"TOKEN_AGENTEBOT\",\n  \"type\": \"chat\",\n  \"body\": \"Hi 👋!!\",\n  \"to\": \"NUMBER_WHATSAPP\",\n  \"instance\": \"ID_INSTANCE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.agentebot.chat/v1/msg-wh","description":"<p><em>TYPE_MESSAGE = [\"chat\", \"image\", \"video\", \"document\", \"audio\", \"gif\", \"location\", \"sticker\"]</em></p>\n<p>*<em>Important: When sending a multimedia message (image, video, gif, audio, document) the body parameter must contain the URL of the file)</em></p>\n<p>Optional parameters</p>\n<ul>\n<li>caption <em>string</em> = Text when sending an image or video message</li>\n<li>filename <em>string</em> = Name of the document to send (only when it is a document type message)</li>\n<li>lat <em>string</em> = Latitude when it is a location type message</li>\n<li>lng <em>string</em> = Longitude when it is a location type message</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","msg-wh"],"host":["api","agentebot","chat"],"query":[],"variable":[]}},"response":[{"id":"3dd077fb-2baf-4c56-a99b-609dda9bef78","name":"Send Text","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"TOKEN_AGENTEBOT\",\n    \"type\": \"chat\",\n    \"body\": \"Hi 👋!!\",\n    \"to\": \"NUMBER_WHATSAPP\",\n    \"instance\": \"ID_INSTANCE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.agentebot.chat/v1/msg-wh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 01 Jun 2022 21:08:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"39"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"e18cf895-f8e6-4aab-a9ec-3607362514df"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"TD5IzETuPHcFe5w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6297d56b-47c7c1447f0edd5c25eeb03d;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"body\": {\n        \"err\": false\n    }\n}"},{"id":"b0eb8ea8-d954-4a41-8373-0599c3b20130","name":"Send Image","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"TOKEN_AGENTEBOT\",\n    \"type\": \"image\",\n    \"body\": \"URL_IMAGE\",\n    \"caption\": \"Hi 👋!!\",\n    \"to\": \"NUMBER_WHATSAPP\",\n    \"instance\": \"ID_INSTANCE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.agentebot.chat/v1/msg-wh"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Wed, 01 Jun 2022 21:08:59 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"39"},{"key":"Connection","value":"keep-alive"},{"key":"x-amzn-RequestId","value":"e18cf895-f8e6-4aab-a9ec-3607362514df"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"x-amz-apigw-id","value":"TD5IzETuPHcFe5w="},{"key":"X-Amzn-Trace-Id","value":"Root=1-6297d56b-47c7c1447f0edd5c25eeb03d;Sampled=0"}],"cookie":[],"responseTime":null,"body":"{\n    \"statusCode\": 200,\n    \"body\": {\n        \"err\": false\n    }\n}"}],"_postman_id":"30ff8652-f93a-4b73-a29a-5a07cf400851"},{"name":"Send Facebook Messenger","id":"c2a016a6-6a74-4d88-b381-e3d08ee7788e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"TOKEN_AGENTEBOT\",\n    \"type\": \"TYPE_MESSAGE\",\n    \"body\": \"Hi 👋!!\",\n    \"to\": \"PSID_MESSENGER\",\n    \"instance\": \"ID_INSTANCE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.agentebot.chat/v1/facebook/send-messenger","description":"<p><em>TYPE_MESSAGE = [\"text\", \"image\", \"video\", \"file\", \"audio\"]</em></p>\n<p>*<em>Important: When sending a multimedia message (image, video, gif, audio, document) the body parameter must contain the URL of the file)</em></p>\n<p>Optional parameters</p>\n<ul>\n<li>caption <em>string</em> = Text when sending an image or video message</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","facebook","send-messenger"],"host":["api","agentebot","chat"],"query":[],"variable":[]}},"response":[],"_postman_id":"c2a016a6-6a74-4d88-b381-e3d08ee7788e"},{"name":"Send WhatsApp Business API","id":"2eb3c9a8-7671-433d-a58b-7cecf07983ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"TOKEN_AGENTEBOT\",\n    \"type\": \"TYPE_MESSAGE\",\n    \"body\": \"Hi 👋!!\",\n    \"to\": \"NUMBER_WHATSAPP\",\n    \"instance\": \"ID_INSTANCE\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.agentebot.chat/v1/whatsapp-api","description":"<p><em>TYPE_MESSAGE = [\"text\", \"image\", \"video\", \"document\", \"audio\"]</em></p>\n<p>*<em>Important: When sending a multimedia message (image, video, gif, audio, document) the body parameter must contain the URL of the file)</em></p>\n<p>Optional parameters</p>\n<ul>\n<li>caption <em>string</em> = Text when sending an image or video message</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","whatsapp-api"],"host":["api","agentebot","chat"],"query":[],"variable":[]}},"response":[],"_postman_id":"2eb3c9a8-7671-433d-a58b-7cecf07983ad"},{"name":"Lead to CRM","id":"06891940-c55c-48ea-b0de-685c54954f10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Conte","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"to\": \"ID_CONTACT\",\n    \"instance\": \"ID_INSTANCE\",\n    \"text\": \"Open from API\",\n    \"token\": \"TOKEN_AGENTEBOT\",\n    \"area\": \"ID_AREA\",\n    \"channel\": \"ID_CHANNEL\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.agentebot.chat/v1/crm","description":"<h1 id=\"lead-injection-in-crm\">Lead injection in CRM</h1>\n<p>*<em>Important: ID_WHATSAPP must contain the following structure \"COUNTY_CODE\" + \"PHONE_NUMBER\" + \"@c.us\" example <a href=\"mailto:14243962506@c.us\">14243962506@c.us</a></em></p>\n<p>Optional parameters</p>\n<ul>\n<li>area <em>string</em> = Area or equipment code</li>\n<li>agent <em>string</em> = Agent ID, for this to be possible you must send an area to which the agent belongs</li>\n<li>process <em>string</em> = Process ID</li>\n<li>tags <em>string</em> = example [\"customer service\", \"sales\"]</li>\n<li>channel <em>string</em> = whatsapp or fb-messenger</li>\n</ul>\n","urlObject":{"protocol":"https","path":["v1","crm"],"host":["api","agentebot","chat"],"query":[],"variable":[]}},"response":[],"_postman_id":"06891940-c55c-48ea-b0de-685c54954f10"},{"name":"Get Contact","id":"53aa9611-0c2d-4318-ab59-316951fb0055","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Conte","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"TOKEN_AGENTEBOT\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.agentebot.chat/v1/contact?id=ID_LIST","description":"<h1 id=\"get-a-contact\">Get a contact</h1>\n","urlObject":{"protocol":"https","path":["v1","contact"],"host":["api","agentebot","chat"],"query":[{"key":"id","value":"ID_LIST"}],"variable":[]}},"response":[],"_postman_id":"53aa9611-0c2d-4318-ab59-316951fb0055"},{"name":"Insert Contact","id":"8eff3aee-afbc-4f05-9809-f2791de97f79","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Conte","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"token\": \"TOKEN_SHIMLI\",\n    \"idList\": \"ID_LIST\",\n    \"values\": {\n        \"phone\": \"ID_WHATSAPP\",\n        \"name\": \"NAME\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.agentebot.chat/v1/contact","description":"<h1 id=\"adding-a-contact-to-a-specific-list\">Adding a contact to a specific list</h1>\n<p>*<em>Important: ID_WHATSAPP must contain the following structure \"COUNTY_CODE\" + \"PHONE_NUMBER\" example 14243962506</em></p>\n<p>In the value object, you need to send all the fields you want to enter the list</p>\n","urlObject":{"protocol":"https","path":["v1","contact"],"host":["api","agentebot","chat"],"query":[],"variable":[]}},"response":[],"_postman_id":"8eff3aee-afbc-4f05-9809-f2791de97f79"},{"name":"Get Client","id":"13e68887-0fa9-4b19-9c46-b884a307bdf9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"api-token\":\"TOKEN_AGENTEBOT\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.agentebot.chat/v1/client?api-token=TOKEN_AGENTEBOT","urlObject":{"protocol":"https","path":["v1","client"],"host":["api","agentebot","chat"],"query":[{"key":"api-token","value":"TOKEN_AGENTEBOT"}],"variable":[]}},"response":[],"_postman_id":"13e68887-0fa9-4b19-9c46-b884a307bdf9"}],"event":[{"listen":"prerequest","script":{"id":"2dd03dc6-d17d-4478-a311-bc7aa0eb52db","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"16fe6da7-8bfb-445c-b101-1ceda82d6638","type":"text/javascript","exec":[""]}}]}