{"info":{"_postman_id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","name":"Note-Taking API","description":"<html><head></head><body><p>This collection covers the full REST API for a <strong>Note-Taking application</strong>, hosted at <code>https://note-taking-api-03r0.onrender.com</code>. It is organized into four folders:</p>\n<ul>\n<li><p><strong>Auth</strong> — User registration and login endpoints for account creation and authentication.</p>\n</li>\n<li><p><strong>Notes</strong> — Core CRUD operations for notes, including creating, retrieving, updating, archiving, restoring, and searching/filtering notes by category, keyword, pagination, and sort order.</p>\n</li>\n<li><p><strong>Categories</strong> — Endpoints for creating and listing note categories used to organize notes.</p>\n</li>\n<li><p><strong>Error Cases</strong> — Requests that intentionally trigger error responses (e.g. missing token, wrong password, short password, note not found) to validate the API's error handling behavior.</p>\n</li>\n</ul>\n<p>All protected endpoints require a Bearer token obtained from the Auth endpoints.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"39328624","collectionId":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","publishedId":"2sBXwqrAY6","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-06-07T23:49:17.000Z"},"item":[{"name":"Auth","item":[{"name":"Register","id":"4c2f3f9f-04d3-4e3e-96e8-66edc707095c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\":\"Uche\",\r\n    \"lastName\":\"Anakor\",\r\n    \"email\":\"ucheanakor@gmail.com\",\r\n    \"password\":\"abcd12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/auth/register","description":"<p>Creates a new user account.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","name":"Note-Taking API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","auth","register"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"f8b1a0a2-058c-4dab-a5c6-04b33712e1a3","name":"Register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\":\"Uche\",\r\n    \"lastName\":\"Anakor\",\r\n    \"email\":\"ucheanakor@gmail.com\",\r\n    \"password\":\"abcd12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/auth/register"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:04:11 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"307"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"17d-xfBggairCbRtJ91CBEgeTuNinKY\""},{"key":"rndr-id","value":"b44cd8f0-d7b6-4e9b"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0834b5dddfcc96c-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"User registered successfully\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2YTI1ZjhlYmRmMTA0NzA2ODM3MmI1NzUiLCJlbWFpbCI6InVjaGVhbmFrb3JAZ21haWwuY29tIiwiaWF0IjoxNzgwODczNDUxLCJleHAiOjE3ODA4NzcwNTF9.IAiTHikQDfD47OXC7ODFGDLCWO6xurqjolq-E0RmTZA\",\n    \"user\": {\n        \"id\": \"6a25f8ebdf1047068372b575\",\n        \"firstName\": \"Uche\",\n        \"lastName\": \"Anakor\",\n        \"email\": \"ucheanakor@gmail.com\"\n    }\n}"}],"_postman_id":"4c2f3f9f-04d3-4e3e-96e8-66edc707095c"},{"name":"Login","id":"480a1e2a-9925-4335-8f04-675e0bbac023","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"ucheanakor@gmail.com\",\r\n    \"password\":\"abcd12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/auth/login","description":"<p>Returns a JWT access token valid for 1 hour. Include this token in the Authorization header using the Bearer scheme for protected routes.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","name":"Note-Taking API","type":"collection"}},"urlObject":{"protocol":"https","path":["api","auth","login"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"46bf7ee9-5dfb-4316-8469-feef5f72458e","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"ucheanakor@gmail.com\",\r\n    \"password\":\"abcd12345\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:22:56 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"298"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"171-iYir/cWm1OSfxgoUekYVGbfFEtY\""},{"key":"rndr-id","value":"ecbd06f9-706a-4591"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a08366d3dfc872d4-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login successful\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2YTI1ZjhlYmRmMTA0NzA2ODM3MmI1NzUiLCJlbWFpbCI6InVjaGVhbmFrb3JAZ21haWwuY29tIiwiaWF0IjoxNzgwODc0NTc2LCJleHAiOjE3ODA4NzgxNzZ9.4W18aV9hkDpZB6UKJZ-PO5SLUZ7cBgpwdO2chaQbGyc\",\n    \"user\": {\n        \"id\": \"6a25f8ebdf1047068372b575\",\n        \"firstName\": \"Uche\",\n        \"lastName\": \"Anakor\",\n        \"email\": \"ucheanakor@gmail.com\"\n    }\n}"}],"_postman_id":"480a1e2a-9925-4335-8f04-675e0bbac023"}],"id":"fd2cd2be-a7b7-47a8-b64b-8d15c02ec438","description":"<p>User registration and login endpoints for account creation and authentication</p>\n","_postman_id":"fd2cd2be-a7b7-47a8-b64b-8d15c02ec438","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","name":"Note-Taking API","type":"collection"}}},{"name":"Categories","item":[{"name":"Create a category","id":"5614e1ff-48f9-4e94-897d-fdc18d3cbd69","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\":\"Work\",\r\n    \"description\":\"Work related stuff here\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/categories","description":"<p>Creates a new category for the authenticated user.<br />Requires a Bearer token in the Authorization header.<br />Category names must be unique per user.</p>\n","urlObject":{"protocol":"https","path":["api","categories"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"348360db-a48c-4ec0-a5b5-0ff25063cd3d","name":"Create a category","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Work\",\r\n    \"description\":\"Work related stuff here\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/categories"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:09:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"131"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"d0-AEC3uc2vvnTcIzYWkzeJiR7VqCY\""},{"key":"rndr-id","value":"aeee61e6-262e-4410"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a08353198980073d-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"Work\",\n    \"description\": \"Work related stuff here\",\n    \"user\": \"6a25f8ebdf1047068372b575\",\n    \"_id\": \"6a25fa28df1047068372b579\",\n    \"createdAt\": \"2026-06-07T23:09:28.076Z\",\n    \"updatedAt\": \"2026-06-07T23:09:28.076Z\",\n    \"__v\": 0\n}"}],"_postman_id":"5614e1ff-48f9-4e94-897d-fdc18d3cbd69"},{"name":"Get all categories","id":"ea0a0c67-a4c0-4d19-8a74-569a7c408526","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/categories","description":"<p>Returns all categories belonging to the authenticated user.<br />Requires a Bearer token in the Authorization header.</p>\n","urlObject":{"protocol":"https","path":["api","categories"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"ee310657-1a1d-4ff5-9f67-8624fe3b08a1","name":"Get all categories","originalRequest":{"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/categories"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:10:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"d2-+L3ENOikkbT9b9k8tMpcwUs9BP8\""},{"key":"rndr-id","value":"c975150c-e252-4007"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a08353e3bd9bf289-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"6a25fa28df1047068372b579\",\n        \"name\": \"Work\",\n        \"description\": \"Work related stuff here\",\n        \"user\": \"6a25f8ebdf1047068372b575\",\n        \"createdAt\": \"2026-06-07T23:09:28.076Z\",\n        \"updatedAt\": \"2026-06-07T23:09:28.076Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"ea0a0c67-a4c0-4d19-8a74-569a7c408526"}],"id":"2b8bb5d7-02bc-4f35-a667-6f5713f30462","description":"<p>Endpoints for creating and listing note categories used to organize notes.</p>\n","_postman_id":"2b8bb5d7-02bc-4f35-a667-6f5713f30462","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","name":"Note-Taking API","type":"collection"}}},{"name":"Notes","item":[{"name":"Create note","id":"63835f1a-e89f-4cb4-a168-ffa2dd3d23a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"My third job\",\r\n    \"content\":\"This is my third job\",\r\n    \"category\":\"6a25fa28df1047068372b579\"\r\n   \r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes","description":"<p>Creates a new note linked to the authenticated user and a valid category.<br />Requires a Bearer token in the Authorization header.<br />Title must be 3-100 characters. Content must be at least 5 characters.</p>\n","urlObject":{"protocol":"https","path":["api","notes"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"529cfea0-8e3b-4e31-a5df-cee100092598","name":"Create note","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"My first job\",\r\n    \"content\":\"This is my first job\",\r\n    \"category\":\"6a25fa28df1047068372b579\"\r\n   \r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:12:28 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"159"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"10b-IANZxocfBREMAzcvrMO0NLUhyPg\""},{"key":"rndr-id","value":"b952d28b-c0b3-4f2f"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a083577ecfd2fe41-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"title\": \"My first job\",\n    \"content\": \"This is my first job\",\n    \"category\": \"6a25fa28df1047068372b579\",\n    \"user\": \"6a25f8ebdf1047068372b575\",\n    \"isArchived\": false,\n    \"_id\": \"6a25fadcdf1047068372b57c\",\n    \"createdAt\": \"2026-06-07T23:12:28.013Z\",\n    \"updatedAt\": \"2026-06-07T23:12:28.013Z\",\n    \"__v\": 0\n}"},{"id":"3051778f-6602-4f80-9f9e-3904af86bc0b","name":"Create note","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"My second job\",\r\n    \"content\":\"This is my second job\",\r\n    \"category\":\"6a25fa28df1047068372b579\"\r\n   \r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:14:36 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"156"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"10d-N4D9of46fQL1/x7zdgtDLzphb3k\""},{"key":"rndr-id","value":"37f6ceba-699f-4689"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0835aa27d43be4c-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"title\": \"My second job\",\n    \"content\": \"This is my second job\",\n    \"category\": \"6a25fa28df1047068372b579\",\n    \"user\": \"6a25f8ebdf1047068372b575\",\n    \"isArchived\": false,\n    \"_id\": \"6a25fb5cdf1047068372b57e\",\n    \"createdAt\": \"2026-06-07T23:14:36.618Z\",\n    \"updatedAt\": \"2026-06-07T23:14:36.618Z\",\n    \"__v\": 0\n}"},{"id":"a4520e2c-575c-47d3-b122-3179ae7f5086","name":"Create note","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"My third job\",\r\n    \"content\":\"This is my third job\",\r\n    \"category\":\"6a25fa28df1047068372b579\"\r\n   \r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:15:06 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"159"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"10b-JuUMdUfeWCccy+lpsdmxV0IOzBw\""},{"key":"rndr-id","value":"97ab69a3-a055-464b"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0835b5b1ce7ccb9-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"title\": \"My third job\",\n    \"content\": \"This is my third job\",\n    \"category\": \"6a25fa28df1047068372b579\",\n    \"user\": \"6a25f8ebdf1047068372b575\",\n    \"isArchived\": false,\n    \"_id\": \"6a25fb7adf1047068372b580\",\n    \"createdAt\": \"2026-06-07T23:15:06.119Z\",\n    \"updatedAt\": \"2026-06-07T23:15:06.119Z\",\n    \"__v\": 0\n}"}],"_postman_id":"63835f1a-e89f-4cb4-a168-ffa2dd3d23a2"},{"name":"Get all notes","id":"e42886ca-0173-4d91-a0d6-e0d821d06537","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"text"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes","description":"<p>Returns all active (non-archived) notes for the authenticated user.<br />Requires a Bearer token in the Authorization header.</p>\n<p>Supports the following query parameters:<br />- search: full-text search on title and content e.g. ?search=meeting<br />- category: filter by category ID e.g. ?category=6a25bba4b7b3d0bcceb687a9<br />- sort: sort by any field, prefix with - for descending e.g. ?sort=-createdAt<br />- page: page number e.g. ?page=1<br />- limit: results per page, max 20 e.g. ?limit=10</p>\n","urlObject":{"protocol":"https","path":["api","notes"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"57d6a74b-9533-421d-ba5c-d7184de5a83a","name":"Get all notes","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"text"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:24:20 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"335"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"44e-t06eJsZXtFt7Y408fCrbAkOawO8\""},{"key":"rndr-id","value":"893a9894-6a8a-4c7d"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a08368e09c09a727-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"_id\": \"6a25fb7adf1047068372b580\",\n            \"title\": \"My third job\",\n            \"content\": \"This is my third job\",\n            \"category\": {\n                \"_id\": \"6a25fa28df1047068372b579\",\n                \"name\": \"Work\",\n                \"description\": \"Work related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:15:06.119Z\",\n            \"updatedAt\": \"2026-06-07T23:15:06.119Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6a25fb5cdf1047068372b57e\",\n            \"title\": \"My second job\",\n            \"content\": \"This is my second job\",\n            \"category\": {\n                \"_id\": \"6a25fa28df1047068372b579\",\n                \"name\": \"Work\",\n                \"description\": \"Work related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:14:36.618Z\",\n            \"updatedAt\": \"2026-06-07T23:14:36.618Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6a25fadcdf1047068372b57c\",\n            \"title\": \"My first job\",\n            \"content\": \"This is my first job\",\n            \"category\": {\n                \"_id\": \"6a25fa28df1047068372b579\",\n                \"name\": \"Work\",\n                \"description\": \"Work related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:12:28.013Z\",\n            \"updatedAt\": \"2026-06-07T23:12:28.013Z\",\n            \"__v\": 0\n        }\n    ],\n    \"pagination\": {\n        \"total\": 3,\n        \"page\": 1,\n        \"limit\": 10,\n        \"totalPages\": 1,\n        \"hasNextPage\": false,\n        \"hasPrevPage\": false\n    }\n}"}],"_postman_id":"e42886ca-0173-4d91-a0d6-e0d821d06537"},{"name":"Get note by ID","id":"f9400d53-bbfc-4aa1-a1b5-c4bcf852fc86","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25fb7adf1047068372b580","description":"<p>Returns a single note by its ID.<br />Only returns the note if it belongs to the authenticated user and is not archived.<br />Requires a Bearer token in the Authorization header.</p>\n","urlObject":{"protocol":"https","path":["api","notes","6a25fb7adf1047068372b580"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"7c87bbcd-df57-4a36-bef5-60069c654a4a","name":"Get note by ID","originalRequest":{"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25fb7adf1047068372b580"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:25:16 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"200"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"149-H4Hv4KcRzLE4yS/kqsVMnk5juDw\""},{"key":"rndr-id","value":"489b92ce-5c9e-4a9a"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0836a430c6e5707-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6a25fb7adf1047068372b580\",\n    \"title\": \"My third job\",\n    \"content\": \"This is my third job\",\n    \"category\": {\n        \"_id\": \"6a25fa28df1047068372b579\",\n        \"name\": \"Work\",\n        \"description\": \"Work related stuff here\"\n    },\n    \"user\": \"6a25f8ebdf1047068372b575\",\n    \"isArchived\": false,\n    \"createdAt\": \"2026-06-07T23:15:06.119Z\",\n    \"updatedAt\": \"2026-06-07T23:15:06.119Z\",\n    \"__v\": 0\n}"}],"_postman_id":"f9400d53-bbfc-4aa1-a1b5-c4bcf852fc86"},{"name":"Update note","id":"16dd1afe-833e-4777-874f-b00726cf9f08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"Job Application\",\r\n    \"content\":\"Create a file containing all the job applications\",\r\n    \"category\":\"6a25bba4b7b3d0bcceb687a9\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25fb5cdf1047068372b57e","description":"<p>Updates the title, content or category of an existing note.<br />Only updates notes belonging to the authenticated user.<br />Requires a Bearer token in the Authorization header.</p>\n","urlObject":{"protocol":"https","path":["api","notes","6a25fb5cdf1047068372b57e"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"268a7a68-8cbe-4f68-8351-596e9e934dbc","name":"Update note","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"Job Application\",\r\n    \"content\":\"Create a file containing all the job applications\",\r\n    \"category\":\"6a25bba4b7b3d0bcceb687a9\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25fb5cdf1047068372b57e"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:26:44 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"244"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"15a-Pw42v27ORI4PLDsfa+KNALDd/GA\""},{"key":"rndr-id","value":"572a4b6e-2322-4fad"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0836c65689bd605-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Note updated successfully\",\n    \"data\": {\n        \"_id\": \"6a25fb5cdf1047068372b57e\",\n        \"title\": \"Job Application\",\n        \"content\": \"Create a file containing all the job applications\",\n        \"category\": \"6a25bba4b7b3d0bcceb687a9\",\n        \"user\": \"6a25f8ebdf1047068372b575\",\n        \"isArchived\": false,\n        \"createdAt\": \"2026-06-07T23:14:36.618Z\",\n        \"updatedAt\": \"2026-06-07T23:26:44.120Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"16dd1afe-833e-4777-874f-b00726cf9f08"},{"name":"Get notes by category ID","id":"e9b935bc-67bd-495d-8272-ca2cf7c18120","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/category/6a25bba4b7b3d0bcceb687a9","description":"<p>Returns all active notes belonging to a specific category.<br />Only returns notes that belong to the authenticated user.<br />Requires a Bearer token in the Authorization header.</p>\n","urlObject":{"protocol":"https","path":["api","notes","category","6a25bba4b7b3d0bcceb687a9"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"34a9412d-84e4-4172-9d4e-f6ab2b5ab12f","name":"Get notes by category ID","originalRequest":{"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/category/6a25bba4b7b3d0bcceb687a9"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:36:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"290"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"2c9-t65sC9kfVG7O79/Tu6SiEeKTaIw\""},{"key":"rndr-id","value":"501285af-7262-4de8"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0837a12ecc17f9a-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"6a25fb5cdf1047068372b57e\",\n        \"title\": \"Job Application\",\n        \"content\": \"Create a file containing all the job applications\",\n        \"category\": {\n            \"_id\": \"6a25bba4b7b3d0bcceb687a9\",\n            \"name\": \"Personal\",\n            \"description\": \"Personal related stuff here\"\n        },\n        \"user\": \"6a25f8ebdf1047068372b575\",\n        \"isArchived\": false,\n        \"createdAt\": \"2026-06-07T23:14:36.618Z\",\n        \"updatedAt\": \"2026-06-07T23:31:02.877Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6a25ff3adf1047068372b59a\",\n        \"title\": \"My fourth note\",\n        \"content\": \"This is my fourth note\",\n        \"category\": {\n            \"_id\": \"6a25bba4b7b3d0bcceb687a9\",\n            \"name\": \"Personal\",\n            \"description\": \"Personal related stuff here\"\n        },\n        \"user\": \"6a25f8ebdf1047068372b575\",\n        \"isArchived\": false,\n        \"createdAt\": \"2026-06-07T23:31:06.345Z\",\n        \"updatedAt\": \"2026-06-07T23:31:06.345Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"e9b935bc-67bd-495d-8272-ca2cf7c18120"},{"name":"Get notes with search","id":"898e3264-6ef1-4d90-94b3-f236f56d37eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes?search=first","description":"<p>Searches across the title and content of all active notes using MongoDB full-text search.<br />Only returns notes belonging to the authenticated user.<br />Requires a Bearer token in the Authorization header.</p>\n","urlObject":{"protocol":"https","path":["api","notes"],"host":["note-taking-api-03r0","onrender","com"],"query":[{"key":"search","value":"first"}],"variable":[]}},"response":[{"id":"752777e9-91aa-4685-b57d-d3f0b2925867","name":"Get notes with search","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://note-taking-api-03r0.onrender.com/api/notes?search=first","protocol":"https","host":["note-taking-api-03r0","onrender","com"],"path":["api","notes"],"query":[{"key":"search","value":"first"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:36:37 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"268"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"1b8-JbTkqjczJYEMLeNNzBWRAJqnCKE\""},{"key":"rndr-id","value":"f9970a99-61ec-43e4"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0837ae1e8417f9a-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"_id\": \"6a25fadcdf1047068372b57c\",\n            \"title\": \"My first job\",\n            \"content\": \"This is my first job\",\n            \"category\": {\n                \"_id\": \"6a25fa28df1047068372b579\",\n                \"name\": \"Work\",\n                \"description\": \"Work related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:12:28.013Z\",\n            \"updatedAt\": \"2026-06-07T23:12:28.013Z\",\n            \"__v\": 0\n        }\n    ],\n    \"pagination\": {\n        \"total\": 1,\n        \"page\": 1,\n        \"limit\": 10,\n        \"totalPages\": 1,\n        \"hasNextPage\": false,\n        \"hasPrevPage\": false\n    }\n}"}],"_postman_id":"898e3264-6ef1-4d90-94b3-f236f56d37eb"},{"name":"Get notes with pagination","id":"21347fd7-8629-49ab-983e-8ef060f7187d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes?page=1&limit=2","description":"<p>Returns a paginated list of active notes for the authenticated user.<br />Requires a Bearer token in the Authorization header.</p>\n<p>Query parameters:</p>\n<ul>\n<li>page: the page number to retrieve, starts at 1 (default: 1)</li>\n<li>limit: number of notes per page, max 20 (default: 10)</li>\n</ul>\n<p>The response includes a pagination object with:</p>\n<ul>\n<li>total: total number of notes</li>\n<li>totalPages: total number of pages</li>\n<li>hasNextPage: whether there is a next page</li>\n<li>hasPrevPage: whether there is a previous page</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","notes"],"host":["note-taking-api-03r0","onrender","com"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"2"}],"variable":[]}},"response":[{"id":"dd071ca6-e40b-4f48-947e-6880d69ac901","name":"Get notes with pagination","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://note-taking-api-03r0.onrender.com/api/notes?page=1&limit=2","protocol":"https","host":["note-taking-api-03r0","onrender","com"],"path":["api","notes"],"query":[{"key":"page","value":"1"},{"key":"limit","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:37:01 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"337"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"30c-fpfk4Vf4XoNzy0sRYk5fj8PNDow\""},{"key":"rndr-id","value":"dd032671-7e80-4d51"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0837b74cca67f9a-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"_id\": \"6a25ff3adf1047068372b59a\",\n            \"title\": \"My fourth note\",\n            \"content\": \"This is my fourth note\",\n            \"category\": {\n                \"_id\": \"6a25bba4b7b3d0bcceb687a9\",\n                \"name\": \"Personal\",\n                \"description\": \"Personal related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:31:06.345Z\",\n            \"updatedAt\": \"2026-06-07T23:31:06.345Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6a25ff35df1047068372b591\",\n            \"title\": \"My third job\",\n            \"content\": \"This is my third job\",\n            \"category\": {\n                \"_id\": \"6a25fa28df1047068372b579\",\n                \"name\": \"Work\",\n                \"description\": \"Work related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:31:01.236Z\",\n            \"updatedAt\": \"2026-06-07T23:31:01.236Z\",\n            \"__v\": 0\n        }\n    ],\n    \"pagination\": {\n        \"total\": 5,\n        \"page\": 1,\n        \"limit\": 2,\n        \"totalPages\": 3,\n        \"hasNextPage\": true,\n        \"hasPrevPage\": false\n    }\n}"}],"_postman_id":"21347fd7-8629-49ab-983e-8ef060f7187d"},{"name":"Get notes with sorting","id":"86a8b44f-07fb-4161-8e13-2573e46bfc4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes?sort=-createdAt","description":"<p>Returns active notes sorted by a specified field.<br />Requires a Bearer token in the Authorization header.</p>\n<p>Example: GET /api/notes?sort=-createdAt<br />Prefix the field name with - for descending order (newest first).<br />Without the - prefix, results are sorted ascending (oldest first).</p>\n<p>Supported fields: createdAt, updatedAt, title</p>\n","urlObject":{"protocol":"https","path":["api","notes"],"host":["note-taking-api-03r0","onrender","com"],"query":[{"key":"sort","value":"-createdAt"}],"variable":[]}},"response":[{"id":"f136d40f-e59d-4bc6-8461-a7259a3e82c3","name":"Get notes with sorting","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://note-taking-api-03r0.onrender.com/api/notes?sort=-createdAt","protocol":"https","host":["note-taking-api-03r0","onrender","com"],"path":["api","notes"],"query":[{"key":"sort","value":"-createdAt"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:37:39 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"457"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"714-/M+EB55rqBDT888JqkfaSpjJnds\""},{"key":"rndr-id","value":"4b1b3531-e892-4f71"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0837c651df3172d-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"_id\": \"6a25ff3adf1047068372b59a\",\n            \"title\": \"My fourth note\",\n            \"content\": \"This is my fourth note\",\n            \"category\": {\n                \"_id\": \"6a25bba4b7b3d0bcceb687a9\",\n                \"name\": \"Personal\",\n                \"description\": \"Personal related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:31:06.345Z\",\n            \"updatedAt\": \"2026-06-07T23:31:06.345Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6a25ff35df1047068372b591\",\n            \"title\": \"My third job\",\n            \"content\": \"This is my third job\",\n            \"category\": {\n                \"_id\": \"6a25fa28df1047068372b579\",\n                \"name\": \"Work\",\n                \"description\": \"Work related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:31:01.236Z\",\n            \"updatedAt\": \"2026-06-07T23:31:01.236Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6a25fb7adf1047068372b580\",\n            \"title\": \"My third job\",\n            \"content\": \"This is my third job\",\n            \"category\": {\n                \"_id\": \"6a25fa28df1047068372b579\",\n                \"name\": \"Work\",\n                \"description\": \"Work related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:15:06.119Z\",\n            \"updatedAt\": \"2026-06-07T23:15:06.119Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6a25fb5cdf1047068372b57e\",\n            \"title\": \"Job Application\",\n            \"content\": \"Create a file containing all the job applications\",\n            \"category\": {\n                \"_id\": \"6a25bba4b7b3d0bcceb687a9\",\n                \"name\": \"Personal\",\n                \"description\": \"Personal related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:14:36.618Z\",\n            \"updatedAt\": \"2026-06-07T23:31:02.877Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"6a25fadcdf1047068372b57c\",\n            \"title\": \"My first job\",\n            \"content\": \"This is my first job\",\n            \"category\": {\n                \"_id\": \"6a25fa28df1047068372b579\",\n                \"name\": \"Work\",\n                \"description\": \"Work related stuff here\"\n            },\n            \"user\": \"6a25f8ebdf1047068372b575\",\n            \"isArchived\": false,\n            \"createdAt\": \"2026-06-07T23:12:28.013Z\",\n            \"updatedAt\": \"2026-06-07T23:12:28.013Z\",\n            \"__v\": 0\n        }\n    ],\n    \"pagination\": {\n        \"total\": 5,\n        \"page\": 1,\n        \"limit\": 10,\n        \"totalPages\": 1,\n        \"hasNextPage\": false,\n        \"hasPrevPage\": false\n    }\n}"}],"_postman_id":"86a8b44f-07fb-4161-8e13-2573e46bfc4d"},{"name":"Archive a note(soft delete)","id":"680d05cb-1b21-449f-9492-b2b237eecffa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25fb5cdf1047068372b57e","description":"<p>Soft deletes a note by marking it as archived instead of permanently removing it.<br />Archived notes can be restored later.<br />Requires a Bearer token in the Authorization header.</p>\n","urlObject":{"protocol":"https","path":["api","notes","6a25fb5cdf1047068372b57e"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"cec734f7-e0a2-46a1-a206-80a92af7b4f4","name":"Archive a note(soft delete)","originalRequest":{"method":"DELETE","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25fb5cdf1047068372b57e"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:38:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"28-mZN3RDVLP1XTXfkU4+lesvJAP1M\""},{"key":"rndr-id","value":"c2d6b95e-4b1b-4048"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0837e2cdf4d35b0-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Note archived successfully\"\n}"}],"_postman_id":"680d05cb-1b21-449f-9492-b2b237eecffa"},{"name":"Get archived notes","id":"343f419a-acd1-489c-9982-cbd9357d51e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/archived","description":"<p>Returns all archived notes belonging to the authenticated user.<br />These are notes that have been soft deleted and can still be restored.<br />Requires a Bearer token in the Authorization header.</p>\n","urlObject":{"protocol":"https","path":["api","notes","archived"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"721fd9a4-6817-4aa7-bb16-7d53de50b743","name":"Get archived notes","originalRequest":{"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/archived"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:40:26 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"242"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"172-Rk48FPoG/DK2QVDSCSZxoc5D/Bc\""},{"key":"rndr-id","value":"b9203f6d-c722-4968"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a083807a2e2f817e-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"6a25fb5cdf1047068372b57e\",\n        \"title\": \"Job Application\",\n        \"content\": \"Create a file containing all the job applications\",\n        \"category\": {\n            \"_id\": \"6a25bba4b7b3d0bcceb687a9\",\n            \"name\": \"Personal\",\n            \"description\": \"Personal related stuff here\"\n        },\n        \"user\": \"6a25f8ebdf1047068372b575\",\n        \"isArchived\": true,\n        \"createdAt\": \"2026-06-07T23:14:36.618Z\",\n        \"updatedAt\": \"2026-06-07T23:38:52.345Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"343f419a-acd1-489c-9982-cbd9357d51e5"},{"name":"Restore an archived note","id":"78f9e4ba-7fbd-484f-93cf-97598579e81a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25fb5cdf1047068372b57e/restore","description":"<p>Restores a previously archived note back to active status.<br />Only works on notes that belong to the authenticated user.<br />Requires a Bearer token in the Authorization header.</p>\n","urlObject":{"protocol":"https","path":["api","notes","6a25fb5cdf1047068372b57e","restore"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"0acd67e3-0548-4f1e-b7fd-d50ec3b0a11c","name":"Restore an archived note","originalRequest":{"method":"PUT","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25fb5cdf1047068372b57e/restore"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:41:43 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"243"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"15b-djGMH0h3KPIJDTAO3lWH39ki/Ds\""},{"key":"rndr-id","value":"4849e686-93ab-4b66"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a083825a29d4821a-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Note restored successfully\",\n    \"data\": {\n        \"_id\": \"6a25fb5cdf1047068372b57e\",\n        \"title\": \"Job Application\",\n        \"content\": \"Create a file containing all the job applications\",\n        \"category\": \"6a25bba4b7b3d0bcceb687a9\",\n        \"user\": \"6a25f8ebdf1047068372b575\",\n        \"isArchived\": false,\n        \"createdAt\": \"2026-06-07T23:14:36.618Z\",\n        \"updatedAt\": \"2026-06-07T23:41:43.447Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"78f9e4ba-7fbd-484f-93cf-97598579e81a"}],"id":"c4d4cc23-007e-4766-964c-10591f844187","description":"<p>Core CRUD operations for notes, including creating, retrieving, updating, archiving, restoring, and searching/filtering notes by category, keyword, pagination, and sort order.</p>\n","_postman_id":"c4d4cc23-007e-4766-964c-10591f844187","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","name":"Note-Taking API","type":"collection"}}},{"name":"Error case","item":[{"name":"wrong password","id":"c53534ea-ec25-4026-99ec-ae3efa602d10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"ucheanakor@gmail.com\",\r\n    \"password\":\"ad1234xyjk\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/auth/login","urlObject":{"protocol":"https","path":["api","auth","login"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"3bdc22cf-fca2-416a-b019-860a1e592a48","name":"wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"ucheanakor@gmail.com\",\r\n    \"password\":\"ad1234xyjk\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:43:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"27-Mm37A2ls1bgL0/D8e3MSpDLbow8\""},{"key":"rndr-id","value":"0cd3f4db-5c66-406d"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a083857ea845073d-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid email or password\"\n}"}],"_postman_id":"c53534ea-ec25-4026-99ec-ae3efa602d10"},{"name":"no token","id":"3c6ff00c-8788-4442-b80c-dd4e4b7d69f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"My fourth note\",\r\n    \"content\":\"This is my fourth note\",\r\n    \"category\":\"6a25bba4b7b3d0bcceb687a9\"\r\n   \r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes","urlObject":{"protocol":"https","path":["api","notes"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"96c2b21e-6606-43bb-a2af-caf34c61ec83","name":"no token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"title\":\"My fourth note\",\r\n    \"content\":\"This is my fourth note\",\r\n    \"category\":\"6a25bba4b7b3d0bcceb687a9\"\r\n   \r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/notes"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:45:04 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"2d-G9NDXxPKpYJP7jGnVtsWrg0y5dc\""},{"key":"rndr-id","value":"142a6d4e-77b9-4682"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a083874568a2e610-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No token provided. Please login\"\n}"}],"_postman_id":"3c6ff00c-8788-4442-b80c-dd4e4b7d69f1"},{"name":"Short password","id":"f6fe668c-afce-4adc-bbe4-dbf0173e6981","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\":\"Uche\",\r\n    \"lastName\":\"Anakor\",\r\n    \"email\":\"ucheanakor@gmail.com\",\r\n    \"password\":\"abcd\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/auth/register","urlObject":{"protocol":"https","path":["api","auth","register"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"5412efca-c468-4544-84d3-1babf996eb52","name":"Short password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"firstName\":\"Uche\",\r\n    \"lastName\":\"Anakor\",\r\n    \"email\":\"ucheanakor@gmail.com\",\r\n    \"password\":\"abcd\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://note-taking-api-03r0.onrender.com/api/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:46:47 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"39-vqVTLZ8tHXkBUSXpHnlL4RBnWGE\""},{"key":"rndr-id","value":"31a9b524-1e88-4cce"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a08389c77a5bd4a8-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Password must be at least 8 characters long\"\n}"}],"_postman_id":"f6fe668c-afce-4adc-bbe4-dbf0173e6981"},{"name":"Note not found","id":"d127ba9f-5cd5-4926-99e2-4128a008ff64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25bcdbb7b3d0bcceb687bd","description":"<p>Tests that the API returns a 404 Not Found error when a non-existent note ID is used.<br />Use a valid MongoDB ObjectId format that doesn't match any note e.g. 507f1f77bcf86cd799439011</p>\n","urlObject":{"protocol":"https","path":["api","notes","6a25bcdbb7b3d0bcceb687bd"],"host":["note-taking-api-03r0","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"0f07d58d-c2d1-4b81-bd6b-c9108001c04e","name":"Note not found","originalRequest":{"method":"GET","header":[],"url":"https://note-taking-api-03r0.onrender.com/api/notes/6a25bcdbb7b3d0bcceb687bd"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":[{"key":"Date","value":"Sun, 07 Jun 2026 23:47:19 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"Connection","value":"keep-alive"},{"key":"access-control-allow-origin","value":"*"},{"key":"Content-Encoding","value":"br"},{"key":"etag","value":"W/\"1c-K9UxkrbE9AKJ6/tmwjnVz9xOAdI\""},{"key":"rndr-id","value":"f7d339a0-e11e-467e"},{"key":"Server","value":"cloudflare"},{"key":"vary","value":"Accept-Encoding"},{"key":"x-powered-by","value":"Express"},{"key":"x-render-origin-server","value":"Render"},{"key":"cf-cache-status","value":"DYNAMIC"},{"key":"CF-RAY","value":"a0838a904e0c5f1a-IAD"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Note not found\"\n}"}],"_postman_id":"d127ba9f-5cd5-4926-99e2-4128a008ff64"}],"id":"b80fc781-4a62-42ee-9631-096372690772","description":"<p>Requests that intentionally trigger error responses (e.g. missing token, wrong password, short password, note not found) to validate the API's error handling behavior</p>\n","_postman_id":"b80fc781-4a62-42ee-9631-096372690772","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","id":"5a3ddac8-4cf7-4624-8a61-b26be52621a1","name":"Note-Taking API","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"8b282793-843c-4259-a2bf-74e165854afe","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"3187a115-89d0-4dc6-8a38-ab2bb9dcaf99","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2YTI1ZjhlYmRmMTA0NzA2ODM3MmI1NzUiLCJlbWFpbCI6InVjaGVhbmFrb3JAZ21haWwuY29tIiwiaWF0IjoxNzgwODc0NTc2LCJleHAiOjE3ODA4NzgxNzZ9.4W18aV9hkDpZB6UKJZ-PO5SLUZ7cBgpwdO2chaQbGyc"},{"key":"category_id","value":"6a25bba4b7b3d0bcceb687a9"},{"key":"note_id","value":"6a25bc91b7b3d0bcceb687ac"},{"key":"note_id","value":"6a25bcdbb7b3d0bcceb687ae"},{"key":"note_id","value":"6a25bd10b7b3d0bcceb687b0"},{"key":"base_url","value":"https://note-taking-api-03r0.onrender.com"}]}