{"info":{"_postman_id":"264752d1-0d88-495e-8bab-aef665fcd910","name":"Dowell Living Lab Chat API","description":"<html><head></head><body><p>This documentation provides details about the Dowell Living Lab Chat API.</p>\n<p>This API allows you to create and manage chat rooms for the Living Lab Chat application</p>\n<p>Below, you'll find information about the endpoints, request/response formats, and authentication requirements.</p>\n<p><strong>Note:</strong> Ensure to obtain api_key from:</p>\n<p><a href=\"https://\">https://1105-ai-dowell.github.io/100105-DoWellApiKeySystem/</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"26462221","collectionId":"264752d1-0d88-495e-8bab-aef665fcd910","publishedId":"2s9YJW6m1H","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-09-25T09:33:13.000Z"},"item":[{"name":"Fetch Public Room","id":"da5cc772-3312-4278-96ad-28a6371edb5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"room_id","value":"","type":"text"}]},"url":"https://100096.pythonanywhere.com/api/v2/publicroom/?api_key=<your-api-key>","description":"<p>Retrieve all public room based on the room_id</p>\n","urlObject":{"protocol":"https","path":["api","v2","publicroom",""],"host":["100096","pythonanywhere","com"],"query":[{"key":"api_key","value":"<your-api-key>"}],"variable":[]}},"response":[{"id":"433badaa-61bf-41c1-95d8-0e4bc3631d54","name":"Fetch Public Room","originalRequest":{"method":"GET","header":[],"body":{"mode":"formdata","formdata":[{"key":"room_id","value":"13-3700b6adce4a41d392c298be682ec550","type":"text"}]},"url":{"raw":"https://100096.pythonanywhere.com/api/v2/publicroom/?api_key=<your-api-key>","protocol":"https","host":["100096","pythonanywhere","com"],"path":["api","v2","publicroom",""],"query":[{"key":"api_key","value":"<your-api-key>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"814"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"Server","value":"daphne"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Room deatils based on room_id\",\n    \"response\": [\n        {\n            \"_id\": \"62fc7db7cee6d0752b849071\",\n            \"eventId\": \"FB1010000000166071441850936704\",\n            \"room_name\": \"Dowel_room1\"\n        },\n        {\n            \"_id\": \"62fc8e052e325febd5849b6d\",\n            \"eventId\": \"FB1010000000166071858753505929\",\n            \"room_name\": \"Dowell_room2\"\n        },\n        {\n            \"_id\": \"6345a447546f7aaacdd948e1\",\n            \"eventId\": \"FB1010000000166550841753965404\",\n            \"data\": {\n                \"rooms\": {\n                    \"room_name\": \"sffsd_6342f264e04c626cd2a880a2\",\n                    \"members\": [\n                        \"DigitalQ_lead\",\n                        \"sffsd\"\n                    ]\n                }\n            }\n        },\n        {\n            \"_id\": \"6345a4a4546f7aaacdd948f9\",\n            \"eventId\": \"FB1010000000016655085105873198\",\n            \"data\": {\n                \"rooms\": {\n                    \"room_name\": \"sffsd_6342f264e04c626cd2a880a2\",\n                    \"members\": [\n                        \"DigitalQ_lead\",\n                        \"sffsd\"\n                    ]\n                }\n            }\n        },\n        {\n            \"_id\": \"6345a850546f7aaacdd94977\",\n            \"eventId\": \"FB1010000000166550945154508321\",\n            \"data\": {\n                \"rooms\": {\n                    \"room_name\": \"Mike_6345a72c546f7aaacdd9492f\",\n                    \"members\": [\n                        \"DowellChat_lead\",\n                        \"Mike\"\n                    ]\n                }\n            }\n        }\n    ]\n}"}],"_postman_id":"da5cc772-3312-4278-96ad-28a6371edb5b"},{"name":"Create Public Room","id":"e9852dc6-d927-4d7a-98c9-1a915d36c0e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"org_id","value":"","description":"<p>Organization ID</p>\n","type":"text"},{"key":"product_name","value":"","description":"<p>Name of Product</p>\n","type":"text"},{"key":"portfolio_name","value":"","description":"<p>Name of Portfolio</p>\n","type":"text"}]},"url":"https://100096.pythonanywhere.com/api/v2/publicroom/?api_key=<your-api-key>","description":"<p>Create a new public chat room in the Living Lab Chat application.</p>\n","urlObject":{"protocol":"https","path":["api","v2","publicroom",""],"host":["100096","pythonanywhere","com"],"query":[{"key":"api_key","value":"<your-api-key>"}],"variable":[]}},"response":[{"id":"3e7b9349-3a5e-45f4-aacf-dbd57778ed68","name":"Create Public Room","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"org_id","value":"DOWELL12345","type":"text"},{"key":"product_name","value":"WIFIQRCODE","type":"text"},{"key":"portfolio_name","value":"umair","type":"text"}]},"url":{"raw":"https://100096.pythonanywhere.com/api/v2/publicroom/?api_key=<your-api-key>","protocol":"https","host":["100096","pythonanywhere","com"],"path":["api","v2","publicroom",""],"query":[{"key":"api_key","value":"<your-api-key>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 19 Sep 2023 19:26:03 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"X-Clacks-Overhead","value":"GNU Terry Pratchett"},{"key":"Content-Encoding","value":"gzip"},{"key":"Server","value":"PythonAnywhere"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Room created successfully\",\n    \"inserted_id\": \"6509f5ca150a89fe8afe469a\",\n    \"response\": {\n        \"eventId\": \"FB10100000001695151562#4171472\",\n        \"user_id\": \"3700b6adce4a41d392c298be682ec550\",\n        \"org_id\": \"DOWELL12345\",\n        \"portfolio_name\": \"umair\",\n        \"room_room_id\": \"13-3700b6adce4a41d392c298be682ec550\",\n        \"product_name\": \"WIFIQRCODE\",\n        \"message\": {\n            \"receiver\": \"How may I help you\"\n        },\n        \"isLogin\": true,\n        \"is_active\": true\n    }\n}"}],"_postman_id":"e9852dc6-d927-4d7a-98c9-1a915d36c0e7"},{"name":"Get Message","id":"be29957f-4f22-487b-8ca6-42c85cc2e74c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://100096.pythonanywhere.com/api/v2/room-service/?type=get_messages&room_id=<your_room_id>","description":"<p>Returns all the messages within a given room</p>\n","urlObject":{"protocol":"https","path":["api","v2","room-service",""],"host":["100096","pythonanywhere","com"],"query":[{"key":"type","value":"get_messages"},{"key":"room_id","value":"<your_room_id>"}],"variable":[]}},"response":[{"id":"8a9d6eb4-3271-432b-a019-9954aa91b08f","name":"Get Message","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://100096.pythonanywhere.com/api/v2/room-service/?type=get_messages&room_id=<your_room_id>","protocol":"https","host":["100096","pythonanywhere","com"],"path":["api","v2","room-service",""],"query":[{"key":"type","value":"get_messages"},{"key":"room_id","value":"<your_room_id>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 22 Sep 2023 12:49:12 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"X-Clacks-Overhead","value":"GNU Terry Pratchett"},{"key":"Content-Encoding","value":"gzip"},{"key":"Server","value":"PythonAnywhere"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Room deatils based on org_id\",\n    \"response\": {\n        \"isSuccess\": true,\n        \"data\": [\n            {\n                \"_id\": \"64f700c0928ffb14bb3775fc\",\n                \"room_id\": \"64f6ff29c4a02ffba74d1e2e\",\n                \"message_data\": \"Hello Ahmar\",\n                \"side\": false,\n                \"author\": \"client\",\n                \"message_type\": \"text\",\n                \"read\": true\n            },\n            {\n                \"_id\": \"64f702a629f7efcd8bc8e9ef\",\n                \"room_id\": \"64f6ff29c4a02ffba74d1e2e\",\n                \"message_data\": \"hello\",\n                \"side\": true,\n                \"author\": \"client\",\n                \"message_type\": \"TEXT\",\n                \"read\": true\n            },\n            {\n                \"_id\": \"64f702e6b3cf55be27eeda5a\",\n                \"room_id\": \"64f6ff29c4a02ffba74d1e2e\",\n                \"message_data\": \"check the Api\",\n                \"side\": false,\n                \"author\": \"client\",\n                \"message_type\": \"text\",\n                \"read\": true\n            },\n            {\n                \"_id\": \"64f7039ef8366cc1a22dd6f9\",\n                \"room_id\": \"64f6ff29c4a02ffba74d1e2e\",\n                \"message_data\": \"Hello\",\n                \"side\": true,\n                \"author\": \"client\",\n                \"message_type\": \"TEXT\",\n                \"read\": true\n            },\n            {\n                \"_id\": \"64f703acf565cef49e36ef0a\",\n                \"room_id\": \"64f6ff29c4a02ffba74d1e2e\",\n                \"message_data\": \"how are you?\",\n                \"side\": true,\n                \"author\": \"client\",\n                \"message_type\": \"TEXT\",\n                \"read\": true\n            },\n            {\n                \"_id\": \"64f703c9492215a52e7aff62\",\n                \"room_id\": \"64f6ff29c4a02ffba74d1e2e\",\n                \"message_data\": \"check every thing is fine\",\n                \"side\": false,\n                \"author\": \"client\",\n                \"message_type\": \"text\",\n                \"read\": true\n            }\n        ]\n    }\n}"}],"_postman_id":"be29957f-4f22-487b-8ca6-42c85cc2e74c"},{"name":"Create Message","id":"e8afba51-a99f-45aa-897a-24cf4861248f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"room_id\": \"<room_id>\",\r\n    \"type\": \"create_message\",\r\n    \"message_data\": \"<content of the message>\",\r\n    \"side\": false,\r\n    \"author\": \"<message author>\",\r\n    \"message_type\": \"text\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100096.pythonanywhere.com/api/v2/room-service/","description":"<p>Creates a New Message</p>\n","urlObject":{"protocol":"https","path":["api","v2","room-service",""],"host":["100096","pythonanywhere","com"],"query":[],"variable":[]}},"response":[{"id":"f48c94e3-c3e5-479c-b4d6-617fcd101aa5","name":"Create Message","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"room_id\": \"64f6ff29c4a02ffba74d1e2e\",\r\n    \"type\": \"create_message\",\r\n    \"message_data\": \"check everything is fine\",\r\n    \"side\": false,\r\n    \"author\": \"client\",\r\n    \"message_type\": \"text\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://100096.pythonanywhere.com/api/v2/room-service/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Fri, 22 Sep 2023 12:58:24 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"128"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Cookie, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"},{"key":"X-Clacks-Overhead","value":"GNU Terry Pratchett"},{"key":"Server","value":"PythonAnywhere"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Message updated successfully\",\n    \"response\": {\n        \"isSuccess\": true,\n        \"inserted_id\": \"650d8f70debe41d7f0a214cb\"\n    }\n}"}],"_postman_id":"e8afba51-a99f-45aa-897a-24cf4861248f"},{"name":"update comment","id":"97558005-134a-49f4-8a68-50e89a307e0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"97558005-134a-49f4-8a68-50e89a307e0a"}]}