{"info":{"_postman_id":"d1fdeb87-793c-4f48-8ef5-6a4dc0f46696","name":"InOut WhatsApp REST API","description":"<html><head></head><body><h1 id=\"api-documentation\">🚀 API Documentation</h1>\n<p>InOut API allows you to send WhatsApp messages, images, audios, videos and documents to your personal WhatsApp number using the official Meta WhatsApp API. <strong>It is the simplest Official WhatsApp API for personal usage.</strong></p>\n<p>InOut API is also available on <a href=\"https://inout.bot/whatsapp-with-ifttt/\">IFTTT</a>, <a href=\"https://inout.bot/whatsapp-with-make/\">make</a>, <a href=\"https://inout.bot/whatsapp-with-zappier/\">Zapier</a>, <a href=\"https://inout.bot/whatsapp-with-appsheet/\">AppSheet</a>, and many more comming soon.</p>\n<h2 id=\"🔖-authentication\">🔖 Authentication</h2>\n<p>There are two ways to Authenticate:</p>\n<h4 id=\"oauth2-authentication\"><strong>OAuth2 Authentication</strong></h4>\n<p>You can authenticate your WhatsApp number using OAuth2 protocol. This will send an OTP (One-Time passcode) to your number using WhatsApp Official API.</p>\n<p>This method is only available when using InOut.bot API with Zapier, make and IFTTT.</p>\n<img src=\"https://content.pstmn.io/10ff96fe-1dcd-4969-a4f1-005b17f4f131/aW1hZ2UucG5n\" alt=\"OTP\" width=\"291\" height=\"411\">\n\n<h4 id=\"apikey\"><strong>APIkey</strong></h4>\n<p>You can get an APIkey to be used with the REST API.</p>\n<p>To receive an APIkey, just send <code>Create APIkey</code> to the InOut.bot phone number (<code>+12343322110</code>) or click <a href=\"https://wa.me/message/XAGHCI7AOEUHG1\">here</a> to send the message using a Whatsapp shortcut.</p>\n<h2 id=\"there-are-many-type-of-messages-that-you-can-use\">There are many type of messages that you can use</h2>\n<p><strong><code>type={{message_type}}</code></strong></p>\n<p>📢 <code>message</code></p>\n<p>💥 <code>urgent</code></p>\n<p>🚗 <code>car</code></p>\n<p>⛅ <code>weather</code></p>\n<p>🚨 <code>alarm</code></p>\n<p>💒 <code>home</code></p>\n<p>📆 <code>reminder</code></p>\n<h2 id=\"💪-inoutbot-use-the-official-whatsapp-api-meta\">💪 InOut.bot use the Official WhatsApp API (Meta)</h2>\n<p>Did you know that InOut.bot is using the official WhatsApp API from Meta to authenticate, send and receive messages?</p>\n<h2 id=\"💡-rest-api-support\">💡 REST API Support</h2>\n<p>If you need help, don't hesitate to contact us at <a href=\"https://mailto:support@inout.bot\">support@inout.bot</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🚀 API Documentation","slug":"api-documentation"}],"owner":"38486913","collectionId":"d1fdeb87-793c-4f48-8ef5-6a4dc0f46696","publishedId":"2sAXqta1XJ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-09-20T16:51:51.000Z"},"item":[{"name":"Send Message","event":[{"listen":"test","script":{"id":"8214cb7e-da86-416b-bcc0-2e158ebf0109","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"ba085ed1-f4a3-4333-ae55-2570f096ce9a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"apikey"},{"key":"value","value":"12345678901234567890123456789012"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.inout.bot/send?type=alarm_notification&message=This is a test message","description":"<p>This is a GET request and it is used to \"get\" data from an endpoint. There is no request body for a GET request, but you can use query parameters to help specify the resource you want data on (e.g., in this request, we have <code>id=1</code>).</p>\n<p>A successful GET response will have a <code>200 OK</code> status, and should include some kind of response body - for example, HTML web content or JSON data.</p>\n","urlObject":{"protocol":"https","path":["send"],"host":["api","inout","bot"],"query":[{"key":"type","value":"alarm_notification"},{"key":"message","value":"This is a test message"},{"disabled":true,"description":{"content":"<p>Optional: Can only be used when you have \"trusted numbers\"</p>\n","type":"text/plain"},"key":"phone","value":"+1234567890"}],"variable":[]}},"response":[{"id":"a8ab0db0-8d85-48ad-863b-37e26bc63dfd","name":"OK: Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.inout.bot/send?message=This is a test message&type=alarm_notification&apikey=************","protocol":"https","host":["api","inout","bot"],"path":["send"],"query":[{"key":"message","value":"This is a test message"},{"key":"type","value":"alarm_notification"},{"key":"apikey","value":"************"},{"key":"phone","value":"+1234567890","description":"Optional: Can only be used when you have \"trusted numbers\"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 18:25:05 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"188"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"phone\": \"1234567890\",\n    \"message\": \"This is a test message\",\n    \"type\": \"alarm_notification\",\n    \"name\": \"Dummy user\",\n    \"sent_result\": \"Success\",\n    \"balance\": \"10\"\n}"},{"id":"1d44d4e1-9ad2-4b55-af75-8bd9eb09f818","name":"Error: Wrong APIkey/Token","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.inout.bot/send?message=This is a test message&apikey=aaaaaaaaaaa&type=alarm_notification","protocol":"https","host":["api","inout","bot"],"path":["send"],"query":[{"key":"message","value":"This is a test message","description":"WhatsApp Text Message to send to your number"},{"key":"apikey","value":"aaaaaaaaaaa"},{"key":"type","value":"alarm_notification"},{"key":"phone","value":"+1234567890","description":"Optional: Can only be used when you have \"trusted numbers\"","type":"text","disabled":true}]}},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 18:22:27 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"67"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Wrong Authentication (Invalid token/apikey)\"\n    }\n}"},{"id":"99f218bc-96fe-4f85-88f5-039ed5241061","name":"Error: APIkey / Token missing","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.inout.bot/send?message=This is a test message&type=alarm_notification","protocol":"https","host":["api","inout","bot"],"path":["send"],"query":[{"key":"message","value":"This is a test message","description":"WhatsApp Text Message to send to your number"},{"key":"type","value":"alarm_notification"},{"key":"phone","value":"+1234567890","description":"Optional: Can only be used when you have \"trusted numbers\"","type":"text","disabled":true}]}},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 18:23:19 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"79"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Authentication failed (Bearer token and APIkey missing)\"\n    }\n}"}],"_postman_id":"ba085ed1-f4a3-4333-ae55-2570f096ce9a"},{"name":"Send Media","event":[{"listen":"test","script":{"id":"8214cb7e-da86-416b-bcc0-2e158ebf0109","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"d7ef87f3-baab-41e3-9e8b-e79822543bbc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"apikey","apikey":{"basicConfig":[{"key":"key","value":"apikey"},{"key":"value","value":"12345678901234567890123456789012"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.inout.bot/send?message=This is a test message with Media&mediaurl=https%3A%2F%2Fmedia.adeo.com%2Fmarketplace%2FLMES%2F85045154%2F3084681.jpeg","description":"<p>This is a GET request and it is used to \"get\" data from an endpoint. There is no request body for a GET request, but you can use query parameters to help specify the resource you want data on (e.g., in this request, we have <code>id=1</code>).</p>\n<p>A successful GET response will have a <code>200 OK</code> status, and should include some kind of response body - for example, HTML web content or JSON data.</p>\n","urlObject":{"protocol":"https","path":["send"],"host":["api","inout","bot"],"query":[{"description":{"content":"<p>WhatsApp Text Message to send to your number</p>\n","type":"text/plain"},"key":"message","value":"This is a test message with Media"},{"description":{"content":"<p>Media (Image, Audio, Document, Video) URL. It MUST be URLencoded.</p>\n","type":"text/plain"},"key":"mediaurl","value":"https%3A%2F%2Fmedia.adeo.com%2Fmarketplace%2FLMES%2F85045154%2F3084681.jpeg"},{"disabled":true,"description":{"content":"<p>Optional: Can only be used when you have \"trusted numbers\"</p>\n","type":"text/plain"},"key":"phone","value":"+1234567890"}],"variable":[]}},"response":[{"id":"274dd62c-8df6-4022-a5a7-a28ca7e11c06","name":"OK: Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.inout.bot/send?message=This is a test message with Media&mediaurl=https%3A%2F%2Fmedia.adeo.com%2Fmarketplace%2FLMES%2F85045154%2F3084681.jpeg","protocol":"https","host":["api","inout","bot"],"path":["send"],"query":[{"key":"message","value":"This is a test message with Media","description":"WhatsApp Text Message to send to your number"},{"key":"mediaurl","value":"https%3A%2F%2Fmedia.adeo.com%2Fmarketplace%2FLMES%2F85045154%2F3084681.jpeg","description":"Media (Image, Audio, Document, Video) URL. It MUST be URLencoded."},{"key":"phone","value":"+1234567890","description":"Optional: Can only be used when you have \"trusted numbers\"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Sep 2024 21:37:22 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"191"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"size_kb\": 309,\n    \"content_type\": \"image/jpeg\",\n    \"phone\": \"1234567890\",\n    \"message\": \"This is a test message with Image\",\n    \"type\": \"media_alarm\",\n    \"name\": \"Dummy user-Do not delete\",\n    \"sent_result\": \"Success\",\n    \"balance\": 10\n}"},{"id":"ed983575-1e12-4fd3-8db5-2a648fd39ad3","name":"Error: Wrong APIkey/Token","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.inout.bot/send?message=This is a test message with Media&mediaurl=https%3A%2F%2Fmedia.adeo.com%2Fmarketplace%2FLMES%2F85045154%2F3084681.jpeg","protocol":"https","host":["api","inout","bot"],"path":["send"],"query":[{"key":"message","value":"This is a test message with Media","description":"WhatsApp Text Message to send to your number"},{"key":"mediaurl","value":"https%3A%2F%2Fmedia.adeo.com%2Fmarketplace%2FLMES%2F85045154%2F3084681.jpeg","description":"Media (Image, Audio, Document, Video) URL. It MUST be URLencoded."},{"key":"phone","value":"+1234567890","description":"Optional: Can only be used when you have \"trusted numbers\"","type":"text","disabled":true}]}},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Sep 2024 21:38:23 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"67"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Wrong Authentication (Invalid token/apikey)\"\n    }\n}"},{"id":"57193128-f44a-4c56-976c-daf0319fc0b8","name":"Error: APIkey / Token missing","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://api.inout.bot/send?message=This is a test message with Media&mediaurl=https%3A%2F%2Fmedia.adeo.com%2Fmarketplace%2FLMES%2F85045154%2F3084681.jpeg","protocol":"https","host":["api","inout","bot"],"path":["send"],"query":[{"key":"message","value":"This is a test message with Media","description":"WhatsApp Text Message to send to your number"},{"key":"mediaurl","value":"https%3A%2F%2Fmedia.adeo.com%2Fmarketplace%2FLMES%2F85045154%2F3084681.jpeg","description":"Media (Image, Audio, Document, Video) URL. It MUST be URLencoded."},{"key":"phone","value":"+1234567890","description":"Optional: Can only be used when you have \"trusted numbers\"","type":"text","disabled":true}]}},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 18:23:19 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"79"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Authentication failed (Bearer token and APIkey missing)\"\n    }\n}"}],"_postman_id":"d7ef87f3-baab-41e3-9e8b-e79822543bbc"},{"name":"Send Message","event":[{"listen":"test","script":{"id":"fa74886f-3c6b-4f6e-9e85-a3a0f6ede1b9","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"9a377f59-a4b5-472c-941f-8364a1c93618","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345678901234567890123456789012"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message\",\n    \"type\": \"alarm_notification\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send","description":"<p>POST Method to send Text Messages using WhatsApp. The Message in passed to the API as a json parameter.</p>\n","urlObject":{"protocol":"https","path":["send"],"host":["api","inout","bot"],"query":[],"variable":[]}},"response":[{"id":"7e8a3c74-866b-4b47-9f49-157f0c56f71e","name":"OK: Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message\",\n    \"type\": \"alarm_notification\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 19:11:12 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"189"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"phone\": \"1234567890\",\n    \"message\": \"This is a test message\",\n    \"type\": \"alarm_notification\",\n    \"name\": \"Dummy user-Do not delete\",\n    \"sent_result\": \"Success\",\n    \"balance\": \"10\"\n}"},{"id":"26ecf778-74e2-41bb-9c5c-102059752676","name":"Error: Wrong APIkey/Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message\",\n    \"type\": \"alarm_notification\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 19:03:42 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"67"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Wrong Authentication (Invalid token/apikey)\"\n    }\n}"},{"id":"9befad5a-bb0b-4a29-849b-67b68ce6d301","name":"Error: APIkey / Token missing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message\",\n    \"type\": \"alarm_notification\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 19:11:51 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"79"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Authentication failed (Bearer token and APIkey missing)\"\n    }\n}"}],"_postman_id":"9a377f59-a4b5-472c-941f-8364a1c93618"},{"name":"Send Media (using URL)","event":[{"listen":"test","script":{"id":"fa74886f-3c6b-4f6e-9e85-a3a0f6ede1b9","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"ca4e68df-2faa-4e9e-bc95-ec5a3c5796c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345678901234567890123456789012"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"mediaurl\" : \"https://media.adeo.com/marketplace/LMES/85045154/3084681.jpeg\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send","description":"<p>POST method to send Media (Images) via WhatsApp passing the URL if the image as one of the json parameters.</p>\n","urlObject":{"protocol":"https","path":["send"],"host":["api","inout","bot"],"query":[],"variable":[]}},"response":[{"id":"411edf3a-6d64-4d82-87b3-0ceb3b13f98d","name":"OK. Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"mediaurl\" : \"https://media.adeo.com/marketplace/LMES/85045154/3084681.jpeg\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Sep 2024 21:28:11 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"192"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"size_kb\": 309,\n    \"content_type\": \"image/jpeg\",\n    \"phone\": \"1234567890\",\n    \"message\": \"This is a test message with Image\",\n    \"type\": \"media_alarm\",\n    \"name\": \"Dummy user-Do not delete\",\n    \"sent_result\": \"Success\",\n    \"balance\": 10\n}"},{"id":"ecfcdf2e-07ca-4858-ad7d-e3c68adb07d1","name":"Error: File too big","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"mediaurl\" : \"https://sample-videos.com/img/Sample-jpg-image-10mb.jpg\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Sep 2024 21:30:06 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"58"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"The file is too big\",\n        \"size_kb\": \"30261\"\n    }\n}"},{"id":"48496ee7-e585-4a83-b06b-355f9400c022","name":"Error: Wrong APIkey/Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"mediaurl\" : \"https://media.adeo.com/marketplace/LMES/85045154/3084681.jpeg\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 19:03:42 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"67"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Wrong Authentication (Invalid token/apikey)\"\n    }\n}"},{"id":"eda0ad49-797f-4403-87c0-f2f5e2565e3c","name":"Error: APIkey / Token missing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"mediaurl\" : \"https://media.adeo.com/marketplace/LMES/85045154/3084681.jpeg\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 19:11:51 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"79"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Authentication failed (Bearer token and APIkey missing)\"\n    }\n}"}],"_postman_id":"ca4e68df-2faa-4e9e-bc95-ec5a3c5796c2"},{"name":"Send Media (using Base64)","event":[{"listen":"test","script":{"id":"fa74886f-3c6b-4f6e-9e85-a3a0f6ede1b9","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"a89f1a1a-57eb-468a-9678-73fe7b9be2f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"12345678901234567890123456789012"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"media\" : \"iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAaElEQVR4nGIJPRrIAAZGXjoQxrGX5yAMLxMpCIOJgQhAlCLGI6wzIKwLJ9ggDKv6XghDJDWI6tbNnHcKwvp+fCKEMdPiO4The0GD2taxtFxbD2Ft/fcZwljRzg1hyMZtp7Z1gAAAAP//xjkYyxdK1L4AAAAASUVORK5CYII=\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send","description":"<p>POST method to send Media (Image) via WhatsApp with the file embeded in the json body as Base64 String.</p>\n","urlObject":{"protocol":"https","path":["send"],"host":["api","inout","bot"],"query":[],"variable":[]}},"response":[{"id":"42c127b0-e954-4884-b99b-56db61b46a99","name":"OK. Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"mediaurl\" : \"https://media.adeo.com/marketplace/LMES/85045154/3084681.jpeg\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Sep 2024 21:28:11 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"192"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"size_kb\": 309,\n    \"content_type\": \"image/jpeg\",\n    \"phone\": \"1234567890\",\n    \"message\": \"This is a test message with Image\",\n    \"type\": \"media_alarm\",\n    \"name\": \"Dummy user-Do not delete\",\n    \"sent_result\": \"Success\",\n    \"balance\": 10\n}"},{"id":"bebc768b-e6cc-4afd-b0c9-127bdd82d6e7","name":"Error: File too big","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"mediaurl\" : \"https://sample-videos.com/img/Sample-jpg-image-10mb.jpg\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 26 Sep 2024 21:30:06 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"58"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"The file is too big\",\n        \"size_kb\": \"30261\"\n    }\n}"},{"id":"73017bb6-40f4-461d-b29b-368b4986074f","name":"Error: Wrong APIkey/Token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"mediaurl\" : \"https://media.adeo.com/marketplace/LMES/85045154/3084681.jpeg\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 19:03:42 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"67"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Wrong Authentication (Invalid token/apikey)\"\n    }\n}"},{"id":"e0688445-f09c-4d4f-9a5d-bab3b0edc20b","name":"Error: APIkey / Token missing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"message\": \"This is a test message with Image\",\n    \"type\": \"alarm_notification\",\n    \"mediaurl\" : \"https://media.adeo.com/marketplace/LMES/85045154/3084681.jpeg\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.inout.bot/send"},"status":"Gone","code":410,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 20 Sep 2024 19:11:51 GMT"},{"key":"Server","value":"Apache/2.4.52 (Ubuntu)"},{"key":"Content-Length","value":"79"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"message\": \"Authentication failed (Bearer token and APIkey missing)\"\n    }\n}"}],"_postman_id":"a89f1a1a-57eb-468a-9678-73fe7b9be2f3"}],"auth":{"type":"apikey","apikey":{"basicConfig":[]}},"event":[{"listen":"prerequest","script":{"id":"b6f3fff6-bc44-4b28-9516-51cb03d5612d","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"99385332-f746-432c-857c-1794de46fdf6","type":"text/javascript","exec":[""]}}],"variable":[{"key":"message","value":"This is a test message","type":"string"},{"key":"type","value":"alarm_notification","type":"string"},{"key":"token","value":"12345678901234567890123456789012","type":"string"},{"key":"apikey","value":"12345678901234567890123456789012","type":"string"}]}