{"info":{"_postman_id":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","name":"Gateway","description":"<html><head></head><body><p>The client must send bearer token in the <code>Authorization</code> header when making requests.</p>\n<p>You can find the bearer token from <strong>Customer panel &gt;&gt; Developer</strong> (ex: <a href=\"https://gateway.picotech.app/authorization/token/create\">https://gateway.picotech.app/authorization/token/create</a>)</p>\n<p>Example Header:</p>\n<h4 id=\"authorization-bearer-72d7cofiiovbug8uakqkrgevh10otcvscyn4ouoflxz\"><code>Authorization: Bearer 72|d7cofIioVbuG8uAKqkrgeVH10otCVScyn4oUoflXz</code></h4>\n<p>And the <strong>BASE_URL</strong> would be: <strong><code>{YOUR_DOMAIN}/api</code></strong></p>\n<p>Ex: <em><strong>gateway.picotech.app/api/add/device</strong></em></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15947626","collectionId":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","publishedId":"UzJLPGYF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"36454F","highlight":"ff4961"},"publishDate":"2022-07-07T15:46:37.000Z"},"item":[{"name":"Devices","item":[{"name":"Add Device","id":"b08a802f-d528-41a9-98a5-3b7c26fadade","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Samsung S22 Plus","type":"text"},{"key":"model","value":"S22 Plus","type":"text"},{"key":"app_version","value":"1","type":"text"},{"key":"device_unique_id","value":"c3q767cde25ae01a","type":"text"},{"key":"android_version","value":"10","type":"text"}]},"url":"{{BASE_URL}}/add/device","urlObject":{"path":["add","device"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b08a802f-d528-41a9-98a5-3b7c26fadade"},{"name":"Get Devices","id":"394f673a-8643-4370-87de-7a64157660dd","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"}],"url":"{{BASE_URL}}/get/devices","urlObject":{"path":["get","devices"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"729eea4d-3752-444b-8284-7252d41ede3b","name":"Get Devices","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{BASE_URL}}/get/devices"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"keep-alive","value":"timeout=5, max=100"},{"key":"x-powered-by","value":"PHP/8.1.18"},{"key":"cache-control","value":"no-cache, private"},{"key":"content-type","value":"application/json"},{"key":"x-ratelimit-limit","value":"60"},{"key":"x-ratelimit-remaining","value":"59"},{"key":"content-length","value":"603"},{"key":"date","value":"Mon, 15 May 2023 09:08:55 GMT"},{"key":"server","value":"LiteSpeed"},{"key":"x-turbo-charged-by","value":"LiteSpeed"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 335,\n            \"customer_id\": \"1\",\n            \"device_unique_id\": \"9c3d6d1de1a26e40\",\n            \"name\": \"Nothing\",\n            \"model\": \"A063\",\n            \"android_version\": \"33\",\n            \"app_version\": \"1.4\",\n            \"status\": \"active\",\n            \"created_at\": \"2023-05-14T11:49:37.000000Z\",\n            \"updated_at\": \"2023-05-14T11:49:37.000000Z\",\n            \"sim_info\": \"[\\\"0:2:Free\\\"]\"\n        },\n        {\n            \"id\": 334,\n            \"customer_id\": \"1\",\n            \"device_unique_id\": \"503cd1a7931054e2\",\n            \"name\": \"Xiaomi\",\n            \"model\": \"22081212UG\",\n            \"android_version\": \"33\",\n            \"app_version\": \"1.4\",\n            \"status\": \"active\",\n            \"created_at\": \"2023-05-14T03:49:04.000000Z\",\n            \"updated_at\": \"2023-05-14T03:49:04.000000Z\",\n            \"sim_info\": \"[\\\"0:1:Beeline UZ\\\",\\\"1:3:HUMANS\\\"]\"\n        }\n    ]\n}"}],"_postman_id":"394f673a-8643-4370-87de-7a64157660dd"},{"name":"Get Subscriber","id":"da61706d-3a35-4ad3-bca8-97995d743a2a","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"}],"url":"{{BASE_URL}}/get/subscriber/id?device_id=335","description":"<p>You can get the <code>device_id</code> from <strong>Get Devices API,</strong> use <code>id</code> from <strong>Get Devices API</strong></p>\n","urlObject":{"path":["get","subscriber","id"],"host":["{{BASE_URL}}"],"query":[{"key":"device_id","value":"335"}],"variable":[]}},"response":[{"id":"6c51e60a-1f60-432a-bb84-db36d4e0c79c","name":"Get Subscriber","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":{"raw":"{{BASE_URL}}/get/subscriber/id?device_id=335","host":["{{BASE_URL}}"],"path":["get","subscriber","id"],"query":[{"key":"device_id","value":"335"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"keep-alive","value":"timeout=5, max=100"},{"key":"x-powered-by","value":"PHP/8.1.18"},{"key":"cache-control","value":"no-cache, private"},{"key":"content-type","value":"application/json"},{"key":"x-ratelimit-limit","value":"60"},{"key":"x-ratelimit-remaining","value":"59"},{"key":"content-length","value":"33"},{"key":"date","value":"Mon, 15 May 2023 14:38:22 GMT"},{"key":"server","value":"LiteSpeed"},{"key":"x-turbo-charged-by","value":"LiteSpeed"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        \"2\"\n    ]\n}"}],"_postman_id":"da61706d-3a35-4ad3-bca8-97995d743a2a"}],"id":"f33074ba-8ec8-4e93-9cf2-4df4de593b99","_postman_id":"f33074ba-8ec8-4e93-9cf2-4df4de593b99","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","id":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","name":"Gateway","type":"collection"}}},{"name":"SMS box","item":[{"name":"Quick Send","id":"983da0c9-9065-43c4-93f8-781f1b821b2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"device_id","value":"335","description":"<p>Enter your device id</p>\n","type":"text"},{"key":"subscriber_id","value":"2","description":"<p>You will get the id from /get/subscriber/id API</p>\n","type":"text"},{"key":"to_numbers","value":"+64234860000,+24198710000","description":"<p>Multiple number seperate by (,) comma</p>\n","type":"text"},{"key":"body","value":"Hi Customer","description":"<p>Message body</p>\n","type":"text"},{"key":"isSchedule","value":"","description":"<p>If want to sent message by schedule must be use  \"on\" otherwise keep it null/empty</p>\n","type":"text"},{"key":"schedule","value":"","description":"<p>If want to sent message by schedule must be use  schedule date \"07/03/2022 12:00 AM\"  otherwise keep it null/empty</p>\n","type":"text"}]},"url":"{{BASE_URL}}/sent/compose","urlObject":{"path":["sent","compose"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"376263a4-8605-487b-bc8c-58da2c773e26","name":"Quick Send","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"device_id","value":"1","description":"Enter your device id","type":"text"},{"key":"to_numbers","value":"+64234865541,+24198711586","description":"Multiple number seperate by (,) comma","type":"text"},{"key":"subscriber_id","value":"1","description":"You will get the id from /get/subscriber/id API","type":"text"},{"key":"body","value":"Hi Customer","description":"Message body","type":"text"},{"key":"isSchedule","value":"","description":"If want to sent message by schedule must be use  \"on\" otherwise keep it null/empty","type":"text"},{"key":"schedule","value":"","description":"If want to sent message by schedule must be use  schedule date \"07/03/2022 12:00 AM\"  otherwise keep it null/empty","type":"text"}]},"url":"{{BASE_URL}}/sent/compose"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8900"},{"key":"Date","value":"Sun, 03 Jul 2022 11:11:30 GMT"},{"key":"Date","value":"Sun, 03 Jul 2022 11:11:30 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Message queued successfully\"\n}"}],"_postman_id":"983da0c9-9065-43c4-93f8-781f1b821b2d"},{"name":"Inbox List","id":"4ee6251c-d668-411b-82d6-60f009c60bc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{BASE_URL}}/inbox/list?page=1","urlObject":{"path":["inbox","list"],"host":["{{BASE_URL}}"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"4ee6251c-d668-411b-82d6-60f009c60bc7"},{"name":"Sent List","id":"fdeb8603-3ebe-41fe-9623-a2e9d8401127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{BASE_URL}}/sent/list?page=1","urlObject":{"path":["sent","list"],"host":["{{BASE_URL}}"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[],"_postman_id":"fdeb8603-3ebe-41fe-9623-a2e9d8401127"}],"id":"1683a486-9822-40d8-b512-d17fa8fa3d6e","_postman_id":"1683a486-9822-40d8-b512-d17fa8fa3d6e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","id":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","name":"Gateway","type":"collection"}}},{"name":"Campaign","item":[{"name":"Campaign List","id":"d2c50825-be13-497c-b9b9-a1a461f11b2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{BASE_URL}}/campaign/list","urlObject":{"path":["campaign","list"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2c50825-be13-497c-b9b9-a1a461f11b2d"},{"name":"Create Campaign","id":"49e8446a-b083-44e0-9d1f-2d6c3569810d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"POST","header":[{"key":"Acc","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"CMP-01","description":"<p>Enter campaign name</p>\n","type":"text"},{"key":"to_number","value":"+34314523445, +74723073070, +29074879503, +83787656398, +67708524146, +41636763738, +57198640720, +44283334624, +43169116739, +47994101747, +24571237441","description":"<p>Use multiple number seperate by (,) comma</p>\n","type":"text"},{"key":"start_date","value":"2022/07/03","type":"text"},{"key":"end_date","value":"2022/07/03","type":"text"},{"key":"start_time","value":"17:21","type":"text"},{"key":"end_time","value":"17:29","type":"text"},{"key":"template_id","value":"1","description":"<p>Enter valid sms template ID</p>\n","type":"text"},{"key":"template_body","value":"Hi Customer ","description":"<p>Enter message body</p>\n","type":"text"},{"key":"from_devices[]","value":"1","type":"text"},{"key":"from_devices[]","value":"3","type":"text"}]},"url":"{{BASE_URL}}/campaign/store","urlObject":{"path":["campaign","store"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"4f6c3e5f-e8b4-4e1f-ad90-94e6f23f731a","name":"Create Campaign","originalRequest":{"method":"POST","header":[{"key":"Acc","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"title","value":"CMP-01","description":"Enter campaign name","type":"text"},{"key":"to_number","value":"+34314523445, +74723073070, +29074879503, +83787656398, +67708524146, +41636763738, +57198640720, +44283334624, +43169116739, +47994101747, +24571237441","description":"Use multiple number seperate by (,) comma","type":"text"},{"key":"start_date","value":"2022/07/03","type":"text"},{"key":"end_date","value":"2022/07/03","type":"text"},{"key":"start_time","value":"17:21","type":"text"},{"key":"end_time","value":"17:29","type":"text"},{"key":"template_id","value":"1","description":"Enter valid sms template ID","type":"text"},{"key":"template_body","value":"Hi Customer ","description":"Enter message body","type":"text"},{"key":"from_devices[]","value":"1","type":"text"},{"key":"from_devices[]","value":"3","type":"text"}]},"url":"{{BASE_URL}}/campaign/store"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8900"},{"key":"Date","value":"Sun, 03 Jul 2022 13:24:37 GMT"},{"key":"Date","value":"Sun, 03 Jul 2022 13:24:37 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.7"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Campaign created successfully\"\n}"}],"_postman_id":"49e8446a-b083-44e0-9d1f-2d6c3569810d"},{"name":"Get SMS Template","id":"05887e16-39c5-4eb4-b6a5-dda67e035181","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"}],"url":"{{BASE_URL}}/sms/template","urlObject":{"path":["sms","template"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"f76213ca-2e2c-4ca5-adf6-13987c9f7bb8","name":"Get SMS Template","originalRequest":{"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"{{BASE_URL}}/sms/template"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Thu, 07 Jul 2022 14:33:15 GMT"},{"key":"Date","value":"Thu, 07 Jul 2022 14:33:15 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"customer_id\": 1,\n            \"title\": \"Registration\",\n            \"status\": \"active\",\n            \"body\": \"Hi {first_name},\\r\\nWelcome to the application. Your registration has been completed successfully.\",\n            \"created_at\": \"2022-07-07T14:33:05.000000Z\",\n            \"updated_at\": \"2022-07-07T14:33:05.000000Z\"\n        }\n    ]\n}"}],"_postman_id":"05887e16-39c5-4eb4-b6a5-dda67e035181"}],"id":"6d6bf267-a22e-469b-8254-d0ed040e0207","_postman_id":"6d6bf267-a22e-469b-8254-d0ed040e0207","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","id":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","name":"Gateway","type":"collection"}}},{"name":"Contacts","item":[{"name":"Get Contacts","id":"5934ec00-2723-4559-a5d3-3ce052b66c1d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{BASE_URL}}/contacts","urlObject":{"path":["contacts"],"host":["{{BASE_URL}}"],"query":[],"variable":[]}},"response":[{"id":"bd1757fb-274c-44ab-871e-befb88222595","name":"Get Contacts","originalRequest":{"method":"GET","header":[],"url":"{{BASE_URL}}/contacts"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Thu, 07 Jul 2022 14:35:38 GMT"},{"key":"Date","value":"Thu, 07 Jul 2022 14:35:38 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"contacts\": [\n            {\n                \"first_name\": \"Alex\",\n                \"last_name\": \"Doe\",\n                \"number\": \"+8801735990599\",\n                \"email\": null,\n                \"city\": null,\n                \"state\": null,\n                \"zip_code\": null,\n                \"note\": null,\n                \"address\": null,\n                \"company\": null,\n                \"created_at\": \"2022-07-07T14:35:10.000000Z\",\n                \"updated_at\": \"2022-07-07T14:35:10.000000Z\"\n            }\n        ]\n    }\n}"}],"_postman_id":"5934ec00-2723-4559-a5d3-3ce052b66c1d"},{"name":"Contact Details","id":"6bc4e961-bb23-43fb-8f4d-8c89bb65b8c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{TOKEN}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{BASE_URL}}/contact/details?number=+8801735990599","urlObject":{"path":["contact","details"],"host":["{{BASE_URL}}"],"query":[{"key":"number","value":"+8801735990599"}],"variable":[]}},"response":[{"id":"cffb334d-2a16-44b5-a2b3-0177750a42cf","name":"Contact Details","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{BASE_URL}}/contact/details?number=+8801735990599","host":["{{BASE_URL}}"],"path":["contact","details"],"query":[{"key":"number","value":"+8801735990599"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"127.0.0.1:8000"},{"key":"Date","value":"Thu, 07 Jul 2022 14:36:14 GMT"},{"key":"Date","value":"Thu, 07 Jul 2022 14:36:14 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/7.4.11"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"contact\": {\n            \"first_name\": \"Alex\",\n            \"last_name\": \"Doe\",\n            \"number\": \"+8801735990599\",\n            \"email\": null,\n            \"city\": null,\n            \"state\": null,\n            \"zip_code\": null,\n            \"note\": null,\n            \"address\": null,\n            \"company\": null,\n            \"created_at\": \"2022-07-07T14:35:10.000000Z\",\n            \"updated_at\": \"2022-07-07T14:35:10.000000Z\"\n        },\n        \"messages\": [],\n        \"more\": false\n    }\n}"}],"_postman_id":"6bc4e961-bb23-43fb-8f4d-8c89bb65b8c0"}],"id":"f96cc7d3-6a97-49a9-9c9e-f3c6bc85f46e","_postman_id":"f96cc7d3-6a97-49a9-9c9e-f3c6bc85f46e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[]},"isInherited":true,"source":{"_postman_id":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","id":"7ce95503-d574-4fa7-9bb9-eb8f3b8c5f88","name":"Gateway","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"9b8103c0-220e-4e46-a605-b9297913fb85","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8204dc94-7b90-4c20-9657-6eea56694291","type":"text/javascript","exec":[""]}}]}