{"info":{"_postman_id":"8899a920-974e-4c8f-b5e3-d1e5730e6e4f","name":"Tracksend API Documentation","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"9048286","collectionId":"8899a920-974e-4c8f-b5e3-d1e5730e6e4f","publishedId":"TzzAKbPp","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-08-17T14:33:04.000Z"},"item":[{"name":"Messages","item":[{"name":"New Text Message","id":"3533c732-4704-4a99-9f3a-024efa105868","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"","value":"connect.sid=s:zikkdYtTr9o-MzCPdZqeGd3rGOpXovdj.NDuUHn+FlfzLG6zFR+J7FnweF/g+c+HGeq0upgdSa5w; connect.sid=s:5GOT3ADlbpP5itk6ZuvbQCYrvr8cmn6z.7WfreKbAmNKMfhjtspIMzeGXULR2O6jZrrXHpxupk54","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"RdGMxFCUpSmHA2us2Bhk3epU15PJtCI7xCPAJSkKrLzX8rkFxJ\",\r\n    \"sender\": \"Tracksend\",\r\n     \"url\": \"www.tracksend.co\",\r\n    \"message\": \"This is a test2 API message from Rance [url]\",\r\n    \"aux_type_1\": \"woocomeerce\",\r\n    \"aux_type_2\": \"abandon\",\r\n    \"aux_type_3\": \"cart\",\r\n    \"aux_type_4\": \"ibsadan\",\r\n    \"aux_type_5\": \"lags\",\r\n    \"contacts\": [\r\n        {\r\n            \"phone\": \"08148841799\",\r\n            \"countryId\": \"234\"\r\n        }\r\n    ],\r\n    \"type\": [\r\n        \"sms\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/ext/newtxnmsg","description":"<p>Send Messages to defined contact using your  api_key (this can be gotten from your dashboard) as <strong>token</strong></p>\n<p><strong>sender</strong>: An approved sender name from your account</p>\n<p><strong>message</strong>:Message content.</p>\n<p><strong>aux_type_1, aux_type_2, aux_type_3: aux_type_4, aux_type_5</strong>: Campaign type</p>\n<p><strong>contacts</strong> an array of the contact object with fields <strong>phone</strong> and <strong>countryId</strong></p>\n<p><strong>type</strong>: an array with campaign type typically \"sms\" </p>\n<p>See example for help</p>\n","urlObject":{"path":["ext","newtxnmsg"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f670f7c9-9399-4f08-8f6b-a43f1ad58c5a","name":"New Text Message","originalRequest":{"method":"POST","header":[{"key":"","value":"connect.sid=s:zikkdYtTr9o-MzCPdZqeGd3rGOpXovdj.NDuUHn+FlfzLG6zFR+J7FnweF/g+c+HGeq0upgdSa5w; connect.sid=s:5GOT3ADlbpP5itk6ZuvbQCYrvr8cmn6z.7WfreKbAmNKMfhjtspIMzeGXULR2O6jZrrXHpxupk54","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"tU8XV17gmMEztqgDqjnmFHzDWdUhhghPHcHlyAy42dDpmlhD9J\",\r\n    \"sender\": \"Tracksend\",\r\n     \"url\": \"www.tracksend.co\",\r\n    \"message\": \"This is a test2 API message from Rance [url]\",\r\n    \"aux_type_1\": \"woocomeerce\",\r\n    \"aux_type_2\": \"abandon\",\r\n    \"aux_type_3\": \"cart\",\r\n    \"aux_type_4\": \"ibsadan\",\r\n    \"aux_type_5\": \"lags\",\r\n    \"contacts\": [\r\n        {\r\n            \"phone\": \"08148841799\",\r\n            \"countryId\": \"234\"\r\n        }\r\n    ],\r\n    \"type\": [\r\n        \"sms\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/ext/newtxnmsg"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Aug 2021 15:03:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept,Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"ETag","value":"W/\"47-JiqLlxQr8SK3saRxU18bdFz4uHM\""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": true,\n    \"message\": \"Messages sent successfully.\",\n    \"status_code\": 201\n}"}],"_postman_id":"3533c732-4704-4a99-9f3a-024efa105868"},{"name":"Get Message Status","id":"4e76b772-a285-4159-8406-30481893b6cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"","value":"connect.sid=s:zikkdYtTr9o-MzCPdZqeGd3rGOpXovdj.NDuUHn+FlfzLG6zFR+J7FnweF/g+c+HGeq0upgdSa5w; connect.sid=s:5GOT3ADlbpP5itk6ZuvbQCYrvr8cmn6z.7WfreKbAmNKMfhjtspIMzeGXULR2O6jZrrXHpxupk54","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"token\": \"RdGMxFCUpSmHA2us2Bhk3epU15PJtCI7xCPAJSkKrLzX8rkFxJ\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/ext/txnmsgstatus/:id","description":"<p>Send Messages to defined contact using your  api_key (this can be gotten from your dashboard) as <strong>token</strong></p>\n<p><strong>sender</strong>: An approved sender name from your account</p>\n<p><strong>message</strong>:Message content.</p>\n<p><strong>aux_type_1, aux_type_2, aux_type_3: aux_type_4, aux_type_5</strong>: Campaign type</p>\n<p><strong>contacts</strong> an array of the contact object with fields <strong>phone</strong> and <strong>countryId</strong></p>\n<p><strong>type</strong>: an array with campaign type typically \"sms\" </p>\n<p>See example for help</p>\n","urlObject":{"path":["ext","txnmsgstatus",":id"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[{"type":"any","value":"6159349","key":"id"}]}},"response":[{"id":"745fbe02-c994-4804-9b2f-dffe6c290639","name":"New Text Message","originalRequest":{"method":"POST","header":[{"key":"","value":"connect.sid=s:zikkdYtTr9o-MzCPdZqeGd3rGOpXovdj.NDuUHn+FlfzLG6zFR+J7FnweF/g+c+HGeq0upgdSa5w; connect.sid=s:5GOT3ADlbpP5itk6ZuvbQCYrvr8cmn6z.7WfreKbAmNKMfhjtspIMzeGXULR2O6jZrrXHpxupk54","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"tU8XV17gmMEztqgDqjnmFHzDWdUhhghPHcHlyAy42dDpmlhD9J\",\r\n    \"sender\": \"Tracksend\",\r\n     \"url\": \"www.tracksend.co\",\r\n    \"message\": \"This is a test2 API message from Rance [url]\",\r\n    \"aux_type_1\": \"woocomeerce\",\r\n    \"aux_type_2\": \"abandon\",\r\n    \"aux_type_3\": \"cart\",\r\n    \"aux_type_4\": \"ibsadan\",\r\n    \"aux_type_5\": \"lags\",\r\n    \"contacts\": [\r\n        {\r\n            \"phone\": \"08148841799\",\r\n            \"countryId\": \"234\"\r\n        }\r\n    ],\r\n    \"type\": [\r\n        \"sms\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/ext/newtxnmsg"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Aug 2021 15:03:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept,Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"ETag","value":"W/\"47-JiqLlxQr8SK3saRxU18bdFz4uHM\""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": true,\n    \"message\": \"Messages sent successfully.\",\n    \"status_code\": 201\n}"}],"_postman_id":"4e76b772-a285-4159-8406-30481893b6cc"}],"id":"898a7e13-0376-4fdc-8fe7-548f59d28107","_postman_id":"898a7e13-0376-4fdc-8fe7-548f59d28107","description":""},{"name":"Campaign","item":[{"name":"New Campaign","id":"a1c64e2e-b9c6-4511-a243-9ef6bd01933f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"","value":"connect.sid=s:zikkdYtTr9o-MzCPdZqeGd3rGOpXovdj.NDuUHn+FlfzLG6zFR+J7FnweF/g+c+HGeq0upgdSa5w; connect.sid=s:5GOT3ADlbpP5itk6ZuvbQCYrvr8cmn6z.7WfreKbAmNKMfhjtspIMzeGXULR2O6jZrrXHpxupk54","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"token\": \"RdGMxFCUpSmHA2us2Bhk3epU15PJtCI7xCPAJSkKrLzX8rkFxJ\",\r\n    \"name\": \"single\",\r\n    \"sender\": \"AVONHMO\",\r\n    \"group\": \"New sept 2020\",\r\n    \"message\": \"Hello, test api message\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/ext/newcampaign","description":"<p>Send Messages to defined contact using your  api_key (this can be gotten from your dashboard) as <strong>token</strong></p>\n<p><strong>sender</strong>: An approved sender name from your account</p>\n<p><strong>message</strong>:Message content.</p>\n<p><strong>aux_type_1, aux_type_2, aux_type_3: aux_type_4, aux_type_5</strong>: Campaign type</p>\n<p><strong>contacts</strong> an array of the contact object with fields <strong>phone</strong> and <strong>countryId</strong></p>\n<p><strong>type</strong>: an array with campaign type typically \"sms\" </p>\n<p>See example for help</p>\n","urlObject":{"path":["ext","newcampaign"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"6ef9b9bf-f276-47f7-83fd-e97498104f86","name":"New Text Message","originalRequest":{"method":"POST","header":[{"key":"","value":"connect.sid=s:zikkdYtTr9o-MzCPdZqeGd3rGOpXovdj.NDuUHn+FlfzLG6zFR+J7FnweF/g+c+HGeq0upgdSa5w; connect.sid=s:5GOT3ADlbpP5itk6ZuvbQCYrvr8cmn6z.7WfreKbAmNKMfhjtspIMzeGXULR2O6jZrrXHpxupk54","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"token\": \"tU8XV17gmMEztqgDqjnmFHzDWdUhhghPHcHlyAy42dDpmlhD9J\",\r\n    \"sender\": \"Tracksend\",\r\n     \"url\": \"www.tracksend.co\",\r\n    \"message\": \"This is a test2 API message from Rance [url]\",\r\n    \"aux_type_1\": \"woocomeerce\",\r\n    \"aux_type_2\": \"abandon\",\r\n    \"aux_type_3\": \"cart\",\r\n    \"aux_type_4\": \"ibsadan\",\r\n    \"aux_type_5\": \"lags\",\r\n    \"contacts\": [\r\n        {\r\n            \"phone\": \"08148841799\",\r\n            \"countryId\": \"234\"\r\n        }\r\n    ],\r\n    \"type\": [\r\n        \"sms\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/ext/newtxnmsg"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 17 Aug 2021 15:03:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"71"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept,Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"ETag","value":"W/\"47-JiqLlxQr8SK3saRxU18bdFz4uHM\""}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": true,\n    \"message\": \"Messages sent successfully.\",\n    \"status_code\": 201\n}"}],"_postman_id":"a1c64e2e-b9c6-4511-a243-9ef6bd01933f"}],"id":"a5dc8d8f-41d3-45fc-8fe0-c0900cb5a7c7","_postman_id":"a5dc8d8f-41d3-45fc-8fe0-c0900cb5a7c7","description":""},{"name":"Groups","item":[{"name":"Create Group","id":"28ab0832-07ac-41f1-a8c8-ecc2e2c1a11d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"","value":"connect.sid=s:zikkdYtTr9o-MzCPdZqeGd3rGOpXovdj.NDuUHn+FlfzLG6zFR+J7FnweF/g+c+HGeq0upgdSa5w; connect.sid=s:5GOT3ADlbpP5itk6ZuvbQCYrvr8cmn6z.7WfreKbAmNKMfhjtspIMzeGXULR2O6jZrrXHpxupk54","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"token\": \"RdGMxFCUpSmHA2us2Bhk3epU15PJtCI7xCPAJSkKrLzX8rkFxJ\",\r\n  \"name\": \"New sept 2020\",\r\n  \"description\": \"test api group\",\r\n  \"countryall\": \"234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/ext/newgroup","description":"<p>Send Messages to defined contact using your  api_key (this can be gotten from your dashboard) as <strong>token</strong></p>\n<p><strong>sender</strong>: An approved sender name from your account</p>\n<p><strong>message</strong>:Message content.</p>\n<p><strong>aux_type_1, aux_type_2, aux_type_3: aux_type_4, aux_type_5</strong>: Campaign type</p>\n<p><strong>contacts</strong> an array of the contact object with fields <strong>phone</strong> and <strong>countryId</strong></p>\n<p><strong>type</strong>: an array with campaign type typically \"sms\" </p>\n<p>See example for help</p>\n","urlObject":{"path":["ext","newgroup"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[]}},"response":[{"id":"a8e8843a-982a-41b7-95ba-200ec6bb3c77","name":"Create Group","originalRequest":{"method":"POST","header":[{"key":"","value":"connect.sid=s:zikkdYtTr9o-MzCPdZqeGd3rGOpXovdj.NDuUHn+FlfzLG6zFR+J7FnweF/g+c+HGeq0upgdSa5w; connect.sid=s:5GOT3ADlbpP5itk6ZuvbQCYrvr8cmn6z.7WfreKbAmNKMfhjtspIMzeGXULR2O6jZrrXHpxupk54","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"token\": \"BSSo2W6bwfhq4X1tWOz38Qr56BV7PBgV7BWoIF6875Y39ggtcb\",\r\n  \"name\": \"New sept 2020\",\r\n  \"description\": \"test api group\",\r\n  \"countryall\": \"234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/ext/newgroup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept,Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"279"},{"key":"ETag","value":"W/\"117-gCzO7WZeVhUPz+BVe6pKPXf8vPU\""},{"key":"Date","value":"Sun, 19 Sep 2021 15:46:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"can_optin\": true,\n        \"platformtypId\": 1,\n        \"_id\": \"61475b4bd96e9167974060fb\",\n        \"userId\": 10,\n        \"name\": \"New sept 2020\",\n        \"description\": \"test api group\",\n        \"createdAt\": \"2021-09-19T15:46:19.803Z\",\n        \"updatedAt\": \"2021-09-19T15:46:19.803Z\"\n    },\n    \"message\": \"Group created successfully\",\n    \"status_code\": 201\n}"}],"_postman_id":"28ab0832-07ac-41f1-a8c8-ecc2e2c1a11d"},{"name":"Update Group","id":"3fd727fb-ee4f-4756-a7d1-e3450fe6c14b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{ \n    \"token\": \"RdGMxFCUpSmHA2us2Bhk3epU15PJtCI7xCPAJSkKrLzX8rkFxJ\",\n    \"name\": \"tunde\",  \n    \"description\": \"lorem_ipsum\",\n    \"can_optin\": true\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/v1/ext/updategroup/:id","description":"<p><strong>All fields a required</strong> so send existing data back to api if some fileds are not getting updated.</p>\n","urlObject":{"path":["ext","updategroup",":id"],"host":["http://localhost:5000/api/v1"],"query":[],"variable":[{"type":"any","value":"61475b4bd96e9167974060fb","key":"id"}]}},"response":[{"id":"c5efd6a6-2395-4270-a27f-da734075553b","name":"Update Group","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"{{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"tunde\",  \n    \"description\": \"lorem_ipsum\",\n    \"can_optin\": true\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/api/v1/user/group/:id","host":["http://localhost:5000/api/v1"],"path":["user","group",":id"],"variable":[{"key":"id","value":"5f71d051412b3c0776e61104"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Headers","value":"Origin, X-Requested-With, Content-Type, Accept,Authorization"},{"key":"Access-Control-Allow-Methods","value":"GET, POST, PUT, PATCH, DELETE, OPTIONS"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"287"},{"key":"ETag","value":"W/\"11f-9lu7k/Ly+A5Rp7FakXXSRzKCswo\""},{"key":"Date","value":"Thu, 12 Aug 2021 12:26:26 GMT"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"can_optin\": true,\n        \"platformtypId\": 1,\n        \"_id\": \"5f71d051412b3c0776e61104\",\n        \"id\": 106,\n        \"name\": \"tunde\",\n        \"userId\": 10,\n        \"description\": \"lorem_ipsum\",\n        \"count\": 2,\n        \"createdAt\": \"2019-11-29T14:42:57.000Z\",\n        \"updatedAt\": \"2021-08-12T12:26:26.241Z\"\n    },\n    \"message\": \"group updated successfully\",\n    \"status_code\": 200\n}"}],"_postman_id":"3fd727fb-ee4f-4756-a7d1-e3450fe6c14b"}],"id":"a75d19ba-7efe-445e-99fd-170c71e1d244","_postman_id":"a75d19ba-7efe-445e-99fd-170c71e1d244","description":""}],"event":[{"listen":"prerequest","script":{"id":"67fe70f5-16a7-4e82-8a65-99bdafe56bf9","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"54becfa8-d5ec-49e7-98a2-b9be9a6357a4","type":"text/javascript","exec":[""]}}],"variable":[{"key":"baseUrl","value":"https://be1.tracksend.co/api/v1"},{"key":"baseUrl","value":"http://localhost:5000/api/v1"},{"key":"userToken","value":"RdGMxFCUpSmHA2us2Bhk3epU15PJtCI7xCPAJSkKrLzX8rkFxJ"}]}