{"info":{"_postman_id":"df663a45-5b31-42f6-9960-a8aab090b558","name":"Baileys API v1.0.0-beta.1","description":"<html><head></head><body><p>API documentation for <a href=\"https://github.com/ookamiiixd/baileys-api\">https://github.com/ookamiiixd/baileys-api</a></p>\n<p>Note that all the <code>POST</code> routes expect a JSON body, so make sure to include the header</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18988925","collectionId":"df663a45-5b31-42f6-9960-a8aab090b558","publishedId":"2s8Z73zWbg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-06T17:09:39.000Z"},"item":[{"name":"Sessions","item":[{"name":"List Sessions","id":"8c24ed95-d341-4660-994e-e72f561eaf84","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/sessions","description":"<p>Return list of all sessions and its status</p>\n","urlObject":{"path":["sessions"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"9c9cdff2-e282-4d59-8f1b-ca0a603b7c56","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/sessions"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-BziKD/6SFOaCZ9uZlY3sFIseQ0E\""},{"key":"Date","value":"Mon, 20 Feb 2023 17:07:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"john\",\n        \"status\": \"AUTHENTICATED\"\n    },\n    {\n        \"id\": \"john2\",\n        \"status\": \"CONNECTED\"\n    }\n]"}],"_postman_id":"8c24ed95-d341-4660-994e-e72f561eaf84"},{"name":"Find Session","id":"48e4391a-9396-42d1-b99a-95c75cd640a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/sessions/:sessionId","description":"<p>Simply check if the session exists or not. If you want to check if the session has been authenticated, use the <code>Session Status</code> route instead</p>\n","urlObject":{"path":["sessions",":sessionId"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"7e638f41-7f11-4d68-a3b3-ac982a48ba4a","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/sessions/:sessionId","host":["http://localhost:3000"],"path":["sessions",":sessionId"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-z0/lHZFWOZczBvlOo3juN03ybgA\""},{"key":"Date","value":"Sun, 11 Dec 2022 09:35:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Session found\"\n}"},{"id":"8652816e-b093-4cdd-9504-62a159c64928","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/sessions/:sessionId","host":["http://localhost:3000"],"path":["sessions",":sessionId"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-SFg1yB5C4mPMRmz91HR7SP18WdM\""},{"key":"Date","value":"Sun, 11 Dec 2022 08:13:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Session not found\"\n}"}],"_postman_id":"48e4391a-9396-42d1-b99a-95c75cd640a4"},{"name":"Session Status","id":"ac14c9b4-a275-48fd-9560-3b04eee41bcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/sessions/:sessionId/status","description":"<p>Determine a session status. The value is based from the websocket connection status, except that if the session has been successfully authenticated, it will return <code>AUTHENTHICATED</code>. Possible value is <code>AUTHENTICATED, CONNECTED, CONNECTING, DISCONNECTED, DISCONNECTING</code></p>\n","urlObject":{"path":["sessions",":sessionId","status"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"39a8fa57-33ec-42f9-9421-62f6a8c6a50b","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/sessions/:sessionId/status","host":["http://localhost:3000"],"path":["sessions",":sessionId","status"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"26"},{"key":"ETag","value":"W/\"1a-2rL+0idpkPObmbCfxXLGOUTLnRY\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:02:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"AUTHENTICATED\"\n}"},{"id":"22e4ee28-41e1-47ae-95e9-22eef53d2097","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/sessions/:sessionId/status","host":["http://localhost:3000"],"path":["sessions",":sessionId","status"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-SFg1yB5C4mPMRmz91HR7SP18WdM\""},{"key":"Date","value":"Sun, 11 Dec 2022 08:14:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Session not found\"\n}"}],"_postman_id":"ac14c9b4-a275-48fd-9560-3b04eee41bcf"},{"name":"Session QR","id":"29ac2384-7f20-4846-a2ed-a88f3bdba413","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/sessions/:sessionId/qr","description":"<p>Determine a session status. The value is based from the websocket connection status, except that if the session has been successfully authenticated, it will return <code>AUTHENTHICATED</code>. Possible value is <code>AUTHENTICATED, CONNECTED, CONNECTING, DISCONNECTED, DISCONNECTING</code></p>\n","urlObject":{"path":["sessions",":sessionId","qr"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"3ea97fef-0c02-4533-bc21-8810046c90a9","description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"28e275bb-be5f-4613-b0d7-6f5896db4b9c","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/sessions/:sessionId/qr","host":["http://localhost:3000"],"path":["sessions",":sessionId","qr"],"variable":[{"id":"3ea97fef-0c02-4533-bc21-8810046c90a9","key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"6419"},{"key":"ETag","value":"W/\"1913-uCQEugvesg0HpKSWSlYhoRnAtYc\""},{"key":"Date","value":"Sat, 11 Mar 2023 08:31:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"qr\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAAEUCAYAAADqcMl5AAAAAklEQVR4AewaftIAABJwSURBVO3BQY7YypLAQFLo+1+Z42WuChBUbb/5yAj7g7XWuuBhrbUueVhrrUse1lrrkoe11rrkYa21LnlYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkh8+UvmbKt5QmSomlZOKSeWkYlL5ouI3qZxUTCpTxRsqU8WkMlVMKlPFpHJS8S+pnFRMKn9TxRcPa611ycNaa13ysNZal/xwWcVNKjepTBWTyt9UcaJyUjGpTBWTyhcVJypTxVRxUvGGylQxqUwqb1T8l1TcpHLTw1prXfKw1lqXPKy11iU//DKVNyreUHmj4g2VqWJSeaPijYo3Kk4qJpUTlZOKqWJSmSpOVN6omFSmii9Upoo3VH6TyhsVv+lhrbUueVhrrUse1lrrkh/+x1R8UTGpTConKlPFpDJVvKHyRsWkMlXcpHKiclIxqUwVJxUnKlPFpHKi8kXFpPK/5GGttS55WGutSx7WWuuSH/7HqJxU3FQxqUwqU8WkMlVMKlPFFxWTyk0Vk8obKicqU8WkMlW8UTGpTBWTyhsqU8X/koe11rrkYa21LnlYa61LfvhlFX9TxaQyqUwVJxWTyhsVJxUnFScqU8WJyknFGyqTylTxm1SmikllqjhRmSpOKk5UpoqbKv5LHtZa65KHtda65GGttS754TKV/7KKSWWqmFSmikllqphUpopJZaqYVKaKN1SmiknlRGWqOKmYVKaKSWWqmFSmiptUpopJZaqYVKaKN1SmihOV/7KHtda65GGttS55WGutS+wP/h9TOamYVKaKSWWqmFTeqJhUpoo3VL6omFSmijdUflPFpHJS8YbKVDGpnFScqEwV/8se1lrrkoe11rrkYa21LrE/+EBlqphUbqo4UZkqfpPKVPGGylQxqZxUTCpTxaTyN1VMKm9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HVKaKE5Wp4kTljYpJZao4UflNFZPKVPGGylTxm1SmiknljYq/SeWk4g2Vmyq+eFhrrUse1lrrkoe11rrkh49U/qaKqWJSeUNlqpgq3lCZKk5Upoo3VN5QeUNlqjhRmSpOVL5QOal4Q+Wk4g2VqWJSOVGZKt6omFR+08Naa13ysNZalzystdYlP1xWcZPKicobFW+ovFExqbyhMlVMKlPFpDJVnKicVLxRcaJyUvGbVKaKqeJEZao4qZhU3qh4o+KNipse1lrrkoe11rrkYa21Lvnhl6m8UfGbVE4qpooTlZOKSWWqmFQmlaniC5UTld9UMamcqJxUnKhMFW+oTBWTylQxqbyh8oXKScVvelhrrUse1lrrkoe11rrkh/8xFW+oTConFScqU8VUMalMFScqb6hMFScqb1S8ofJGxRsqJypTxaQyVbyhMlWcqJxUnKhMFW+oTBVfPKy11iUPa611ycNaa13yw/8YlZOKk4pJ5Y2KSWWqmComlaliqphUpooTlTcq3lCZKqaKSWVSeaNiqphUpoqTikllqpgqJpVJZaqYKk5UTiomlanib3pYa61LHtZa65KHtda65IdfVvGbKk5UTiomlanipOINlaliqnijYlKZKqaKSWWqmFROKk5UTiomlaliUvlC5TdVTCqTyhcVk8pU8S89rLXWJQ9rrXXJw1prXfLDZSp/k8pUMVVMKicVJypvVEwqJypTxaRyUnGiMlVMKlPFpHJSMamcqJyoTBUnKicVN6mcVEwqU8Wk8kbFpDJVTCq/6WGttS55WGutSx7WWusS+4O11rrgYa21LnlYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkoe11rrkYa21LnlYa61LHtZa65L/AzlHyWYTNKttAAAAAElFTkSuQmCC\"\n}"}],"_postman_id":"29ac2384-7f20-4846-a2ed-a88f3bdba413"},{"name":"Add Session","id":"0a939acd-bd7a-46af-b51a-2a5ef03caf80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"sessionId\": \"john\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/sessions/add","description":"<p>Create new a session. Expect an object with <code>sessionId</code> props. You can also pass additional <a href=\"https://github.com/adiwajshing/Baileys#configuring-the-connection\">baileys socket options</a> there. Keep in mind that you can only pass JSON-parsable options</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"sessionId\": \"john\",\n  // Additional session options\n  \"readIncomingMessages\": true // Automatically read all incoming messages\n  // Additional Baileys socket options\n  \"syncFullHistory\": true // Emulate WA desktop app to receive more messages\n  // ...etc\n}\n\n</code></pre>\n","urlObject":{"path":["sessions","add"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"d55ea75e-ad5e-4855-a0f3-4e8359348cb6","name":"Response Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"sessionId\": \"john\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/sessions/add"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"6475"},{"key":"ETag","value":"W/\"194b-wbqlPQCvDljDULDnnrNnHMP0sy4\""},{"key":"Date","value":"Sun, 11 Dec 2022 08:18:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"qr\": \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAAEUCAYAAADqcMl5AAAAAklEQVR4AewaftIAABKZSURBVO3BQY4gx7LgQDJR978yp3ffVwEkMqqlp3Ez+4O11rrgYa21LnlYa61LHtZa65KHtda65GGttS55WGutSx7WWuuSh7XWuuRhrbUueVhrrUse1lrrkoe11rrkYa21LnlYa61LHtZa65IfPlL5myreUDmpmFSmikllqjhR+aLiRGWqeEPlpGJSmSomlaliUpkqJpWpYlKZKk5Upoq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KaKE5UvKn5TxU0Pa611ycNaa13ysNZal/zwy1TeqLhJZaqYKr5QmSpOVKaKE5WTikllqnhD5YuKN1QmlaliUpkqpopJZar4omJSmSqmiknlROU3VUwqU8UXD2utdcnDWmtd8rDWWpf88P8ZlaliUpkqTiomlZOKm1ROVKaKSeWLijdUvqg4UTlRmSqmihOVLyomlaniDZVJ5aTiNz2stdYlD2utdcnDWmtd8sN/XMWJylQxqdyk8kXFFypTxd9UMalMFZPKScVUMalMFW+ovKFyUjFVnKicVEwq/6SHtda65GGttS55WGutS374ZRW/qWJSmSpOKr6omFROKk5UTlTeqJgqJpWp4kTlN6lMFX+TyknFicpUcaLyhcpU8U96WGutSx7WWuuSh7XWuuSHy1T+JpWp4r+kYlI5qXijYlKZKqaKE5WpYlI5qZhUpoovVKaKk4pJ5aTijYpJZao4UZlUpopJ5Tc9rLXWJQ9rrXXJw1prXWJ/sNZaFzystdYlD2utdcnDWmtd8rDWWpc8rLXWJQ9rrXXJw1prXfKw1lqXPKy11iUPa611ycNaa13ysNZalzystdYlD2utdcnDWmtd8v8ACXrxXBZ5duEAAAAASUVORK5CYII=\"\n}"},{"id":"67ea3cbf-5e09-435e-9db2-86770bc1bb05","name":"Response Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"sessionId\": \"john\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/sessions/add"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-nNvILmiaE5rveSF0RfEVnyXUlF4\""},{"key":"Date","value":"Sun, 11 Dec 2022 09:31:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Session already exists\"\n}"}],"_postman_id":"0a939acd-bd7a-46af-b51a-2a5ef03caf80"},{"name":"Add Session (SSE)","id":"557559cc-75ad-4cb6-9f27-4ab854e4be7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/sessions/:sessionId/add-sse","description":"<p>Create a session and listen to the connection update in realtime. For the usage example, please see <a href=\"https://github.com/ookamiiixd/baileys-api/blob/dev/examples/sse.html\">here</a></p>\n<p>Notes:</p>\n<ul>\n<li>Unlike <code>Add Session</code> route, you can't add additional options in this route</li>\n<li>If you exceed the maximum QR generation attempts, the connection will be closed</li>\n<li>If you try to access this route using a session id that already in use, the route will simply emit an error message and close the connection. This also mean that if you lost a connection after successfully authenticated, you lost the access to subscribe the realtime data</li>\n</ul>\n","urlObject":{"path":["sessions",":sessionId","add-sse"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"ddb06176-b4a9-4cc9-9041-400a50ff9f40","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/sessions/:sessionId/add-sse","host":["http://localhost:3000"],"path":["sessions",":sessionId","add-sse"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/event-stream"},{"key":"Cache-Control","value":"no-cache"},{"key":"Connection","value":"keep-alive"},{"key":"Date","value":"Fri, 06 Jan 2023 14:27:27 GMT"},{"key":"Transfer-Encoding","value":"chunked"}],"cookie":[],"responseTime":null,"body":"data: {\"qr\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAAEUCAYAAADqcMl5AAAAAklEQVR4AewaftIAABIqSURBVO3BQY4YybLgQDJR978yR0tfBZDIKKn/GzezP1hrrQse1lrrkoe11rrkYa21LnlYa61LHtZa65KHtda65GGttS55W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9SOamYVKaKSeWk4kRlqjhR+U0Vk8pJxYnKVPEvqUwVJypfVEwqJxWTyknFicobFScqU8UbKicVXzystdYlD2utdcnDWmtdYn/wgcpU8YbKScWkclJxovJGxYnKScVNKm9UTCpTxaQyVUwqb1ScqEwVJyonFZPKFxWTylTxhspUMamcVPyXPay11iUPa611ycNaa13ywy9TeaNiUvlCZao4UTlRmSomlUllqviXKk4qJpWTijdUTlSmipOKSeWNii9UpopJ5UTlDZWpYlI5qZhUpoovHtZa65KHtda65GGttS6xP/hA5YuKm1SmihOVqWJS+aLiN6lMFScqU8WkclJxojJV/EsqU8WkclIxqbxR8YbKGxWTyknFb3pYa61LHtZa65KHtda6xP7gA5WpYlI5qThRualiUpkqTlSmikllqnhD5YuKSeWNiknljYovVKaKE5WbKt5QualiUpkq3lB5o+KLh7XWuuRhrbUueVhrrUt++KhiUvlCZao4UTmpmFSmikllqjhRmSomlTcqJpWpYlI5qZhUpopJ5aRiUrmp4ouKSeUmlTcqJpUvVE4qpopJZaq46WGttS55WGutSx7WWusS+4MPVKaKSeVfqphUbqqYVN6oeENlqphUpooTld9UcaLyRsWJyhsVk8pNFScqv6niRGWq+OJhrbUueVhrrUse1lrrkh8+qphUpopJ5aTiDZU3Km5SeaPiRGWqOFGZKr6oeENlqjhReaNiUjmpmFSmipOKL1S+qHhDZaqYVE4qbnpYa61LHtZa65KHtda65IePVH6TylRxUvE3VXyh8kbFpHKi8oXKVHGi8kbFicpJxaQyVXyhMlVMKlPFicobKlPFTSpTxRcPa611ycNaa13ysNZal/xwWcWkMlVMKicVb6icVEwqJxWTylQxqUwVk8pNFb+p4o2KSeWmiknlRGWqmFR+k8oXFV9UnKjc9LDWWpc8rLXWJQ9rrXXJD/8xKl9UTCqTyhcVb6hMFZPKVPGFylQxqZyo/KaKSeWkYlKZKt5QmSreUHmjYlI5UflCZao4qbjpYa21LnlYa61LHtZa65IfPqq4qeJfqjhRmSqmihOVE5V/qWJS+aLiN6lMFZPKicpJxUnFpDJVv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kclIxqfxLKicqX6icVEwqJxWTylRxUvGFyhcqb6h8UTGpTBVTxU0Pa611ycNaa13ysNZal/zwP0blDZWbKiaVNyomlUnlpGJS+U0Vb6h8UfGGyknFScUbKlPFpDJVTConFZPKFypTxRcPa611ycNaa13ysNZal/zw/5mKSWWqmFROKiaVk4pJZVK5qeILlaniRGWqmComlROVk4qpYlKZKk5UTipOKk4q3qiYVKaK/5KHtda65GGttS55WGutS374ZRW/qeJE5aRiUpkqTlSmihOVk4o3VCaVqeJE5QuVqeJEZaqYVG6qeKNiUplUpopJZaqYVN5Q+aLib3pYa61LHtZa65KHtda6xP7gA5W/qWJSOak4UXmjYlI5qZhUflPFFypTxaQyVZyovFExqUwVJypTxaQyVUwqU8WkclJxk8pU8YXKScUXD2utdcnDWmtd8rDWWpfYH6y11gUPa611ycNaa13ysNZalzystdYlD2utdcnDWmtd8rDWWpc8rLXWJQ9rrXXJw1prXfKw1lqXPKy11iUPa611ycNaa13ysNZal/w/1ZV2j2OtGMUAAAAASUVORK5CYII=\"}"}],"_postman_id":"557559cc-75ad-4cb6-9f27-4ab854e4be7f"},{"name":"Update Session","id":"02c64c63-2e61-44c3-b67e-a0b3e3e217cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"webhook\": {\r\n        \"url\": \"http://127.0.0.1/baileys-api-webhook\",\r\n        \"events\": [\"messages.update\", \"messages.upsert\"]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/sessions/:sessionId","description":"<p>Determine a session status. The value is based from the websocket connection status, except that if the session has been successfully authenticated, it will return <code>AUTHENTHICATED</code>. Possible value is <code>AUTHENTICATED, CONNECTED, CONNECTING, DISCONNECTED, DISCONNECTING</code></p>\n","urlObject":{"path":["sessions",":sessionId"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"3ea97fef-0c02-4533-bc21-8810046c90a9","description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"ec0f28d6-196c-4768-8e53-f25df4b178bf","name":"Response Success","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"webhook\": {\r\n        \"url\": \"http://127.0.0.1/baileys-api-webhook\",\r\n        \"events\": [\"messages.update\", \"messages.upsert\"]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/sessions/:sessionId","host":["http://localhost:3000"],"path":["sessions",":sessionId"],"variable":[{"id":"3ea97fef-0c02-4533-bc21-8810046c90a9","key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-JeL9HLFV4AG4kfxserVaRHVlJTo\""},{"key":"Date","value":"Sat, 11 Mar 2023 09:28:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Session updated\"\n}"}],"_postman_id":"02c64c63-2e61-44c3-b67e-a0b3e3e217cd"},{"name":"Delete Session","id":"2410309c-9823-431a-a44e-c01912b89538","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/sessions/:sessionId","description":"<p>Delete a session</p>\n","urlObject":{"path":["sessions",":sessionId"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"0892ab6a-99db-43fe-b920-4a67c0b7b99b","name":"Response Success","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/sessions/:sessionId","host":["http://localhost:3000"],"path":["sessions",":sessionId"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-ILxigtiSa6WDHWPzEHKKbgV7iDQ\""},{"key":"Date","value":"Sun, 11 Dec 2022 12:13:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Session deleted\"\n}"},{"id":"cba87914-fc12-41fc-abab-b058868c551c","name":"Response Failed","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/sessions/:sessionId","host":["http://localhost:3000"],"path":["sessions",":sessionId"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"ETag","value":"W/\"1d-SFg1yB5C4mPMRmz91HR7SP18WdM\""},{"key":"Date","value":"Sun, 11 Dec 2022 08:18:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Session not found\"\n}"}],"_postman_id":"2410309c-9823-431a-a44e-c01912b89538"}],"id":"b2006cc1-0cd4-48ce-ad5a-1c9c26c3f8f0","_postman_id":"b2006cc1-0cd4-48ce-ad5a-1c9c26c3f8f0","description":""},{"name":"Chats","item":[{"name":"Chat List","id":"e657ab2a-59e7-47a6-9150-2109cc806e97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/chats","description":"<p>Get list of chats</p>\n","urlObject":{"path":[":sessionId","chats"],"host":["http://localhost:3000"],"query":[{"disabled":true,"description":{"content":"<p>Limit data length per request (Optional, default to 25)</p>\n","type":"text/plain"},"key":"limit","value":"25"},{"disabled":true,"description":{"content":"<p>Cursor for the next page (Optional)</p>\n","type":"text/plain"},"key":"cursor","value":"25"}],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"acc8144a-ce7b-48b2-a090-0d65ca5e6626","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/chats","host":["http://localhost:3000"],"path":[":sessionId","chats"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"8081"},{"key":"ETag","value":"W/\"1f91-zrmZzjUJ24Wi50rIH4/QJp1uUAY\""},{"key":"Date","value":"Sun, 11 Dec 2022 11:47:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"pkId\": 268,\n            \"sessionId\": \"john\",\n            \"conversationTimestamp\": \"1670751010\",\n            \"id\": \"628231xxxxx@s.whatsapp.net\",\n            \"unreadCount\": 1\n        },\n        {\n            \"pkId\": 270,\n            \"sessionId\": \"john\",\n            \"id\": \"628121xxxxx@s.whatsapp.net\",\n            \"messages\": [\n                {\n                    \"message\": {\n                        \"key\": {\n                            \"id\": \"496547XXXXXXXXXXXXXX\",\n                            \"fromMe\": true,\n                            \"remoteJid\": \"628121xxxxx@s.whatsapp.net\"\n                        },\n                        \"messageStubType\": \"E2E_ENCRYPTED\",\n                        \"messageTimestamp\": \"1670745789\"\n                    }\n                }\n            ],\n            \"participant\": []\n        },\n        ...\n    ],\n    \"cursor\": 294\n}"},{"id":"5e100159-e872-4285-8420-b75f88d7bb94","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/chats","host":["http://localhost:3000"],"path":[":sessionId","chats"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during chat list\"\n}"}],"_postman_id":"e657ab2a-59e7-47a6-9150-2109cc806e97"},{"name":"Load Conversation","id":"ced40691-7d1b-49c7-9926-4fbda827af55","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/chats/:jid","description":"<p>Load a conversation with someone or a group</p>\n","urlObject":{"path":[":sessionId","chats",":jid"],"host":["http://localhost:3000"],"query":[{"disabled":true,"description":{"content":"<p>Limit data length per request (Optional, default to 25)</p>\n","type":"text/plain"},"key":"limit","value":"25"},{"disabled":true,"description":{"content":"<p>Cursor for the next page (Optional)</p>\n","type":"text/plain"},"key":"cursor","value":"25"}],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"},{"description":{"content":"<p>Chat jid</p>\n","type":"text/plain"},"type":"any","value":"62813xxxxx@s.whatsapp.net","key":"jid"}]}},"response":[{"id":"f1b42008-3ff5-4e6f-b66d-7820da2cce31","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/chats/:jid","host":["http://localhost:3000"],"path":[":sessionId","chats",":jid"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"62813xxxxx@s.whatsapp.net","description":"Chat jid"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"14973"},{"key":"ETag","value":"W/\"3a7d-4+d0S7xZ+Nb5CDSbAQo2ye6mcPE\""},{"key":"Date","value":"Thu, 05 Jan 2023 04:07:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"pkId\": 343,\n            \"sessionId\": \"john\",\n            \"remoteJid\": \"628132xxxxx@s.whatsapp.net\",\n            \"id\": \"B61CE995AXXXXXXXXXXXXXX\",\n            \"ephemeralOutOfSync\": false,\n            \"key\": {\n                \"id\": \"B61CE995AXXXXXXXXXXXXXXX\",\n                \"fromMe\": false,\n                \"remoteJid\": \"628132xxxxx@s.whatsapp.net\"\n            },\n            \"labels\": [],\n            \"message\": {\n                \"conversation\": \"Isn't looks good?\"\n            },\n            \"messageStubParameters\": [],\n            \"messageTimestamp\": \"1669206859\",\n            \"pollUpdates\": [],\n            \"reactions\": [],\n            \"userReceipt\": []\n        },\n        {\n            \"pkId\": 466,\n            \"sessionId\": \"john\",\n            \"remoteJid\": \"628132xxxxx@s.whatsapp.net\",\n            \"id\": \"5EB77606567BB6XXXXXXXXXXX\",\n            \"ephemeralOutOfSync\": false,\n            \"key\": {\n                \"id\": \"5EB77606567BB6XXXXXXXXXXX\",\n                \"fromMe\": false,\n                \"remoteJid\": \"628132xxxxx@s.whatsapp.net\"\n            },\n            \"labels\": [],\n            \"message\": {\n                \"conversation\": \"Awesome!\"\n            },\n            \"messageStubParameters\": [],\n            \"messageTimestamp\": \"1669205548\",\n            \"pollUpdates\": [],\n            \"reactions\": [],\n            \"userReceipt\": []\n        },\n        ...\n    ],\n    \"cursor\": 489\n}"},{"id":"2ec699d5-abce-477d-8e54-efe8696cea2f","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/chats/:jid","host":["http://localhost:3000"],"path":[":sessionId","chats",":jid"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"62813xxxxx@s.whatsapp.net","description":"Chat jid"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during chat find\"\n}"}],"_postman_id":"ced40691-7d1b-49c7-9926-4fbda827af55"}],"id":"ac61c421-daf9-4793-ad20-ff314b26572e","_postman_id":"ac61c421-daf9-4793-ad20-ff314b26572e","description":""},{"name":"Contacts","item":[{"name":"Contact List","id":"5e444c9c-ac48-4fdf-92ed-f97187d3d142","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/contacts","description":"<p>Get list of contacts</p>\n","urlObject":{"path":[":sessionId","contacts"],"host":["http://localhost:3000"],"query":[{"disabled":true,"description":{"content":"<p>Limit data length per request (Optional, default to 25)</p>\n","type":"text/plain"},"key":"limit","value":"25"},{"disabled":true,"description":{"content":"<p>Cursor for the next page (Optional)</p>\n","type":"text/plain"},"key":"cursor","value":"25"}],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"a5b876fb-0f51-4f57-bd53-5b4412cbb66a","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/contacts","host":["http://localhost:3000"],"path":[":sessionId","contacts"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1676"},{"key":"ETag","value":"W/\"68c-sevpQPy0ZDLpGm1wr8iRTiNo3o4\""},{"key":"Date","value":"Fri, 06 Jan 2023 14:50:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"pkId\": 467,\n            \"sessionId\": \"john\",\n            \"id\": \"628138xxxxx@s.whatsapp.net\",\n            \"name\": \"Bob William\",\n            \"notify\": null,\n            \"verifiedName\": null,\n            \"imgUrl\": null,\n            \"status\": null\n        },\n        ...\n    ],\n    \"cursor\": 493\n}"},{"id":"13e2cdd4-5078-4b8a-989d-4762fe2aae73","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/contacts","host":["http://localhost:3000"],"path":[":sessionId","contacts"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during chat list\"\n}"}],"_postman_id":"5e444c9c-ac48-4fdf-92ed-f97187d3d142"},{"name":"Check Number","id":"99d5034d-4a08-438e-8134-08002a61e30e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/contacts/:jid","description":"<p>Check if number exists on WhatsApp or not</p>\n","urlObject":{"path":[":sessionId","contacts",":jid"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"},{"description":{"content":"<p>Number jid</p>\n","type":"text/plain"},"type":"any","value":"628138xxxxx@s.whatsapp.net","key":"jid"}]}},"response":[{"id":"8a58ad6a-ac8e-4e21-8c4a-29040c4960f8","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/contacts/:jid","host":["http://localhost:3000"],"path":[":sessionId","contacts",":jid"],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"628138xxxxx@s.whatsapp.net","description":"Number jid"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"15"},{"key":"ETag","value":"W/\"f-lWSD52foMX4qLT82tweJE091S9Q\""},{"key":"Date","value":"Fri, 06 Jan 2023 14:53:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"exists\": true\n}"},{"id":"75618502-168c-4348-98d0-20650edad153","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/contacts/:jid","host":["http://localhost:3000"],"path":[":sessionId","contacts",":jid"],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"628138xxxxx@s.whatsapp.net","description":"Number jid"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-yQtTZSgB5CH3vcY7RJljHmEWYjk\""},{"key":"Date","value":"Fri, 06 Jan 2023 14:54:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during jid check\"\n}"}],"_postman_id":"99d5034d-4a08-438e-8134-08002a61e30e"},{"name":"Profile Picture","id":"95f8515b-b0bc-4c88-85de-40b21ab6d77f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/contacts/:jid/photo","description":"<p>Get someone's profile picture</p>\n","urlObject":{"path":[":sessionId","contacts",":jid","photo"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"},{"description":{"content":"<p>Number jid</p>\n","type":"text/plain"},"type":"any","value":"628138xxxxx@s.whatsapp.net","key":"jid"}]}},"response":[{"id":"3d05fde4-e6d9-4a22-8c15-86bb18f5a58e","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/contacts/:jid/photo","host":["http://localhost:3000"],"path":[":sessionId","contacts",":jid","photo"],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"628138xxxxx@s.whatsapp.net","description":"Number jid"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"176"},{"key":"ETag","value":"W/\"b0-bQBN29wReWTYvevkkCAxBHytQ8w\""},{"key":"Date","value":"Fri, 06 Jan 2023 14:56:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://pps.whatsapp.net/v/t61.xxxx-2x/xxxxx4973_1xxxx97530430_228xxxxxx555_n.jpg?ccb=11-4&oh=01_AdT0SebmPzpFyNKCvvPw0rYSmhIbVlkVcYQ-FJ0VohYNiw&oe=63C534EE\"\n}"},{"id":"8b38b889-3b8b-4f6a-a9f8-60c11e3afbcf","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/contacts/:jid/photo","host":["http://localhost:3000"],"path":[":sessionId","contacts",":jid","photo"],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"628138xxxxx@s.whatsapp.net","description":"Number jid"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-k2MDpOqngNXXgbQSBm4xw7+N0a4\""},{"key":"Date","value":"Fri, 06 Jan 2023 14:57:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during photo fetch\"\n}"}],"_postman_id":"95f8515b-b0bc-4c88-85de-40b21ab6d77f"},{"name":"Blocked Number List","id":"ed98d1c4-2b0e-4e0e-9b8b-4ad9dc55a453","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/contacts/blocklist","description":"<p>Get list of blocked numbers</p>\n","urlObject":{"path":[":sessionId","contacts","blocklist"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"ea579306-2579-4164-b3f2-f14fc1186d61","description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"4088660f-7def-45de-9beb-d2dcf96a765f","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/contacts/blocklist","host":["http://localhost:3000"],"path":[":sessionId","contacts","blocklist"],"variable":[{"id":"ea579306-2579-4164-b3f2-f14fc1186d61","key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"63"},{"key":"ETag","value":"W/\"3f-SDcFKUGiPldqMqNVIw8IaUV5jZA\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:01:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    \"628122xxxxx@s.whatsapp.net\",\n    \"628199xxxxx@s.whatsapp.net\"\n]"},{"id":"0b913a76-68a8-4c38-b936-8605e324e201","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/contacts/blocklist","host":["http://localhost:3000"],"path":[":sessionId","contacts","blocklist"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-k2MDpOqngNXXgbQSBm4xw7+N0a4\""},{"key":"Date","value":"Fri, 06 Jan 2023 14:57:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during blocklist fetch\"\n}"}],"_postman_id":"ed98d1c4-2b0e-4e0e-9b8b-4ad9dc55a453"},{"name":"Block / Unblock Number","id":"0b6a82f6-76dc-4408-9140-275e84c4a58e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"jid\": \"628122xxxxx@s.whatsapp.net\",\r\n    \"action\": \"block\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/:sessionId/contacts/blocklist/update","description":"<p>Block / unblock number. Expect the below JSON object shape:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"jid\": \"62xxxxx@s.whatsapp.net\", // The target number jid\n  \"action\": \"block\" // The action, can be either \"block\" or \"unblock\"\n}\n</code></pre>\n","urlObject":{"path":[":sessionId","contacts","blocklist","update"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"d743d14e-91c8-4e12-be9c-97837c29816e","name":"Response Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"jid\": \"628122xxxxx@s.whatsapp.net\",\r\n    \"action\": \"block\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/contacts/blocklist/update","host":["http://localhost:3000"],"path":[":sessionId","contacts","blocklist","update"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-rwg7CjZZTkTi13guWwUuOdH04is\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:06:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Contact blocked\"\n}"},{"id":"0016e003-f2e4-4d14-8d7f-e1bb65764334","name":"Response Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"jid\": \"628122xxxxx@s.whatsapp.net\",\r\n    \"action\": \"block\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/contacts/blocklist/update","host":["http://localhost:3000"],"path":[":sessionId","contacts","blocklist","update"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-rwg7CjZZTkTi13guWwUuOdH04is\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:06:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during blocklist update\"\n}"}],"_postman_id":"0b6a82f6-76dc-4408-9140-275e84c4a58e"}],"id":"6d6c08a0-db5d-4db5-a963-c695cb56bf2c","_postman_id":"6d6c08a0-db5d-4db5-a963-c695cb56bf2c","description":""},{"name":"Groups","item":[{"name":"Group List","id":"08d628fe-231e-411d-b280-d734f68fbae8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/groups","description":"<p>Get list of groups</p>\n","urlObject":{"path":[":sessionId","groups"],"host":["http://localhost:3000"],"query":[{"disabled":true,"description":{"content":"<p>Limit data length per request (Optional, default to 25)</p>\n","type":"text/plain"},"key":"limit","value":"25"},{"disabled":true,"description":{"content":"<p>Cursor for the next page (Optional)</p>\n","type":"text/plain"},"key":"cursor","value":"25"}],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"5ef30157-7b30-46a4-89a7-b941d0c57291","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/groups","host":["http://localhost:3000"],"path":[":sessionId","groups"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"175"},{"key":"ETag","value":"W/\"af-m4MZKLonIfvSvDMexvCNrV3p1Ds\""},{"key":"Date","value":"Fri, 06 Jan 2023 14:30:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"pkId\": 609,\n            \"sessionId\": \"john\",\n            \"id\": \"628950xxxxx-1631xxxx@g.us\",\n            \"name\": \"The Raven\",\n            \"notify\": null,\n            \"verifiedName\": null,\n            \"imgUrl\": null,\n            \"status\": null\n        },\n        ...\n    ],\n    \"cursor\": 634\n}"},{"id":"dc69e046-6ea5-46d8-8661-3560995d03bb","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/groups","host":["http://localhost:3000"],"path":[":sessionId","groups"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during group list\"\n}"}],"_postman_id":"08d628fe-231e-411d-b280-d734f68fbae8"},{"name":"Group Metadata","id":"2c38c677-80b5-4ae1-a89f-ab9e54ae4e87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/groups/:jid","description":"<p>Get group metadata</p>\n","urlObject":{"path":[":sessionId","groups",":jid"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"},{"description":{"content":"<p>Group jid</p>\n","type":"text/plain"},"type":"any","value":"628950xxxxx-1631xxxxx@g.us","key":"jid"}]}},"response":[{"id":"1796a674-9c86-457a-9186-a5c71fa030b5","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/groups/:jid","host":["http://localhost:3000"],"path":[":sessionId","groups",":jid"],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"628950xxxxx-1631xxxxx@g.us","description":"Group jid"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"465"},{"key":"ETag","value":"W/\"1d1-LWhmW4VM2/FA409+GSYnSeYQYso\""},{"key":"Date","value":"Fri, 06 Jan 2023 14:36:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"628950xxxxx-1631xxxxx@g.us\",\n    \"subject\": \"The Raven\",\n    \"subjectOwner\": \"628950xxxxx@s.whatsapp.net\",\n    \"subjectTime\": 1631090896,\n    \"size\": 4,\n    \"creation\": 1631090896,\n    \"owner\": \"628950xxxxx@s.whatsapp.net\",\n    \"restrict\": false,\n    \"announce\": false,\n    \"participants\": [\n        {\n            \"id\": \"628132xxxxx@s.whatsapp.net\",\n            \"admin\": null\n        },\n        {\n            \"id\": \"628950xxxxx@s.whatsapp.net\",\n            \"admin\": \"superadmin\"\n        }\n    ]\n}"},{"id":"30f4cfd6-ffeb-4d4f-b6de-cae282b79644","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/groups/:jid","host":["http://localhost:3000"],"path":[":sessionId","groups",":jid"],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"628950xxxxx-1631xxxxx@g.us","description":"Group jid"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during group metadata fetch\"\n}"}],"_postman_id":"2c38c677-80b5-4ae1-a89f-ab9e54ae4e87"},{"name":"Profile Picture","id":"d45dadb5-23d5-4ff4-b12a-aadda35c04e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/groups/:jid/photo","description":"<p>Get group's profile picture</p>\n","urlObject":{"path":[":sessionId","groups",":jid","photo"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"},{"description":{"content":"<p>Group jid</p>\n","type":"text/plain"},"type":"any","value":"628950xxxxx-1631xxxxx@g.us","key":"jid"}]}},"response":[{"id":"4ba16143-5b98-4364-86f3-b1e2851cdc8b","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/groups/:jid/photo","host":["http://localhost:3000"],"path":[":sessionId","groups",":jid","photo"],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"628950xxxxx-1631xxxxx@g.us","description":"Group jid"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"176"},{"key":"ETag","value":"W/\"b0-LqeipByKETY9sPcRFBhxO8EjNqU\""},{"key":"Date","value":"Fri, 06 Jan 2023 14:43:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"url\": \"https://pps.whatsapp.net/v/t61.2xxxx-2x/3xxxx8882_648xxxxxxx963_460xxxxxxx50_n.jpg?ccb=11-4&oh=01_AdRPjAc_RsvEnqNXP-_kQ-JAbe1b8PTaJMCMXvyeLewouw&oe=63C542AE\"\n}"},{"id":"7a052367-eb98-4ce2-816d-f733e7fcd142","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/groups/:jid/photo","host":["http://localhost:3000"],"path":[":sessionId","groups",":jid","photo"],"variable":[{"key":"sessionId","value":"john","description":"Session id"},{"key":"jid","value":"628950xxxxx-1631xxxxx@g.us","description":"Group jid"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during photo fetch\"\n}"}],"_postman_id":"d45dadb5-23d5-4ff4-b12a-aadda35c04e1"},{"name":"Create Group","id":"90b9626c-c90a-481c-89d2-2a1bb84ef4f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Night Raven 2\",\r\n    \"participants\": [\"628231xxxxx@s.whatsapp.net\"]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/:sessionId/groups/create","description":"<p>Get list of groups</p>\n","urlObject":{"path":[":sessionId","groups","create"],"host":["http://localhost:3000"],"query":[{"disabled":true,"description":{"content":"<p>Limit data length per request (Optional, default to 25)</p>\n","type":"text/plain"},"key":"limit","value":"25"},{"disabled":true,"description":{"content":"<p>Cursor for the next page (Optional)</p>\n","type":"text/plain"},"key":"cursor","value":"25"}],"variable":[{"id":"861c3d29-039f-4b2f-bfa4-0d267f2b02b4","description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"d503599d-2938-4d1a-8c87-3e2546c5d831","name":"Response Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Night Raven 2\",\r\n    \"participants\": [\"628231xxxxx@s.whatsapp.net\"]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/groups/create","host":["http://localhost:3000"],"path":[":sessionId","groups","create"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"id":"861c3d29-039f-4b2f-bfa4-0d267f2b02b4","key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"363"},{"key":"ETag","value":"W/\"16b-xb8ICVVDRGG79guk6roTSq9bBtU\""},{"key":"Date","value":"Mon, 13 Mar 2023 13:43:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"1203630xxxxx@g.us\",\n    \"subject\": \"Night Raven 2\",\n    \"subjectOwner\": \"628132xxxxs.whatsapp.net\",\n    \"subjectTime\": 1678714986,\n    \"size\": null,\n    \"creation\": 1678714986,\n    \"owner\": \"628132xxxx2@s.whatsapp.net\",\n    \"restrict\": false,\n    \"announce\": false,\n    \"participants\": [\n        {\n            \"id\": \"628132xxxx@s.whatsapp.net\",\n            \"admin\": \"superadmin\"\n        },\n        {\n            \"id\": \"628231xxxxx@s.whatsapp.net\",\n            \"admin\": null\n        }\n    ]\n}"},{"id":"ea2c1dfa-6707-43e8-a2c7-9aa92683345f","name":"Response Failed","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Night Raven 2\",\r\n    \"participants\": [\"628231xxxxx@s.whatsapp.net\"]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/groups","host":["http://localhost:3000"],"path":[":sessionId","groups"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during group create\"\n}"}],"_postman_id":"90b9626c-c90a-481c-89d2-2a1bb84ef4f3"},{"name":"Update Group","id":"bf4df08d-b52f-4322-b96d-35ba54fdf770","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Night Raven\",\r\n    \"description\": \"A place for fellow ravens\",\r\n    \"mode\": \"announcement\",\r\n    \"profilePicture\": \"https://avatars.githubusercontent.com/u/60024250?s=460\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/:sessionId/groups/:jid","description":"<p>Get list of groups</p>\n","urlObject":{"path":[":sessionId","groups",":jid"],"host":["http://localhost:3000"],"query":[{"disabled":true,"description":{"content":"<p>Limit data length per request (Optional, default to 25)</p>\n","type":"text/plain"},"key":"limit","value":"25"},{"disabled":true,"description":{"content":"<p>Cursor for the next page (Optional)</p>\n","type":"text/plain"},"key":"cursor","value":"25"}],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"},{"description":{"content":"<p>Group jid</p>\n","type":"text/plain"},"type":"any","value":"12036306xxxx@.g.us@.g.us","key":"jid"}]}},"response":[{"id":"57ef990b-14fc-4506-b1b8-76d6a507b9f4","name":"Response Failed","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Night Raven 2\",\r\n    \"participants\": [\"628231xxxxx@s.whatsapp.net\"]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/groups","host":["http://localhost:3000"],"path":[":sessionId","groups"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during group create\"\n}"}],"_postman_id":"bf4df08d-b52f-4322-b96d-35ba54fdf770"},{"name":"Leave Group","id":"090339a1-dfb7-4299-a31f-03330026098d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/:sessionId/groups/:jid","description":"<p>Get list of groups</p>\n","urlObject":{"path":[":sessionId","groups",":jid"],"host":["http://localhost:3000"],"query":[{"disabled":true,"description":{"content":"<p>Limit data length per request (Optional, default to 25)</p>\n","type":"text/plain"},"key":"limit","value":"25"},{"disabled":true,"description":{"content":"<p>Cursor for the next page (Optional)</p>\n","type":"text/plain"},"key":"cursor","value":"25"}],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"},{"description":{"content":"<p>Group jid</p>\n","type":"text/plain"},"type":"any","value":"12036306xxxx@.g.us","key":"jid"}]}},"response":[{"id":"ca83f0d0-1ef8-4f31-a124-d7137518dc23","name":"Response Failed","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Night Raven 2\",\r\n    \"participants\": [\"628231xxxxx@s.whatsapp.net\"]\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/groups","host":["http://localhost:3000"],"path":[":sessionId","groups"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during group create\"\n}"}],"_postman_id":"090339a1-dfb7-4299-a31f-03330026098d"}],"id":"510a7d34-ad45-425c-9238-3a6902dada69","_postman_id":"510a7d34-ad45-425c-9238-3a6902dada69","description":""},{"name":"Messages","item":[{"name":"Message List","id":"38cfd640-197f-45c6-bc94-c834a177b5fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/:sessionId/messages","description":"<p>Get list of messages. Note that this route returns all messages from the store without filtering the jid. You may want to use the <code>Chats Load Conversation</code> route if you only want load messages with specific person or group</p>\n","urlObject":{"path":[":sessionId","messages"],"host":["http://localhost:3000"],"query":[{"disabled":true,"description":{"content":"<p>Limit data length per request (Optional, default to 25)</p>\n","type":"text/plain"},"key":"limit","value":"25"},{"disabled":true,"description":{"content":"<p>Cursor for the next page (Optional)</p>\n","type":"text/plain"},"key":"cursor","value":"25"}],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"d927856e-ba24-4808-a9dd-f5815be04053","name":"Response Success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/messages","host":["http://localhost:3000"],"path":[":sessionId","messages"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"14459"},{"key":"ETag","value":"W/\"387b-5TaGieZbj9/7YkdllELdvzMgf0g\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:12:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"pkId\": 1458,\n            \"sessionId\": \"john\",\n            \"remoteJid\": \"628132xxxxx@s.whatsapp.net\",\n            \"id\": \"BF7DB5EE494FXXXXXXXXXXXXXXXX\",\n            \"key\": {\n                \"id\": \"BF7DB5EE494FXXXXXXXXXXXXXXXX\",\n                \"fromMe\": true,\n                \"remoteJid\": \"6281320761832@s.whatsapp.net\"\n            },\n            \"message\": {\n                \"protocolMessage\": {\n                    \"type\": \"INITIAL_SECURITY_NOTIFICATION_SETTING_SYNC\",\n                    \"initialSecurityNotificationSettingSync\": {\n                        \"securityNotificationEnabled\": false\n                    }\n                }\n            },\n            \"messageTimestamp\": \"1673015208\",\n            \"pushName\": \"Nothing\",\n            \"status\": 2\n        },\n        ...\n    ],\n    \"cursor\": 1482\n}"},{"id":"7a3a7a79-b5b6-4c8b-8ad8-ad4b52ef3dbb","name":"Response Failed","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/:sessionId/messages","host":["http://localhost:3000"],"path":[":sessionId","messages"],"query":[{"key":"limit","value":"25","description":"Limit data length per request (Optional, default to 25)","disabled":true},{"key":"cursor","value":"25","description":"Cursor for the next page (Optional)","disabled":true}],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-NELHGnJkSmArgNUV9e6szPSxHrw\""},{"key":"Date","value":"Sun, 11 Dec 2022 10:48:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during message list\"\n}"}],"_postman_id":"38cfd640-197f-45c6-bc94-c834a177b5fb"},{"name":"Send Message","id":"3f9c05ae-49f5-4d46-b6c2-35a6ee57bb8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"jid\": \"628950xxxxx-1631xxxx@g.us\",\r\n    \"type\": \"group\",\r\n    \"message\": {\r\n        \"text\": \"What's that @62823xxxx?\",\r\n        \"mentions\": [\"62823xxxx@s.whatsapp.net\"]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/:sessionId/messages/send","description":"<p>Send a message to someone or group. Expect the below JSON object shape:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"jid\": \"62xxxx@s.whatsapp.net\", // Target jid\n  \"type\": \"number\", // Use \"number\" for number jid, or \"group\" for group jid\n  \"message\": {\n    \"text\": \"Hello!\"\n  }, // `AnyMessageContent`\n  \"options\": {} // Optional `MiscMessageGenerationOptions`, eg: to quote message, etc\n}\n\n</code></pre>\n<p>Please see <a href=\"https://github.com/adiwajshing/Baileys#sending-messages\">this section</a> to learn how to send any kind of message in baileys</p>\n","urlObject":{"path":[":sessionId","messages","send"],"host":["http://localhost:3000"],"query":[],"variable":[{"description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"479e028a-2be1-486d-8b50-c0002e53f2c2","name":"Response Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"jid\": \"628950xxxxx-1631xxxx@g.us\",\r\n    \"type\": \"group\",\r\n    \"message\": {\r\n        \"text\": \"What's that @62823xxxx?\",\r\n        \"mentions\": [\"62823xxxx@s.whatsapp.net\"]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/messages/send","host":["http://localhost:3000"],"path":[":sessionId","messages","send"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"327"},{"key":"ETag","value":"W/\"147-uzjVxFQmRFBfTvxqegxOJwD/Mao\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:27:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"key\": {\n        \"remoteJid\": \"628950xxxxx-1631xxxx@g.us\",\n        \"fromMe\": true,\n        \"id\": \"BAE58AXXXXXXXX\"\n    },\n    \"message\": {\n        \"extendedTextMessage\": {\n            \"text\": \"What's that @62823xxxxx?\",\n            \"contextInfo\": {\n                \"mentionedJid\": [\n                    \"62823xxxxx@s.whatsapp.net\"\n                ]\n            }\n        }\n    },\n    \"messageTimestamp\": \"1673018835\",\n    \"status\": \"PENDING\",\n    \"participant\": \"628132xxxxx:78@s.whatsapp.net\"\n}"},{"id":"54bd388f-5ca5-4ae4-a379-4453aaed7fbb","name":"Response Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"jid\": \"628950xxxxx-1631xxxx@g.us\",\r\n    \"type\": \"group\",\r\n    \"message\": {\r\n        \"text\": \"What's that @62823xxxx?\",\r\n        \"mentions\": [\"62823xxxx@s.whatsapp.net\"]\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/messages/send","host":["http://localhost:3000"],"path":[":sessionId","messages","send"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"327"},{"key":"ETag","value":"W/\"147-uzjVxFQmRFBfTvxqegxOJwD/Mao\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:27:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during message send\"\n}"}],"_postman_id":"3f9c05ae-49f5-4d46-b6c2-35a6ee57bb8f"},{"name":"Send Bulk Message","id":"4597f937-efac-4832-85a4-ec9d8c389b62","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"jid\": \"62895xxxxx-1631xxxxx@g.us\",\r\n        \"type\": \"group\",\r\n        \"message\": {\r\n            \"text\": \"Okay then!\"\r\n        }\r\n    },\r\n    {\r\n        \"jid\": \"628231xxxxx@s.whatsapp.net\",\r\n        \"type\": \"number\",\r\n        \"delay\": 5000,\r\n        \"message\": {\r\n            \"text\": \"Hello!\"\r\n        }\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/:sessionId/messages/send/bulk","description":"<p>Send a multiple messages. Accept an array of JSON object that has the same shape as the <code>Send Message</code> route. But it also accept an additional <code>delay</code> properties to add a delay for the specific message to send (in <code>milliseconds</code>), default to <code>1000</code>. Keep in mind that it won't be used for the message in first position</p>\n","urlObject":{"path":[":sessionId","messages","send","bulk"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"7fe37a90-476b-4e8d-80ab-4e59baa6f88c","description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"0a8ac62c-e5a7-4225-982d-f1e5ecfc6095","name":"Response Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"jid\": \"62895xxxxx-1631xxxxx@g.us\",\r\n        \"type\": \"group\",\r\n        \"message\": {\r\n            \"text\": \"Okay then!\"\r\n        }\r\n    },\r\n    {\r\n        \"jid\": \"628231xxxxx@s.whatsapp.net\",\r\n        \"type\": \"number\",\r\n        \"delay\": 5000,\r\n        \"message\": {\r\n            \"text\": \"Hello!\"\r\n        }\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/messages/send/bulk","host":["http://localhost:3000"],"path":[":sessionId","messages","send","bulk"],"variable":[{"id":"7fe37a90-476b-4e8d-80ab-4e59baa6f88c","key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"511"},{"key":"ETag","value":"W/\"1ff-UenwtSTBf9lIrco534dkKJ/ay1E\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:43:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"index\": 0,\n            \"result\": {\n                \"key\": {\n                    \"remoteJid\": \"62895xxxxx-1631xxxxx@g.us\",\n                    \"fromMe\": true,\n                    \"id\": \"BAE5DAXXXXXXX\"\n                },\n                \"message\": {\n                    \"extendedTextMessage\": {\n                        \"text\": \"Okay then!\"\n                    }\n                },\n                \"messageTimestamp\": \"1673019785\",\n                \"status\": \"PENDING\",\n                \"participant\": \"628132xxxxx:78@s.whatsapp.net\"\n            }\n        },\n        {\n            \"index\": 1,\n            \"result\": {\n                \"key\": {\n                    \"remoteJid\": \"628231xxxxx@s.whatsapp.net\",\n                    \"fromMe\": true,\n                    \"id\": \"BAE51CFXXXXXX\"\n                },\n                \"message\": {\n                    \"extendedTextMessage\": {\n                        \"text\": \"Hello!\"\n                    }\n                },\n                \"messageTimestamp\": \"1673019792\",\n                \"status\": \"PENDING\"\n            }\n        }\n    ],\n    \"errors\": []\n}"},{"id":"cc9c53ad-fbe0-4db1-8d36-5ab7a7c6ae47","name":"Partial Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"jid\": \"62895xxxxx-1631xxxxx@g.us\",\r\n        \"type\": \"group\",\r\n        \"message\": {\r\n            \"text\": \"Okay then!\"\r\n        }\r\n    },\r\n    {\r\n        \"jid\": \"628231xxxxx@s.whatsapp.net\",\r\n        \"type\": \"number\",\r\n        \"delay\": 5000,\r\n        \"message\": {\r\n            \"text\": \"Hello!\"\r\n        }\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/messages/send/bulk","host":["http://localhost:3000"],"path":[":sessionId","messages","send","bulk"],"variable":[{"id":"7fe37a90-476b-4e8d-80ab-4e59baa6f88c","key":"sessionId","value":"john","description":"Session id"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"511"},{"key":"ETag","value":"W/\"1ff-UenwtSTBf9lIrco534dkKJ/ay1E\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:43:12 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [\n        {\n            \"index\": 0,\n            \"result\": {\n                \"key\": {\n                    \"remoteJid\": \"62895xxxxx-1631xxxxx@g.us\",\n                    \"fromMe\": true,\n                    \"id\": \"BAE5DAXXXXXXX\"\n                },\n                \"message\": {\n                    \"extendedTextMessage\": {\n                        \"text\": \"Okay then!\"\n                    }\n                },\n                \"messageTimestamp\": \"1673019785\",\n                \"status\": \"PENDING\",\n                \"participant\": \"628132xxxxx:78@s.whatsapp.net\"\n            }\n        }\n    ],\n    \"errors\": [\n        {\n            \"index\": 1,\n            \"error\": \"An error occured during message send\"\n        }\n    ]\n}"},{"id":"b9c696cd-1eea-4070-9c46-7d3fff641e5c","name":"Response Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[\r\n    {\r\n        \"jid\": \"62895xxxxx-1631xxxxx@g.us\",\r\n        \"type\": \"group\",\r\n        \"message\": {\r\n            \"text\": \"Okay then!\"\r\n        }\r\n    },\r\n    {\r\n        \"jid\": \"628231xxxxx@s.whatsapp.net\",\r\n        \"type\": \"number\",\r\n        \"delay\": 5000,\r\n        \"message\": {\r\n            \"text\": \"Hello!\"\r\n        }\r\n    }\r\n]","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/messages/send/bulk","host":["http://localhost:3000"],"path":[":sessionId","messages","send","bulk"],"variable":[{"id":"7fe37a90-476b-4e8d-80ab-4e59baa6f88c","key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"126"},{"key":"ETag","value":"W/\"7e-vwijcK5514jDJ9ozSQ9hfiFT+Jc\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:41:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"results\": [],\n    \"errors\": [\n        {\n            \"index\": 0,\n            \"error\": \"An error occured during message send\"\n        },\n        {\n            \"index\": 1,\n            \"error\": \"An error occured during message send\"\n        }\n    ]\n}"}],"_postman_id":"4597f937-efac-4832-85a4-ec9d8c389b62"},{"name":"Download Message Media","id":"4451ef36-bfcb-45c5-a92b-adda532c9028","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\": \"FA85D84D835A5XXXXXXXXXXXX\",\r\n  \"ephemeralOutOfSync\": false,\r\n  \"key\": {\r\n    \"id\": \"FA85D84D835A5XXXXXXXXXXXX\",\r\n    \"fromMe\": false,\r\n    \"remoteJid\": \"62823xxxxx@s.whatsapp.net\"\r\n  },\r\n  \"labels\": [],\r\n  \"mediaData\": {\r\n    \"localPath\": \"Media/WhatsApp Images/IMG-20230205-WA0000.jpg\"\r\n  },\r\n  \"message\": {\r\n    \"imageMessage\": {\r\n      \"url\": \"https://mmg.whatsapp.net/v/t62.7118-24/xxxxxxxxxxxxxx.enc?ccb=11-4&oh=xxxxxxxx&oe=xxxxx&mms3=true\",\r\n      \"width\": 738,\r\n      \"height\": 1600,\r\n      \"mediaKey\": \"xxxxxxxx/xxxxxxx+xxxxxxxxxx=\",\r\n      \"mimetype\": \"image/jpeg\",\r\n      \"directPath\": \"/v/t62.7118-24/xxxxxxxxxxxx.enc?ccb=11-4&oh=xxxxxxx&oe=xxxx\",\r\n      \"fileLength\": \"148979\",\r\n      \"fileSha256\": \"xxxxxxxxx+xxxxxxxxxx=\",\r\n      \"scanLengths\": [11804, 74479, 27132, 35564],\r\n      \"scansSidecar\": \"xxxxxxxxxxxxx+xxx==\",\r\n      \"fileEncSha256\": \"xxxxxxxxx+0k=\",\r\n      \"mediaKeyTimestamp\": \"1675586197\",\r\n      \"midQualityFileSha256\": \"xxxxxxxxxx/xxxxxxxxxx+xxxxxxx=\"\r\n    }\r\n  },\r\n  \"messageStubParameters\": [],\r\n  \"messageTimestamp\": \"1675586199\",\r\n  \"pollUpdates\": [],\r\n  \"reactions\": [],\r\n  \"userReceipt\": []\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/:sessionId/messages/download","description":"<p>Download media from a message. Return the media with its associated content type on success</p>\n","urlObject":{"path":[":sessionId","messages","download"],"host":["http://localhost:3000"],"query":[],"variable":[{"id":"6d40322f-10c0-467d-9dad-040a54f468be","description":{"content":"<p>Session id</p>\n","type":"text/plain"},"type":"any","value":"john","key":"sessionId"}]}},"response":[{"id":"26e198d9-d99a-4d9f-acc9-8bea9e123c50","name":"Response Failed","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\": \"FA85D84D835A5XXXXXXXXXXXX\",\r\n  \"ephemeralOutOfSync\": false,\r\n  \"key\": {\r\n    \"id\": \"FA85D84D835A5XXXXXXXXXXXX\",\r\n    \"fromMe\": false,\r\n    \"remoteJid\": \"62823xxxxx@s.whatsapp.net\"\r\n  },\r\n  \"labels\": [],\r\n  \"mediaData\": {\r\n    \"localPath\": \"Media/WhatsApp Images/IMG-20230205-WA0000.jpg\"\r\n  },\r\n  \"message\": {\r\n    \"imageMessage\": {\r\n      \"url\": \"https://mmg.whatsapp.net/v/t62.7118-24/xxxxxxxxxxxxxx.enc?ccb=11-4&oh=xxxxxxxx&oe=xxxxx&mms3=true\",\r\n      \"width\": 738,\r\n      \"height\": 1600,\r\n      \"mediaKey\": \"xxxxxxxx/xxxxxxx+xxxxxxxxxx=\",\r\n      \"mimetype\": \"image/jpeg\",\r\n      \"directPath\": \"/v/t62.7118-24/xxxxxxxxxxxx.enc?ccb=11-4&oh=xxxxxxx&oe=xxxx\",\r\n      \"fileLength\": \"148979\",\r\n      \"fileSha256\": \"xxxxxxxxx+xxxxxxxxxx=\",\r\n      \"scanLengths\": [11804, 74479, 27132, 35564],\r\n      \"scansSidecar\": \"xxxxxxxxxxxxx+xxx==\",\r\n      \"fileEncSha256\": \"xxxxxxxxx+0k=\",\r\n      \"mediaKeyTimestamp\": \"1675586197\",\r\n      \"midQualityFileSha256\": \"xxxxxxxxxx/xxxxxxxxxx+xxxxxxx=\"\r\n    }\r\n  },\r\n  \"messageStubParameters\": [],\r\n  \"messageTimestamp\": \"1675586199\",\r\n  \"pollUpdates\": [],\r\n  \"reactions\": [],\r\n  \"userReceipt\": []\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3000/:sessionId/messages/download","host":["http://localhost:3000"],"path":[":sessionId","messages","download"],"variable":[{"key":"sessionId","value":"john","description":"Session id"}]}},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"327"},{"key":"ETag","value":"W/\"147-uzjVxFQmRFBfTvxqegxOJwD/Mao\""},{"key":"Date","value":"Fri, 06 Jan 2023 15:27:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"An error occured during message media download\"\n}"}],"_postman_id":"4451ef36-bfcb-45c5-a92b-adda532c9028"}],"id":"0bd390ca-141c-437d-bb61-481363d85c07","_postman_id":"0bd390ca-141c-437d-bb61-481363d85c07","description":""}],"event":[{"listen":"prerequest","script":{"id":"9a0350be-b892-4ef3-98f1-e9f172e918df","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bbd8a3d7-1193-4564-a5b9-856fb1a06912","type":"text/javascript","exec":[""]}}],"variable":[{"key":"BASE_URL","value":"http://localhost:3000","type":"string"}]}