{"info":{"_postman_id":"3ffa3766-0467-421c-a534-d39f7b74bc99","name":"Chat API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"15801526","collectionId":"3ffa3766-0467-421c-a534-d39f7b74bc99","publishedId":"2sAXjRWA3q","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-09-08T04:54:12.000Z"},"item":[{"name":"Auth","item":[{"name":"Login","id":"a2425f71-240c-4524-a31c-048e6fc6b597","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"chester@example.com\",\r\n    \"password\": \"chester123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{prod_url}}/api/v1/auth/login","urlObject":{"path":["api","v1","auth","login"],"host":["{{prod_url}}"],"query":[],"variable":[]}},"response":[{"id":"b59df632-1ff6-4277-8128-fc6a6b246781","name":"[success] Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"chester@example.com\",\r\n    \"password\": \"chester123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"333"},{"key":"ETag","value":"W/\"14d-bmGmQsMwxr3hMnBZ4MPoOlhT3ZQ\""},{"key":"Date","value":"Sun, 08 Sep 2024 04:35:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"message\": \"Successfully login\",\n    \"data\": {\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjEsIm5hbWUiOiJDaGVzdGVyIEJlbm5pbmd0b24iLCJlbWFpbCI6ImNoZXN0ZXJAZXhhbXBsZS5jb20iLCJpYXQiOjE3MjU3NzAxMzR9.qNg6E2MA_L2ZwDev-VJBYg-HW7DAZGNtQNQcwVy9fIw\",\n        \"user\": {\n            \"id\": 1,\n            \"name\": \"Chester Bennington\",\n            \"email\": \"chester@example.com\"\n        }\n    }\n}"}],"_postman_id":"a2425f71-240c-4524-a31c-048e6fc6b597"},{"name":"Register","id":"ecb10734-be9a-4b92-a1ba-8a8280ad4e5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Sekar\",\r\n    \"email\": \"sekar@example.com\",\r\n    \"password\": \"sekar123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/auth/register","urlObject":{"path":["api","v1","auth","register"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"44a48f34-1616-4f95-bf0d-025d22ddb1c1","name":"[success] Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Emily Armstrong\",\r\n    \"email\": \"emily@example.com\",\r\n    \"password\": \"emily123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"130"},{"key":"ETag","value":"W/\"82-2vsQMqlJCPAT5phHXhCIuOkW+QE\""},{"key":"Date","value":"Sun, 08 Sep 2024 05:00:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"CREATED\",\n    \"message\": \"Successfully create new user\",\n    \"data\": {\n        \"id\": 4,\n        \"name\": \"Emily Armstrong\",\n        \"email\": \"emily@example.com\"\n    }\n}"},{"id":"f1785679-c3d7-4bed-85f8-66aaadf6ef4a","name":"[failed] Already Exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Emily Armstrong\",\r\n    \"email\": \"emily@example.com\",\r\n    \"password\": \"emily123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/auth/register"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"ETag","value":"W/\"46-hC/VYsf6Utj2eJOu/LzH/As10F0\""},{"key":"Date","value":"Sun, 08 Sep 2024 05:00:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"CONFLICT\",\n    \"message\": \"Email already registered\",\n    \"data\": null\n}"}],"_postman_id":"ecb10734-be9a-4b92-a1ba-8a8280ad4e5f"},{"name":"Who Am I","id":"0251ff04-8fed-4822-9e4f-7d645aec64dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/v1/auth/whoami","urlObject":{"path":["api","v1","auth","whoami"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"7b3795df-f67a-42a4-8fa4-b570eed8cc49","name":"[success] Who Am I","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/auth/whoami"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"135"},{"key":"ETag","value":"W/\"87-m8z69alN8RD94qUcAojA8pgOgq0\""},{"key":"Date","value":"Sun, 08 Sep 2024 05:02:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"message\": \"Successfully get logged user data\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": \"Chester Bennington\",\n        \"email\": \"chester@example.com\"\n    }\n}"}],"_postman_id":"0251ff04-8fed-4822-9e4f-7d645aec64dc"}],"id":"dec1e148-519c-4f78-b01c-cd472af34c45","_postman_id":"dec1e148-519c-4f78-b01c-cd472af34c45","description":""},{"name":"Chat","item":[{"name":"Get Chats By User","id":"e4738dce-04b9-4a92-92c1-ccabcfd267ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{prod_url}}/api/v1/chats/","urlObject":{"path":["api","v1","chats",""],"host":["{{prod_url}}"],"query":[],"variable":[]}},"response":[{"id":"49b41005-e173-4b6f-b8f2-be7b1771b321","name":"[success] Get Chats By User","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/chats/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1313"},{"key":"ETag","value":"W/\"521-cuVw4Dbjs+8YW1rwtyc9seLReFg\""},{"key":"Date","value":"Mon, 09 Sep 2024 03:59:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"message\": \"Successfully get chats\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"name\": null,\n            \"type\": \"personal\",\n            \"me\": {\n                \"id\": 1,\n                \"name\": \"Chester Bennington\"\n            },\n            \"partner\": [\n                {\n                    \"id\": 2,\n                    \"name\": \"Mike Shinoda\",\n                    \"joined_at\": \"2024-09-07T07:09:30.000Z\",\n                    \"role\": \"member\"\n                }\n            ],\n            \"latestMessage\": {\n                \"id\": 10,\n                \"chat_id\": 1,\n                \"content\": \"How's your weekend looking?\",\n                \"sender\": {\n                    \"id\": 2,\n                    \"name\": \"Mike Shinoda\"\n                },\n                \"created_at\": \"2024-09-07T07:19:20.000Z\"\n            },\n            \"created_at\": \"2024-09-07T07:09:30.000Z\"\n        },\n        {\n            \"id\": 2,\n            \"name\": null,\n            \"type\": \"personal\",\n            \"me\": {\n                \"id\": 1,\n                \"name\": \"Chester Bennington\"\n            },\n            \"partner\": [\n                {\n                    \"id\": 3,\n                    \"name\": \"Joe Hahn\",\n                    \"joined_at\": \"2024-09-08T02:06:42.000Z\",\n                    \"role\": \"member\"\n                }\n            ],\n            \"latestMessage\": {\n                \"id\": 14,\n                \"chat_id\": 2,\n                \"content\": \"Totally! We should catch the next match together.\",\n                \"sender\": {\n                    \"id\": 1,\n                    \"name\": \"Chester Bennington\"\n                },\n                \"created_at\": \"2024-09-07T07:29:10.000Z\"\n            },\n            \"created_at\": \"2024-09-08T02:06:42.000Z\"\n        },\n        {\n            \"id\": 3,\n            \"name\": null,\n            \"type\": \"personal\",\n            \"me\": {\n                \"id\": 1,\n                \"name\": \"Chester Bennington\"\n            },\n            \"partner\": [\n                {\n                    \"id\": 4,\n                    \"name\": \"Emily Armstrong\",\n                    \"joined_at\": \"2024-09-09T03:57:31.085Z\",\n                    \"role\": \"member\"\n                }\n            ],\n            \"latestMessage\": null,\n            \"created_at\": \"2024-09-09T03:57:31.066Z\"\n        },\n        {\n            \"id\": 4,\n            \"name\": null,\n            \"type\": \"personal\",\n            \"me\": {\n                \"id\": 1,\n                \"name\": \"Chester Bennington\"\n            },\n            \"partner\": [\n                {\n                    \"id\": 5,\n                    \"name\": \"Sekar\",\n                    \"joined_at\": \"2024-09-09T03:58:33.180Z\",\n                    \"role\": \"member\"\n                }\n            ],\n            \"latestMessage\": null,\n            \"created_at\": \"2024-09-09T03:58:33.168Z\"\n        }\n    ]\n}"}],"_postman_id":"e4738dce-04b9-4a92-92c1-ccabcfd267ee"},{"name":"Get Chat By Id","id":"a9d75cfd-e6e8-4858-b0b2-33a07ed65ef6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{prod_url}}/api/v1/chats/1","urlObject":{"path":["api","v1","chats","1"],"host":["{{prod_url}}"],"query":[],"variable":[]}},"response":[{"id":"8489ce76-d747-43d4-8682-6805dd77736f","name":"[success] Get Chat By Id","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/chats/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1718"},{"key":"ETag","value":"W/\"6b6-Jn2ngUF9LpnhZI+2Ewc2ZWMmC6Q\""},{"key":"Date","value":"Mon, 09 Sep 2024 02:05:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"message\": \"Successfully get chat\",\n    \"data\": {\n        \"id\": 1,\n        \"name\": null,\n        \"type\": \"personal\",\n        \"me\": {\n            \"id\": 1,\n            \"name\": \"Chester Bennington\"\n        },\n        \"partner\": [\n            {\n                \"id\": 2,\n                \"name\": \"Mike Shinoda\",\n                \"joined_at\": \"2024-09-07T07:09:30.000Z\",\n                \"role\": \"member\"\n            }\n        ],\n        \"messages\": [\n            {\n                \"id\": 1,\n                \"chat_id\": 1,\n                \"content\": \"Hi, Mike!\\nHow are you?\",\n                \"sender\": {\n                    \"id\": 1,\n                    \"name\": \"Chester Bennington\"\n                },\n                \"created_at\": \"2024-09-07T07:09:35.000Z\"\n            },\n            {\n                \"id\": 2,\n                \"chat_id\": 1,\n                \"content\": \"Oh hello, Chester!\",\n                \"sender\": {\n                    \"id\": 2,\n                    \"name\": \"Mike Shinoda\"\n                },\n                \"created_at\": \"2024-09-07T07:11:10.000Z\"\n            },\n            {\n                \"id\": 3,\n                \"chat_id\": 1,\n                \"content\": \"I'm fine. How about you?\",\n                \"sender\": {\n                    \"id\": 2,\n                    \"name\": \"Mike Shinoda\"\n                },\n                \"created_at\": \"2024-09-07T07:11:40.000Z\"\n            },\n            {\n                \"id\": 4,\n                \"chat_id\": 1,\n                \"content\": \"I'm doing well, thanks! Have you finished the report?\",\n                \"sender\": {\n                    \"id\": 1,\n                    \"name\": \"Chester Bennington\"\n                },\n                \"created_at\": \"2024-09-07T07:13:00.000Z\"\n            },\n            {\n                \"id\": 5,\n                \"chat_id\": 1,\n                \"content\": \"Not yet, still working on it.\",\n                \"sender\": {\n                    \"id\": 2,\n                    \"name\": \"Mike Shinoda\"\n                },\n                \"created_at\": \"2024-09-07T07:14:20.000Z\"\n            },\n            {\n                \"id\": 6,\n                \"chat_id\": 1,\n                \"content\": \"Let me know if you need help.\",\n                \"sender\": {\n                    \"id\": 1,\n                    \"name\": \"Chester Bennington\"\n                },\n                \"created_at\": \"2024-09-07T07:15:30.000Z\"\n            },\n            {\n                \"id\": 7,\n                \"chat_id\": 1,\n                \"content\": \"I might take you up on that!\",\n                \"sender\": {\n                    \"id\": 2,\n                    \"name\": \"Mike Shinoda\"\n                },\n                \"created_at\": \"2024-09-07T07:16:45.000Z\"\n            },\n            {\n                \"id\": 8,\n                \"chat_id\": 1,\n                \"content\": \"Thanks, Chester.\",\n                \"sender\": {\n                    \"id\": 2,\n                    \"name\": \"Mike Shinoda\"\n                },\n                \"created_at\": \"2024-09-07T07:16:55.000Z\"\n            },\n            {\n                \"id\": 9,\n                \"chat_id\": 1,\n                \"content\": \"No problem at all.\",\n                \"sender\": {\n                    \"id\": 1,\n                    \"name\": \"Chester Bennington\"\n                },\n                \"created_at\": \"2024-09-07T07:18:00.000Z\"\n            },\n            {\n                \"id\": 10,\n                \"chat_id\": 1,\n                \"content\": \"How's your weekend looking?\",\n                \"sender\": {\n                    \"id\": 2,\n                    \"name\": \"Mike Shinoda\"\n                },\n                \"created_at\": \"2024-09-07T07:19:20.000Z\"\n            }\n        ],\n        \"created_at\": \"2024-09-07T07:09:30.000Z\"\n    }\n}"}],"_postman_id":"a9d75cfd-e6e8-4858-b0b2-33a07ed65ef6"},{"name":"Create New Chat","id":"6b7eeca1-4003-4ae6-b5ac-4e0c5a46522a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": null,\r\n    \"type\": \"personal\",\r\n    \"recipient_id\": 5\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/chats/","urlObject":{"path":["api","v1","chats",""],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ba7bf28a-c6ae-42c7-b810-a3ea5373d6b2","name":"[success] No Latest Message","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": null,\r\n    \"type\": \"personal\",\r\n    \"recipient_id\": 4\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/chats/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"311"},{"key":"ETag","value":"W/\"137-vY2FMaHQ1HTMPszQYX+UtmcB1zo\""},{"key":"Date","value":"Mon, 09 Sep 2024 04:02:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"CREATED\",\n    \"message\": \"Successfully create new chat\",\n    \"data\": {\n        \"id\": 5,\n        \"name\": null,\n        \"type\": \"personal\",\n        \"me\": {\n            \"id\": 1,\n            \"name\": \"Chester Bennington\"\n        },\n        \"partner\": [\n            {\n                \"id\": 4,\n                \"name\": \"Emily Armstrong\",\n                \"joined_at\": \"2024-09-09T04:02:08.507Z\",\n                \"role\": \"member\"\n            }\n        ],\n        \"latestMessage\": null,\n        \"created_at\": \"2024-09-09T04:02:08.448Z\"\n    }\n}"}],"_postman_id":"6b7eeca1-4003-4ae6-b5ac-4e0c5a46522a"},{"name":"Get Messages","id":"8cde369e-2171-4528-88eb-5f6be05851e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{base_url}}/api/v1/chats/2/messages","urlObject":{"path":["api","v1","chats","2","messages"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"96a777e9-8439-45c8-b0f9-35fed393935c","name":"[success] Get Messages","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/chats/1/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1492"},{"key":"ETag","value":"W/\"5d4-/jCYavRcH1rOshUqbQ7KSnTiPyo\""},{"key":"Date","value":"Mon, 09 Sep 2024 02:05:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"message\": \"Successfully get messages\",\n    \"data\": [\n        {\n            \"id\": 1,\n            \"chat_id\": 1,\n            \"content\": \"Hi, Mike!\\nHow are you?\",\n            \"sender\": {\n                \"id\": 1,\n                \"name\": \"Chester Bennington\"\n            },\n            \"created_at\": \"2024-09-07T07:09:35.000Z\"\n        },\n        {\n            \"id\": 2,\n            \"chat_id\": 1,\n            \"content\": \"Oh hello, Chester!\",\n            \"sender\": {\n                \"id\": 2,\n                \"name\": \"Mike Shinoda\"\n            },\n            \"created_at\": \"2024-09-07T07:11:10.000Z\"\n        },\n        {\n            \"id\": 3,\n            \"chat_id\": 1,\n            \"content\": \"I'm fine. How about you?\",\n            \"sender\": {\n                \"id\": 2,\n                \"name\": \"Mike Shinoda\"\n            },\n            \"created_at\": \"2024-09-07T07:11:40.000Z\"\n        },\n        {\n            \"id\": 4,\n            \"chat_id\": 1,\n            \"content\": \"I'm doing well, thanks! Have you finished the report?\",\n            \"sender\": {\n                \"id\": 1,\n                \"name\": \"Chester Bennington\"\n            },\n            \"created_at\": \"2024-09-07T07:13:00.000Z\"\n        },\n        {\n            \"id\": 5,\n            \"chat_id\": 1,\n            \"content\": \"Not yet, still working on it.\",\n            \"sender\": {\n                \"id\": 2,\n                \"name\": \"Mike Shinoda\"\n            },\n            \"created_at\": \"2024-09-07T07:14:20.000Z\"\n        },\n        {\n            \"id\": 6,\n            \"chat_id\": 1,\n            \"content\": \"Let me know if you need help.\",\n            \"sender\": {\n                \"id\": 1,\n                \"name\": \"Chester Bennington\"\n            },\n            \"created_at\": \"2024-09-07T07:15:30.000Z\"\n        },\n        {\n            \"id\": 7,\n            \"chat_id\": 1,\n            \"content\": \"I might take you up on that!\",\n            \"sender\": {\n                \"id\": 2,\n                \"name\": \"Mike Shinoda\"\n            },\n            \"created_at\": \"2024-09-07T07:16:45.000Z\"\n        },\n        {\n            \"id\": 8,\n            \"chat_id\": 1,\n            \"content\": \"Thanks, Chester.\",\n            \"sender\": {\n                \"id\": 2,\n                \"name\": \"Mike Shinoda\"\n            },\n            \"created_at\": \"2024-09-07T07:16:55.000Z\"\n        },\n        {\n            \"id\": 9,\n            \"chat_id\": 1,\n            \"content\": \"No problem at all.\",\n            \"sender\": {\n                \"id\": 1,\n                \"name\": \"Chester Bennington\"\n            },\n            \"created_at\": \"2024-09-07T07:18:00.000Z\"\n        },\n        {\n            \"id\": 10,\n            \"chat_id\": 1,\n            \"content\": \"How's your weekend looking?\",\n            \"sender\": {\n                \"id\": 2,\n                \"name\": \"Mike Shinoda\"\n            },\n            \"created_at\": \"2024-09-07T07:19:20.000Z\"\n        }\n    ]\n}"}],"_postman_id":"8cde369e-2171-4528-88eb-5f6be05851e6"}],"id":"1c209364-6dd5-4b77-8cbf-fa4777bab00d","_postman_id":"1c209364-6dd5-4b77-8cbf-fa4777bab00d","description":""},{"name":"Message","item":[{"name":"Create New Message","id":"2870e1d2-f3b8-4cf0-ad32-df70265186f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"chat_id\": 3,\r\n    \"content\": \"Hi Emily! Are you busy this weekend? Joe and I are planning to play a game together. Would you like to join?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/messages","urlObject":{"path":["api","v1","messages"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"347f002b-3e8a-43c6-936f-e572ad8b71a3","name":"[success] Create New Message","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"chat_id\": 3,\r\n    \"content\": \"Hi Emily! Are you busy this weekend? Joe and I are planning to play a game together. Would you like to join?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"297"},{"key":"ETag","value":"W/\"129-1POkgpKWuvq9kO54NiSHGK+8bVI\""},{"key":"Date","value":"Mon, 09 Sep 2024 02:03:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"CREATED\",\n    \"message\": \"Message successfully created\",\n    \"data\": {\n        \"id\": 15,\n        \"chat_id\": 3,\n        \"content\": \"Hi Emily! Are you busy this weekend? Joe and I are planning to play a game together. Would you like to join?\",\n        \"sender\": {\n            \"id\": 1,\n            \"name\": \"Chester Bennington\"\n        },\n        \"created_at\": \"2024-09-09T02:03:46.052Z\"\n    }\n}"}],"_postman_id":"2870e1d2-f3b8-4cf0-ad32-df70265186f4"}],"id":"42f2e330-72c7-43c3-a476-26c129abf387","_postman_id":"42f2e330-72c7-43c3-a476-26c129abf387","description":""},{"name":"Users","item":[{"name":"Get All Users","id":"764f67ed-0683-4d9b-bc73-b160198719bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{token}}"}]},"isInherited":false},"method":"GET","header":[],"url":"{{prod_url}}/api/v1/users","urlObject":{"path":["api","v1","users"],"host":["{{prod_url}}"],"query":[],"variable":[]}},"response":[{"id":"b765f4dd-0fa8-427b-9e0d-847f17f28e9b","name":"[success] Get All Users","originalRequest":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"697"},{"key":"ETag","value":"W/\"2b9-hLE/ynTMYB8Vr4r5YAZ+Y1qmjMY\""},{"key":"Date","value":"Sun, 08 Sep 2024 12:49:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"OK\",\n    \"message\": \"Successfully get all users\",\n    \"data\": [\n        {\n            \"id\": 3,\n            \"name\": \"Joe Hahn\",\n            \"email\": \"joe@example.com\",\n            \"password\": \"$2b$10$ddRZUryAgHXpJkBBxOJzrOugPqJ7IDp27/hQIn2QUYq0qyMzxt3Z6\",\n            \"createdAt\": \"2024-09-08T20:50:04.000Z\",\n            \"updatedAt\": \"2024-09-08T20:50:04.000Z\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"Mike Shinoda\",\n            \"email\": \"mike@example.com\",\n            \"password\": \"$2b$10$UPdDZ/fxsVZibwmd6lLUguiyE8jlB9ZU6mWbEwPHXqagfb9NbaUka\",\n            \"createdAt\": \"2024-09-07T13:50:04.000Z\",\n            \"updatedAt\": \"2024-09-07T13:50:04.000Z\"\n        },\n        {\n            \"id\": 1,\n            \"name\": \"Chester Bennington\",\n            \"email\": \"chester@example.com\",\n            \"password\": \"$2b$10$5JNnV9K1B4NFyE92Sq230e/YRcrh8PAnlCbkirNHIzAm4k5ijAKCS\",\n            \"createdAt\": \"2024-09-06T08:50:04.000Z\",\n            \"updatedAt\": \"2024-09-06T08:50:04.000Z\"\n        }\n    ]\n}"}],"_postman_id":"764f67ed-0683-4d9b-bc73-b160198719bb"}],"id":"ae0ed76b-6ce5-4c00-bced-16d03e2ab392","_postman_id":"ae0ed76b-6ce5-4c00-bced-16d03e2ab392","description":""}]}