{"info":{"_postman_id":"f21dffd5-93a0-46ed-9edb-d1c570121151","name":"chatrly API documentation","description":"<html><head></head><body><p>The chatrly server provides endpoints to authenticate users, manage conversations and messages, and handle friendships. Use this collection to explore authentication flows (login, register, logout, refresh), conversation/message operations (create, list, get, delete), and friend/friend-request management. Each request uses http://localhost:1337/api/v1 — set this collection or environment variable before running. Use the included folders (Auth, Conversations, Messages, Friends, Friends Requests, Users) to find grouped endpoints and example workflows.</p>\n<hr>\n<h2 id=\"getting-started\">Getting Started</h2>\n<h3 id=\"prerequisites\">Prerequisites</h3>\n<ul>\n<li><strong>Set <code>http://localhost:1337/api/v1</code></strong> to your running chatrly server base URL (for example: <code>http://localhost:3000</code>).<ul>\n<li>You can set this as a <strong>collection variable</strong> or in an <strong>environment</strong> (recommended).</li>\n</ul>\n</li>\n</ul>\n<h3 id=\"recommended-environment-variables\">Recommended environment variables</h3>\n<p>Create/select an environment and set the following variables (adjust as needed):</p>\n<ul>\n<li><code>base_url</code> — API base URL (required)</li>\n<li><code>email</code> — user email used for auth requests</li>\n<li><code>password</code> — user password used for auth requests</li>\n<li><code>name</code> — user name used for registration</li>\n</ul>\n<p>Optional (handy for multi-user tests):</p>\n<ul>\n<li><code>alice.email</code> / <code>aliceEmail</code> — a second user email (if your workflows need a second account)</li>\n</ul>\n<blockquote>\n<p>Note: This collection already defines some of these at the <strong>collection level</strong>. Environment variables will override collection variables, which makes environments a good place for local vs. staging vs. prod values.</p>\n</blockquote>\n<h3 id=\"auth-flow-recommended-order\">Auth flow (recommended order)</h3>\n<p>Use the <strong>Auth</strong> folder requests in this sequence:</p>\n<ol>\n<li><strong>Register</strong>: <code>POST /auth/register</code> (create an account)</li>\n<li><strong>Login</strong>: <code>POST /auth/login</code> (obtain tokens / authenticated session)</li>\n<li><strong>Refresh</strong>: <code>POST /auth/refresh</code> (use when access expires)</li>\n<li><strong>Logout</strong>: <code>POST /auth/logout</code> (invalidate session / refresh token)</li>\n</ol>\n<p>If your API returns access tokens, store them in your environment and send them using the auth method your server expects (for example, an <code>Authorization: Bearer &lt;token&gt;</code> header).</p>\n<h3 id=\"quick-smoke-test-path\">Quick smoke test path</h3>\n<p>To quickly verify connectivity + authentication, run:</p>\n<ol>\n<li><strong>Login</strong> — <code>POST http://localhost:1337/api/v1/auth/login</code></li>\n<li><strong>Get authenticated user</strong> — <code>GET http://localhost:1337/api/v1/users/me</code></li>\n<li><strong>Get conversations</strong> — <code>GET http://localhost:1337/api/v1/conversations</code></li>\n</ol>\n<p>This confirms:</p>\n<ul>\n<li><code>base_url</code> is correct</li>\n<li>auth is working</li>\n<li>core read endpoints are reachable</li>\n</ul>\n<h3 id=\"running-with-collection-runner\">Running with Collection Runner</h3>\n<ul>\n<li>To run everything: click <strong>Run</strong> on the collection and execute it in <strong>Collection Runner</strong>.</li>\n<li>To run a subset: open the collection runner and choose a <strong>folder</strong> (for example, run just <strong>Auth</strong> or just <strong>Conversations</strong>).</li>\n<li>Choose the correct <strong>Environment</strong> (with <code>base_url</code>, credentials, and any tokens you use).</li>\n</ul>\n<h3 id=\"using-examples\">Using examples</h3>\n<p>Many requests can include <strong>saved examples</strong> (sample responses).</p>\n<ul>\n<li>Use examples as reference for expected response shape/status.</li>\n<li>Examples can also power <strong>mock servers</strong> (when you create a mock from this collection, Postman returns the saved examples for matching requests).</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"27668806","collectionId":"f21dffd5-93a0-46ed-9edb-d1c570121151","publishedId":"2sBXcHgySs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-02-27T02:45:49.000Z"},"item":[{"name":"Auth","item":[{"name":"register user","event":[{"listen":"test","script":{"id":"b894e966-e674-4246-a319-d932b4ed7bf4","exec":[""],"type":"text/javascript","packages":{}}},{"listen":"prerequest","script":{"id":"3a08dfaf-c1fa-41f7-9391-486a088c0bfd","exec":[""],"type":"text/javascript","packages":{}}}],"id":"83d5c000-39cf-4286-b3af-e6255fdb35fa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Mohammed zee\",\n    \"email\": \"zee@example.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/register","urlObject":{"path":["auth","register"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"7265a401-6efe-47f2-8b0e-0e0197300a03","name":"name field is missing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"test@example.com\",\n    \"password\": \"Password123!\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"84"},{"key":"ETag","value":"W/\"54-hypuu3AtMEXuZRhE1PeZdNKOEaU\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:44:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Validation error\",\n    \"errors\": [\n        {\n            \"field\": \"body.name\",\n            \"message\": \"Required\"\n        }\n    ]\n}"},{"id":"88ce86a2-71d9-47b2-8c35-755531589e28","name":"email field is missing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Jane Doe\",\n    \"password\": \"Password123!\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"85"},{"key":"ETag","value":"W/\"55-sd5TVFGucqGUaD8XGZUX4Hu4ZDo\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:44:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Validation error\",\n    \"errors\": [\n        {\n            \"field\": \"body.email\",\n            \"message\": \"Required\"\n        }\n    ]\n}"},{"id":"0681c896-85ab-4400-8e42-3d1b2ec1953e","name":"password field is missing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Jane Doe\",\n    \"email\": \"test@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"88"},{"key":"ETag","value":"W/\"58-J6ypeDpFxZPms4OSA24xOq8cVOE\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:45:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Validation error\",\n    \"errors\": [\n        {\n            \"field\": \"body.password\",\n            \"message\": \"Required\"\n        }\n    ]\n}"},{"id":"1d145cbe-a2d7-491c-bac6-ece70b423474","name":"successful response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Jane Doe\",\n    \"email\": \"test@example.com\",\n    \"password\": \"Password123!\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJSUzI1NiJ9.eyJpZCI6ImZlMzRlNTdkLWZiYTgtNDQ1ZC04YjM4LTYxNjgxYzg2OWRjMyIsIm5hbWUiOiJKYW5lIERvZSIsImVtYWlsIjoidGVzdEBleGFtcGxlLmNvbSIsImlhdCI6MTc3MjA3NzUzNywiZXhwIjoxNzcyMDc4NDM3fQ.INWZLa5dg5_UJvqo7HI1QGXKLbQIjTvWJ40X5wvQpwpsSrji_k_wm9TTpI0z4iU4gepMHktcSvTJ9fxRWU0stm4cFbEMkcpA14wLCP-1So2toMUYQ1_KI6FsBUmFl4cKugKovynA2hdLC5ASyUhDvb_rwmG4RbHrvskciTY_sraUaRekJyXZyXlWFfFH4mWxue5M4CRp78BIGw7SFC9-_Ps_AizyDgI2jO8h0WelZHGNS7C1IjHBeZpieWFxSjUSDqdh9zHdsGkhBD9TJNihO64QH91yG6rBjvXvX-BaXkH3HIRUIZbqMpdtutx6v4kVvL1T2_42WpI0IPl7SQnBthwkB6MiuItJ3XaYDriPNAzxzNB7g5xBqEvcw0F0RZ5MC6YmCsjD5V1gEOp3PHT8UXZPT2zLdq_IEOyDmLqteqhJGF33gMUwPtu_346Ro8_cxGtGPnXBrsrx-19EvKhfAIOKL3_xoY1F9TC_zMVvUq_KAdUCvY4LU_2q0myTFt23cQlwGPjwo9IyNNQroyCibKSRMGeM6ShLJlGq7nZWI9hqW7oScwQFaFDWaxTWgJtHPEXAT_0_CZCN0yKgOtXwRtJrxUXIXEc-uon72alTPZjHAVok8OjifH_-xxj2fNygSJ1j69zwdZG7upgp_JG3BDfo_Y-Tql7BRzvSdo1SaOc; Max-Age=900; Path=/; Expires=Thu, 26 Feb 2026 04:00:37 GMT; HttpOnly; SameSite=Strict"},{"key":"Set-Cookie","value":"refreshToken=dd3b3b48166b9d670add793a2a175f2aae0a0c5fddbc86c5b31e0dab7bb04483; Max-Age=604800; Path=/; Expires=Thu, 05 Mar 2026 03:45:37 GMT; HttpOnly; SameSite=Strict"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"177"},{"key":"ETag","value":"W/\"b1-IzIWmKgCXx/Dj2Hpq1sgEIriFBg\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:45:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"id\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n        \"name\": \"Jane Doe\",\n        \"email\": \"test@example.com\",\n        \"createdAt\": \"2026-02-26T03:45:37.967Z\",\n        \"updatedAt\": \"2026-02-26T03:45:37.967Z\"\n    }\n}"}],"_postman_id":"83d5c000-39cf-4286-b3af-e6255fdb35fa"},{"name":"login user","id":"3c48d545-6fca-4b0e-a0d8-a63958ad47f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"mohammed@example.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/login","urlObject":{"path":["auth","login"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"d0f1cc2d-a1f3-4a89-9bc9-e8ea0b8c86d2","name":"email field is missing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"85"},{"key":"ETag","value":"W/\"55-sd5TVFGucqGUaD8XGZUX4Hu4ZDo\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:46:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Validation error\",\n    \"errors\": [\n        {\n            \"field\": \"body.email\",\n            \"message\": \"Required\"\n        }\n    ]\n}"},{"id":"cf51848e-dac1-404c-b4c0-9c8e70c9d425","name":"password field is missing","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"mohammed@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"88"},{"key":"ETag","value":"W/\"58-J6ypeDpFxZPms4OSA24xOq8cVOE\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:46:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Validation error\",\n    \"errors\": [\n        {\n            \"field\": \"body.password\",\n            \"message\": \"Required\"\n        }\n    ]\n}"},{"id":"de6960b5-80e8-4c9d-80c0-b626baeaba70","name":"invalid credentials","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"mohammed@example.com\",\n    \"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-mRYQ6Yx/raK/ssDeWseqQCiH0yM\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:47:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Invalid credentials\"\n}"},{"id":"879c609e-e9b9-492e-9353-8bb5d0f669ec","name":"successful response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"test@example.com\",\n    \"password\": \"Password123!\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJSUzI1NiJ9.eyJpZCI6ImZlMzRlNTdkLWZiYTgtNDQ1ZC04YjM4LTYxNjgxYzg2OWRjMyIsIm5hbWUiOiJKYW5lIERvZSIsImVtYWlsIjoidGVzdEBleGFtcGxlLmNvbSIsImlhdCI6MTc3MjA3NzczMSwiZXhwIjoxNzcyMDc4NjMxfQ.RTyzY5KcG4mkxl4LtBVTvtEauxMMK2nkS0peA2g9yH1s9A_3-9v0vGK5ojtP4eXkSrQWI9hzqz41YfW2mI9fB7cN5QJkWNOw3dGka1-XUAGBKY9uUQ3uybLliKPTAOpeJfdp7KzkwR1SEmMyicbLLbU_vVNBYtsRnXXKGSnmTLfQ6QJz-mCFgy3dN-YuuWEgDbnAobbrq54Hbgse1kv1qg6qxCh9wYeWmvZeiJ1VbaJTYpXmLIKSj_tqJPCvufJr4o3xTVUaEp4xKPCgDzA8HOXlORBPmFPpDiZ1r5ggWJcbnO2R2C6xISkaA_zeB4JONwE2K7PAQ7CXDEDnY8DNX4fusrd-oXuLejsyXDu_SsQ-992RghsG8sT9yxFsD3aQlXe3Lmpnw7IRoNqM-imymCx4nDkoyojvaVuQg6UOsDU5vpTXuOhqDmgbWFabDK0g-oiQ8AtNrfN_RZD217WRUDGVKFm7AlNVqKUbKheMJbAOggwvoY2-UUIQPEhFvJxJii6KumYgWOEJq1gIAlaq15rRlf0w-NVTP9hh81Z6i75TG4n9DVlEwtIIT0Pt92HWvMAwFx6PQkmPImRD8xkHSQsCWU23Sl8yfFmJaCUWkenWXJaxpL0YCG7Yq-7Yqnb971hhnDz9RrMMivNVQgSQzCBzmzqgzETYk2zwVo5bkvg; Max-Age=900; Path=/; Expires=Thu, 26 Feb 2026 04:03:51 GMT; HttpOnly; SameSite=Strict"},{"key":"Set-Cookie","value":"refreshToken=74fff0bfa7fc9964bfb9e6d1111922179938ac5248727150a82904feb00a59d3; Max-Age=604800; Path=/; Expires=Thu, 05 Mar 2026 03:48:51 GMT; HttpOnly; SameSite=Strict"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"177"},{"key":"ETag","value":"W/\"b1-IzIWmKgCXx/Dj2Hpq1sgEIriFBg\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:48:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"id\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n        \"name\": \"Jane Doe\",\n        \"email\": \"test@example.com\",\n        \"createdAt\": \"2026-02-26T03:45:37.967Z\",\n        \"updatedAt\": \"2026-02-26T03:45:37.967Z\"\n    }\n}"}],"_postman_id":"3c48d545-6fca-4b0e-a0d8-a63958ad47f5"},{"name":"logout user","event":[{"listen":"test","script":{"id":"754da5d9-39f2-4872-a519-964244b9dfef","exec":["pm.test(\"Clear cookies\", () => {","    console.log(pm.cookies.length)","    pm.expect(pm.cookies.length).to.eql(0)","})",""],"type":"text/javascript","packages":{}}}],"id":"bf9738e8-662d-4b3a-bca1-9de8d09523b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"url":"http://localhost:1337/api/v1/auth/logout","urlObject":{"path":["auth","logout"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"cf22af6d-b15a-4c76-b9ff-efa16d5800ac","name":"successful response","originalRequest":{"method":"POST","header":[],"url":"http://localhost:1337/api/v1/auth/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT"},{"key":"Set-Cookie","value":"refreshToken=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-V9rW7eXSi+fbWW1efmHlOS+A738\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:55:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User logged out successfully\"\n}"}],"_postman_id":"bf9738e8-662d-4b3a-bca1-9de8d09523b3"},{"name":"refresh token","id":"ee226d82-738c-49e2-8d32-0255a7f80308","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"url":"http://localhost:1337/api/v1/auth/refresh","urlObject":{"path":["auth","refresh"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"2c1dcc8f-dfa2-414d-9f2f-17515d3756e2","name":"logout","originalRequest":{"method":"POST","header":[],"url":"http://localhost:1337/api/v1/auth/refresh"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"ETag","value":"W/\"25-KEPHkG/BKmCGnJoMsCZe+Xxf5Xk\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:55:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"No refresh token provided\"\n}"},{"id":"19326625-af62-4d43-bf76-01730408537b","name":"successful response","originalRequest":{"method":"POST","header":[],"url":"http://localhost:1337/api/v1/auth/refresh"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Set-Cookie","value":"accessToken=eyJhbGciOiJSUzI1NiJ9.eyJpZCI6ImZlMzRlNTdkLWZiYTgtNDQ1ZC04YjM4LTYxNjgxYzg2OWRjMyIsIm5hbWUiOiJKYW5lIERvZSIsImVtYWlsIjoidGVzdEBleGFtcGxlLmNvbSIsImlhdCI6MTc3MjA3ODIwNCwiZXhwIjoxNzcyMDc5MTA0fQ.ASuM7K6xJP8pDQIWyUKJEHMvATjnjs6VC5OhxA3sBXxKSF1s0cL6gVIQ4fePaw90RqwqwvI5CYJJ3JwI8kaYUUEvdIPKHqLN0tDAUo1jrnprB0IGbD9sU_1_B4q_R0K9DL5Jwdw_XnPpInSvKKdWLZCGCm-epsOycHoTamImiFCzwJBuz8LepVkZ13zZ8dYemIoMp3GCEr7d-J7o_3kRhqnQFXNbsZJS25v6n6LDJxHQfr5jD9dPvoV0Dh7zP6zJn7bgB9b42Xo3AFINA7SDm5qkn8EdqXBsqiI1WKU1E1xxXnJzH1hOeVTjb4re7YljTuf4NK_RK1dyQ5u08Vvla7vbFfKQnS3-LVLlnmJaAbYR772UnZOSJrhJMuyq6VCVPIsCoB-7A51dQ4nGvHXHkVo6tUvaSKZ598JDDXam71DK79bhrb0eY7A9YvMe6ODbjB0rYARC3DnhCxnjdPEgAuxy7Yz19eU1YVIaUH0s28nQKP3lQR7U_iP9d4Z7t0l3BGymSRSHjusY5OdxbMnhOfnhC0VxovXa69qciSev3f7qM5bBA9-O1xJv-psQ3ZlB51C9sN5y5ZsNBEA6Z_4gSTpvEE6m-dSnO6eN9esYoVT-ouBm-3bDLSPScuab15dE-f4P1M2PgSMheMBRVPJu2x9-kR0ydtXPaGDgES9-ars; Max-Age=900; Path=/; Expires=Thu, 26 Feb 2026 04:11:44 GMT; HttpOnly; SameSite=Strict"},{"key":"Set-Cookie","value":"refreshToken=e4681eb28b4a7b9e22fe97697e33707bfdb6e81bdcf5fbd4adf00151d4ce3475; Max-Age=604800; Path=/; Expires=Thu, 05 Mar 2026 03:56:44 GMT; HttpOnly; SameSite=Strict"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"30"},{"key":"ETag","value":"W/\"1e-LnNxkPYqOaTKTceq1N7PlWXrQXw\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:56:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Tokens refreshed\"\n}"}],"_postman_id":"ee226d82-738c-49e2-8d32-0255a7f80308"}],"id":"eca2f6f8-14e2-4ddc-aeb2-1d9311dba19b","description":"<p>The <code>/auth</code> let users manage their authentication status</p>\n","_postman_id":"eca2f6f8-14e2-4ddc-aeb2-1d9311dba19b"},{"name":"Users","item":[{"name":"Get authenticated user","id":"f0ec91b2-622d-489f-9b15-9a67d727b941","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:1337/api/v1/users/me","urlObject":{"path":["users","me"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"9a2be002-ef44-42ae-8188-9dc84740c156","name":"logout","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1337/api/v1/users/me"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"33"},{"key":"ETag","value":"W/\"21-q7VhYoMZ1uFG1khq4Rs3dX5qbFI\""},{"key":"Date","value":"Thu, 26 Feb 2026 02:36:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"No token was provided\"\n}"},{"id":"4262067f-d9c8-40f6-b511-b8da01e3c402","name":"successful response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1337/api/v1/users/me"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"133"},{"key":"ETag","value":"W/\"85-waXveziMjSfYndBClld2EdG8UJU\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:57:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"user\": {\n        \"id\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n        \"name\": \"Jane Doe\",\n        \"email\": \"test@example.com\",\n        \"iat\": 1772078204,\n        \"exp\": 1772079104\n    }\n}"}],"_postman_id":"f0ec91b2-622d-489f-9b15-9a67d727b941"}],"id":"fbf26849-823c-45b1-93b3-ddd6fc67f24f","description":"<p>The <code>/users/me</code> endpoint returns information about the authenticated user</p>\n","_postman_id":"fbf26849-823c-45b1-93b3-ddd6fc67f24f"},{"name":"Friends Requests","item":[{"name":"get friend requests","id":"1163eb26-28fa-4b89-bf84-15294e1f1404","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:1337/api/v1/friend-requests?type=sent","urlObject":{"path":["friend-requests"],"host":["http://localhost:1337/api/v1"],"query":[{"key":"type","value":"sent"}],"variable":[]}},"response":[{"id":"d453b54d-7c09-4b51-8736-18b73877c1b4","name":"invalid query param","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:1337/api/v1/friend-requests?type=","host":["http://localhost:1337/api/v1"],"path":["friend-requests"],"query":[{"key":"type","value":"","description":"Gets sent friend request or received friend request "}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"138"},{"key":"ETag","value":"W/\"8a-G9q6SJIQMS7YLRH1sOmUmj28APM\""},{"key":"Date","value":"Thu, 26 Feb 2026 03:59:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Validation error\",\n    \"errors\": [\n        {\n            \"field\": \"query.type\",\n            \"message\": \"Invalid enum value. Expected 'received' | 'sent', received ''\"\n        }\n    ]\n}"},{"id":"2cd8c72c-a3d3-4e1e-8240-e9ba2f615fa7","name":"get sent friend requests","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:1337/api/v1/friend-requests?type=sent","host":["http://localhost:1337/api/v1"],"path":["friend-requests"],"query":[{"key":"type","value":"sent","description":"Gets sent friend request or received friend request "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"162"},{"key":"ETag","value":"W/\"a2-rkqvdEi1HXA3BzK3AMbzpbpKedA\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:29:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"friendRequests\": [\n        {\n            \"id\": \"8b2c0f11-76ba-48f9-bb9f-8bc2beaaf1da\",\n            \"user\": {\n                \"id\": \"f1c4766d-cd01-41de-a4b5-a4950c2a2f89\",\n                \"name\": \"Alice\",\n                \"email\": \"alice@example.com\"\n            }\n        }\n    ]\n}"},{"id":"bac2d56f-63bd-464d-ac27-d40bd47697bf","name":"get received friend requests","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:1337/api/v1/friend-requests?type=received","host":["http://localhost:1337/api/v1"],"path":["friend-requests"],"query":[{"key":"type","value":"received","description":"Gets sent friend request or received friend request "}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"162"},{"key":"ETag","value":"W/\"a2-n2zFITVS2ZXdmCfIJJVTvZPWpiI\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:34:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"friendRequests\": [\n        {\n            \"id\": \"d26e4d9e-99ff-4e8d-ac11-3f13092cd430\",\n            \"user\": {\n                \"id\": \"71a477a7-e2d3-47a6-850e-99201e8e959f\",\n                \"name\": \"David\",\n                \"email\": \"david@example.com\"\n            }\n        }\n    ]\n}"}],"_postman_id":"1163eb26-28fa-4b89-bf84-15294e1f1404"},{"name":"update friend request","id":"c78977e0-fc4a-4f34-b339-abf48898f8fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"accepted\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friend-requests/0ea32adc-a128-44f2-8cfe-3bcec03d5562","urlObject":{"path":["friend-requests","0ea32adc-a128-44f2-8cfe-3bcec03d5562"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"85b4a7f1-d9a1-455b-9ac4-751bde6fdcf9","name":"not found","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"accepted\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friend-requests/0ea32adc-a128-44f2-8cfe-3bcec03d5562"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-sfGX+y0sX2hK0EJ1zCoQmNIXLFE\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:35:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Friend request not found\"\n}"},{"id":"39cf617b-ede0-4341-9cea-16e27f78059b","name":"Unauthorized","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"accepted\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friend-requests/8b2c0f11-76ba-48f9-bb9f-8bc2beaaf1da"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"ETag","value":"W/\"49-x+XurgQX8iaguJozvcCsgMAgCjY\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:37:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"only the receiver of the friend request can update its status\"\n}"},{"id":"8ad9b65e-922b-4645-9888-2b2a017b361d","name":"successful response","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"accepted\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friend-requests/d26e4d9e-99ff-4e8d-ac11-3f13092cd430"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"299"},{"key":"ETag","value":"W/\"12b-SmkMouYtHZId6UHMKFWqiHQ7EeA\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:37:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friend request updated!\",\n    \"friendRequest\": {\n        \"id\": \"d26e4d9e-99ff-4e8d-ac11-3f13092cd430\",\n        \"senderId\": \"71a477a7-e2d3-47a6-850e-99201e8e959f\",\n        \"receiverId\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n        \"status\": \"accepted\",\n        \"createdAt\": \"2026-02-27T01:32:05.077Z\",\n        \"updatedAt\": \"2026-02-27T01:32:05.077Z\"\n    }\n}"}],"_postman_id":"c78977e0-fc4a-4f34-b339-abf48898f8fd"},{"name":"create friend request","id":"204852c1-3932-4d51-9785-1fe38c5bb2bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"zee@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friend-requests","urlObject":{"path":["friend-requests"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"f912d142-23ef-4c4d-bc90-bcf736dd55c3","name":"user not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"non-existence@example.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friend-requests"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"63"},{"key":"ETag","value":"W/\"3f-YuUJhvlkWov2RF7RGObHLmRZTnQ\""},{"key":"Date","value":"Thu, 26 Feb 2026 16:49:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"No user found with email: non-existence@example.com\"\n}"},{"id":"3e570520-7052-4826-99f7-2c2f13621e02","name":"successful response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": alice@example.com\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friend-requests"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"295"},{"key":"ETag","value":"W/\"127-teHupXdlkqCQIUo+65I2mEZGnz0\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:28:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friend request sent!\",\n    \"friendRequest\": {\n        \"id\": \"8b2c0f11-76ba-48f9-bb9f-8bc2beaaf1da\",\n        \"senderId\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n        \"receiverId\": \"f1c4766d-cd01-41de-a4b5-a4950c2a2f89\",\n        \"status\": \"pending\",\n        \"createdAt\": \"2026-02-27T01:28:38.904Z\",\n        \"updatedAt\": \"2026-02-27T01:28:38.904Z\"\n    }\n}"}],"_postman_id":"204852c1-3932-4d51-9785-1fe38c5bb2bc"}],"id":"a5eab21f-e12e-47c1-aa87-5578839592dc","_postman_id":"a5eab21f-e12e-47c1-aa87-5578839592dc","description":""},{"name":"Friends","item":[{"name":"get user friends list","id":"1a5e9f33-0864-4301-8161-a96c8d31ec5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:1337/api/v1/friends","urlObject":{"path":["friends"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"6b650b4c-f454-449b-8afc-edbe4bd75e04","name":"successful response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1337/api/v1/friends"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"102"},{"key":"ETag","value":"W/\"66-0IzeL5hC3Ctmegrdk2zj1qQ2qGw\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:39:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"friends\": [\n        {\n            \"id\": \"71a477a7-e2d3-47a6-850e-99201e8e959f\",\n            \"name\": \"David\",\n            \"email\": \"david@example.com\"\n        }\n    ]\n}"}],"_postman_id":"1a5e9f33-0864-4301-8161-a96c8d31ec5e"},{"name":"delete friend","id":"d8d94639-ae2a-483d-ba8d-af763bb75973","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friends/12db78a2-3d3b-48e0-91ae-00bf8ca742c6","urlObject":{"path":["friends","12db78a2-3d3b-48e0-91ae-00bf8ca742c6"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"a552f640-31e4-4f43-89d5-d176404006a8","name":"not found","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friends/f1c4766d-cd01-41de-a4b5-a4950c2a2f89"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-hlDlrL4PYvHoHFqeDYPzmgk9T6U\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:40:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friend deleted successfully!\"\n}"},{"id":"37105205-2d98-4515-b110-2cca10010dc2","name":"successful response","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/friends/71a477a7-e2d3-47a6-850e-99201e8e959f"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-hlDlrL4PYvHoHFqeDYPzmgk9T6U\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:50:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Friend deleted successfully!\"\n}"}],"_postman_id":"d8d94639-ae2a-483d-ba8d-af763bb75973"}],"id":"54348ee9-bccb-4b08-865b-ae1f1054269c","description":"<p>the <code>/friends</code> let users manage their friends</p>\n","_postman_id":"54348ee9-bccb-4b08-865b-ae1f1054269c"},{"name":"Conversations","item":[{"name":"create conversation","id":"76d0759e-0466-4db5-979b-6f90e65d86ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"recipientId\": \"ac5867a4-da56-40e9-bf3b-38258def9670\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/conversations","urlObject":{"path":["conversations"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"57aeddcf-493b-4cd5-9169-ccdd68fc6782","name":"recipient not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"recipientId\": \"ac5867a4-da56-40e9-bf3b-38258def9670\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/conversations"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-g5NK/qZYaMRskJxjLLfRR3DMsyU\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:53:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"Recipient user does not exist\"\n}"},{"id":"19d2b7d0-208f-4db0-a75f-6833793ed7b6","name":"successful response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"recipientId\": \"f1c4766d-cd01-41de-a4b5-a4950c2a2f89\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/conversations"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"290"},{"key":"ETag","value":"W/\"122-Ccb0a8L0uNo8wJuVM7KX6NdNevo\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:55:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Conversation created successfully\",\n    \"conversation\": {\n        \"id\": \"f7ebada3-47f3-4818-8968-b95dfba92e10\",\n        \"creatorId\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n        \"recipientId\": \"f1c4766d-cd01-41de-a4b5-a4950c2a2f89\",\n        \"createdAt\": \"2026-02-27T01:55:27.799Z\",\n        \"updatedAt\": \"2026-02-27T01:55:27.799Z\"\n    }\n}"}],"_postman_id":"76d0759e-0466-4db5-979b-6f90e65d86ce"},{"name":"get conversations","id":"36df81dd-ca75-4c2e-a2c8-c34f6075425b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:1337/api/v1/conversations","urlObject":{"path":["conversations"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"73148ddc-a8cc-4a58-b18d-a75e223b2c0b","name":"successful response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1337/api/v1/conversations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"605"},{"key":"ETag","value":"W/\"25d-3zlstzYhCrxS/ZM2Fsi5Fa9X4WI\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:55:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"conversations\": [\n        {\n            \"id\": \"f7ebada3-47f3-4818-8968-b95dfba92e10\",\n            \"creatorId\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n            \"recipientId\": \"f1c4766d-cd01-41de-a4b5-a4950c2a2f89\",\n            \"createdAt\": \"2026-02-27T01:55:27.799Z\",\n            \"updatedAt\": \"2026-02-27T01:55:27.799Z\",\n            \"recipient\": {\n                \"id\": \"f1c4766d-cd01-41de-a4b5-a4950c2a2f89\",\n                \"name\": \"Alice\",\n                \"email\": \"alice@example.com\",\n                \"createdAt\": \"2026-02-26T16:46:05.963Z\",\n                \"updatedAt\": \"2026-02-26T16:46:05.963Z\"\n            },\n            \"creator\": {\n                \"id\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n                \"name\": \"Jane Doe\",\n                \"email\": \"test@example.com\",\n                \"createdAt\": \"2026-02-26T03:45:37.967Z\",\n                \"updatedAt\": \"2026-02-26T03:45:37.967Z\"\n            }\n        }\n    ]\n}"}],"_postman_id":"36df81dd-ca75-4c2e-a2c8-c34f6075425b"},{"name":"get conversation","id":"5236d579-d62c-42a3-99ac-a1bdd736e676","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"http://localhost:1337/api/v1/conversations/ddd53049-70be-4235-996a-7104bc0ecb30","urlObject":{"path":["conversations","ddd53049-70be-4235-996a-7104bc0ecb30"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"bec11bf5-83e5-45f2-a1aa-7440a83190fc","name":"successful response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1337/api/v1/conversations/f7ebada3-47f3-4818-8968-b95dfba92e10"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"244"},{"key":"ETag","value":"W/\"f4-vNBM4THaAdauLdYI4vADfgAMo4I\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:56:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"conversation\": {\n        \"id\": \"f7ebada3-47f3-4818-8968-b95dfba92e10\",\n        \"creatorId\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n        \"recipientId\": \"f1c4766d-cd01-41de-a4b5-a4950c2a2f89\",\n        \"createdAt\": \"2026-02-27T01:55:27.799Z\",\n        \"updatedAt\": \"2026-02-27T01:55:27.799Z\"\n    }\n}"}],"_postman_id":"5236d579-d62c-42a3-99ac-a1bdd736e676"}],"id":"2a020cba-5cc6-41e5-b960-247cec1cf43b","description":"<p>the <code>/conversations</code> let users manage their conversations</p>\n","_postman_id":"2a020cba-5cc6-41e5-b960-247cec1cf43b"},{"name":"Messages","item":[{"name":"get messages","id":"098d1a4a-7bfb-4887-b413-c331d34a15e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:1337/api/v1/conversations/ddd53049-70be-4235-996a-7104bc0ecb30/messages","urlObject":{"path":["conversations","ddd53049-70be-4235-996a-7104bc0ecb30","messages"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"9908a71a-9103-47d3-bdae-2c789a0b63b7","name":"successful response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:1337/api/v1/conversations/f7ebada3-47f3-4818-8968-b95dfba92e10/messages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"524"},{"key":"ETag","value":"W/\"20c-AXi3n09ZaRxncPVZ9qd3Urh+gYY\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:59:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"messages\": [\n        {\n            \"id\": \"32005239-1e58-4ef1-83a5-ae0c3bfcd2be\",\n            \"content\": \"How are you doing?\",\n            \"createdAt\": \"2026-02-27T01:56:45.868Z\",\n            \"updatedAt\": \"2026-02-27T01:56:45.868Z\",\n            \"sender\": {\n                \"id\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n                \"name\": \"Jane Doe\",\n                \"email\": \"test@example.com\"\n            }\n        },\n        {\n            \"id\": \"5865cb0b-9178-494b-af53-ad92f83e0b38\",\n            \"content\": \"How are you doing?\",\n            \"createdAt\": \"2026-02-27T01:58:13.718Z\",\n            \"updatedAt\": \"2026-02-27T01:58:13.718Z\",\n            \"sender\": {\n                \"id\": \"fe34e57d-fba8-445d-8b38-61681c869dc3\",\n                \"name\": \"Jane Doe\",\n                \"email\": \"test@example.com\"\n            }\n        }\n    ]\n}"}],"_postman_id":"098d1a4a-7bfb-4887-b413-c331d34a15e2"},{"name":"create message","id":"d9db4cf7-565c-45e0-a75a-1d393a03c655","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"content\": \"How are you doing?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/conversations/ddd53049-70be-4235-996a-7104bc0ecb30/messages","urlObject":{"path":["conversations","ddd53049-70be-4235-996a-7104bc0ecb30","messages"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"01f24b37-5b94-4976-a2f4-f52034df1c50","name":"successful response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"content\": \"How are you doing?\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1337/api/v1/conversations/f7ebada3-47f3-4818-8968-b95dfba92e10/messages"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-3JRsIPTLb0L1xTrGZ2fy5/U/nWI\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:56:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Message created successfully\"\n}"}],"_postman_id":"d9db4cf7-565c-45e0-a75a-1d393a03c655"},{"name":"delete message","id":"3277eba0-0214-490b-a5f9-a12f8ceccd59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:1337/api/v1/conversations/ddd53049-70be-4235-996a-7104bc0ecb30/messages/5717e9f5-2e1a-4e84-b2c4-1974e6f48012","urlObject":{"path":["conversations","ddd53049-70be-4235-996a-7104bc0ecb30","messages","5717e9f5-2e1a-4e84-b2c4-1974e6f48012"],"host":["http://localhost:1337/api/v1"],"query":[],"variable":[]}},"response":[{"id":"32fabc46-bf47-4287-bfe9-8ab128f5805f","name":"successful response","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:1337/api/v1/conversations/f7ebada3-47f3-4818-8968-b95dfba92e10/messages/32005239-1e58-4ef1-83a5-ae0c3bfcd2be"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"http://localhost:5173"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-hrnIbu/SeK3LIvUD4ahN8W6unvE\""},{"key":"Date","value":"Fri, 27 Feb 2026 01:59:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Message deleted successfully\"\n}"}],"_postman_id":"3277eba0-0214-490b-a5f9-a12f8ceccd59"}],"id":"cdc44e6a-50a6-4b3d-a9bc-7583efd68f57","description":"<p>the <code>/messages</code> let users manage their messages</p>\n","_postman_id":"cdc44e6a-50a6-4b3d-a9bc-7583efd68f57"}],"variable":[{"key":"name","value":"\"Jane Doe\"","type":"default"},{"key":"password","value":"\"Password123!\"","type":"default"},{"key":"email","value":"\"test@example.com\"","type":"default"},{"key":"base_url","value":"http://localhost:1337/api/v1","type":"default"},{"key":"alice.email","value":"alice@example.com","type":"default"},{"key":"aliceEmail","value":"alice@example.com","type":"default"}]}