{"info":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","description":"<html><head></head><body><p>The <strong>vaultPass API</strong> collection covers the full set of endpoints for the vaultPass application, organized across five functional areas:</p>\n<ul>\n<li><strong>Authentication</strong> — User registration and login (<code>POST /api/auth/signup</code>, <code>POST /api/auth/signin</code>).</li>\n<li><strong>User</strong> — Retrieve the authenticated user's profile (<code>GET /api/auth/profile</code>).</li>\n<li><strong>Public</strong> — Publicly accessible endpoint that returns a general message (<code>GET /api/public/message</code>).</li>\n<li><strong>Moderator</strong> — Fetch submitted reports for review (<code>GET /api/moderator/reports</code>).</li>\n<li><strong>Admin</strong> — Full account management: list all users, retrieve a specific user, promote an account to a higher role, and delete an account.</li>\n</ul>\n<p>All requests are built against the <code></code> environment variable. Use the <strong>Authentication</strong> folder first to obtain credentials before calling protected endpoints.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"46204053","collectionId":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","publishedId":"2sBXwpNWfA","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-06-03T15:26:29.000Z"},"item":[{"name":"Authentication","item":[{"name":"signup","id":"260123bc-4fc2-4371-a713-0c657e177b64","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"fullName\": \"bonnie Edo\",\r\n  \"email\": \"boonie@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/api/auth/signup","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}},"urlObject":{"path":["api","auth","signup"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"65f2350a-b91d-4b3c-8d6e-e4381e939afe","name":"201","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"fullName\": \"Jane Edo\",\r\n  \"email\": \"jane@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/api/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"228"},{"key":"ETag","value":"W/\"e4-Lh8srUYInZkSmbJN7/o5BZplFuY\""},{"key":"Date","value":"Wed, 03 Jun 2026 10:13:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": {\n        \"fullName\": \"Jane Edo\",\n        \"email\": \"jane@example.com\",\n        \"role\": \"user\",\n        \"_id\": \"6a1ffe3cfab8a7238e67c38a\",\n        \"createdAt\": \"2026-06-03T10:13:16.845Z\",\n        \"updatedAt\": \"2026-06-03T10:13:16.845Z\"\n    },\n    \"message\": \"Account created successfully\"\n}"},{"id":"ed3977e4-2949-4966-83a2-6fb70fca30c0","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"fullName\": \"Jane Edo\",\r\n  \"email\": \"jane@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/api/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-7E/nw4NTj1wudq/7GNEsO0zIZHQ\""},{"key":"Date","value":"Wed, 03 Jun 2026 10:17:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Email already in use\"\n}"},{"id":"8a196eee-f463-401f-a379-a70c2b5413f2","name":"400 - required","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \r\n}","options":{"raw":{"language":"json"}}},"url":"/api/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"33"},{"key":"ETag","value":"W/\"21-cOK6uNN2yCae/ZG1FtXlaYIYgUU\""},{"key":"Date","value":"Wed, 03 Jun 2026 10:18:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All fields required\"\n}"}],"_postman_id":"260123bc-4fc2-4371-a713-0c657e177b64"},{"name":"signin","id":"dc0b4363-2c49-4440-bfa9-c9ab236f4bd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"boonie@example.com\",\r\n    \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/api/auth/signin","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}},"urlObject":{"path":["api","auth","signin"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"52dcf31a-b043-4fd2-b3f9-479661310d52","name":"500","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"jane@example.com\",\r\n  \"password\": \"password123\"\r\n}"},"url":"/api/auth/signin"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-NubclhpkurNI+akAqw4Fkel1rQM\""},{"key":"Date","value":"Wed, 03 Jun 2026 10:27:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"internal server error\"\n}"},{"id":"d9cf157f-b762-4ebc-a8cd-2bac514ec1e3","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"jane@example.com\",\r\n  \"password\": \"password123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/api/auth/signin"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"422"},{"key":"ETag","value":"W/\"1a6-d4Sjzq6AxK951E9NWiSK2X+GoIA\""},{"key":"Date","value":"Wed, 03 Jun 2026 12:09:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": {\n        \"_id\": \"6a1ffe3cfab8a7238e67c38a\",\n        \"fullName\": \"Jane Edo\",\n        \"email\": \"jane@example.com\",\n        \"role\": \"user\",\n        \"createdAt\": \"2026-06-03T10:13:16.845Z\",\n        \"updatedAt\": \"2026-06-03T12:09:33.327Z\"\n    },\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZhMWZmZTNjZmFiOGE3MjM4ZTY3YzM4YSIsInJvbGUiOiJ1c2VyIiwiaWF0IjoxNzgwNDg4NTczLCJleHAiOjE3ODA0OTIxNzN9.iYQB2sdOHm1m1XS6k6R2UFc8UWJ7g5YCrwFYTLFgmjQ\",\n    \"message\": \"Signed in successfully\"\n}"},{"id":"d691d49c-f6e9-4394-bf35-f207e567e1eb","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  }","options":{"raw":{"language":"json"}}},"url":"/api/auth/signin"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"33"},{"key":"ETag","value":"W/\"21-cOK6uNN2yCae/ZG1FtXlaYIYgUU\""},{"key":"Date","value":"Wed, 03 Jun 2026 12:10:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All fields required\"\n}"}],"_postman_id":"dc0b4363-2c49-4440-bfa9-c9ab236f4bd5"}],"id":"dd424154-81b9-48a9-a805-c5564d2d0e87","event":[{"listen":"prerequest","script":{"id":"da22db5a-b74c-4b81-a566-2cb2876107c1","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"dab1d752-c118-45aa-b539-0137d8cac5ff","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"_postman_id":"dd424154-81b9-48a9-a805-c5564d2d0e87","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}}},{"name":"User","item":[{"name":"profile","id":"f0d64122-8320-4eec-a5b6-08aa5335e471","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/auth/profile","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}},"urlObject":{"path":["api","auth","profile"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"3cc76d62-79ee-480a-be3e-efb7c3f4c9b3","name":"401 -unauthorized","originalRequest":{"method":"GET","header":[],"url":"/api/auth/profile"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-sbs84eI5+lTb7bq4w8tU5Vx2Qko\""},{"key":"Date","value":"Wed, 03 Jun 2026 12:31:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not authorized, token missing\"\n}"},{"id":"d4f0e57f-2c49-43e0-aa53-ed9fbde35b97","name":"200","originalRequest":{"method":"GET","header":[],"url":"/api/auth/profile"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"225"},{"key":"ETag","value":"W/\"e1-kAkUs058vnPwxsZ5XNzmmGdqris\""},{"key":"Date","value":"Wed, 03 Jun 2026 14:43:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": {\n        \"_id\": \"6a1cd288f42c2ea7cb7d7e30\",\n        \"fullName\": \"Hauwa\",\n        \"email\": \"hauwa@gmail.com\",\n        \"role\": \"admin\",\n        \"createdAt\": \"2026-06-01T00:30:00.917Z\",\n        \"updatedAt\": \"2026-06-03T09:46:14.833Z\"\n    },\n    \"message\": \"Profile fetched successfully\"\n}"}],"_postman_id":"f0d64122-8320-4eec-a5b6-08aa5335e471"}],"id":"60512786-b041-421b-9903-a6f2d6b18754","_postman_id":"60512786-b041-421b-9903-a6f2d6b18754","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}}},{"name":"Public","item":[{"name":"public Message","id":"067c8a52-8ae9-4ecd-a43a-6ae92a86e73a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/public/message","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}},"urlObject":{"path":["api","public","message"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"b4521582-845a-4f08-b8b8-6bd6f0b3372b","name":"200","originalRequest":{"method":"GET","header":[],"url":"/api/public/message"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-nXdE2ZJfRbmU50EXJ+2PoXW/iZA\""},{"key":"Date","value":"Wed, 03 Jun 2026 12:54:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This route is public\"\n}"}],"_postman_id":"067c8a52-8ae9-4ecd-a43a-6ae92a86e73a"}],"id":"f28eb38d-d82d-49ee-8c51-142714d6491e","_postman_id":"f28eb38d-d82d-49ee-8c51-142714d6491e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}}},{"name":"Moderator","item":[{"name":"report","id":"1595c7ab-fa3c-4ffd-9327-055ab3a7dcff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/moderator/reports","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}},"urlObject":{"path":["api","moderator","reports"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"d338324d-bbde-4492-a939-70a57b80c64d","name":"401","originalRequest":{"method":"GET","header":[],"url":"/api/moderator/reports"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-sbs84eI5+lTb7bq4w8tU5Vx2Qko\""},{"key":"Date","value":"Wed, 03 Jun 2026 12:32:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not authorized, token missing\"\n}"},{"id":"1436f40c-22c1-4f64-92d3-8a3c1ba27474","name":"200","originalRequest":{"method":"GET","header":[],"url":"/api/moderator/reports"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-0/HPKR0VY4CTdnApyCq2RnXpdsY\""},{"key":"Date","value":"Wed, 03 Jun 2026 14:43:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"reports\": [],\n    \"message\": \"No reports found\"\n}"}],"_postman_id":"1595c7ab-fa3c-4ffd-9327-055ab3a7dcff"}],"id":"5e664eb1-bc6f-4ba7-93bb-4cda6a24f55c","_postman_id":"5e664eb1-bc6f-4ba7-93bb-4cda6a24f55c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}}},{"name":"Admin","item":[{"name":"get All Accounts","id":"3fd0ecc6-0b4b-49e2-9a67-72fd19882efc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/admin/users","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}},"urlObject":{"path":["api","admin","users"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"f680a41e-ffd9-482a-9d23-7ef53859f540","name":"200","originalRequest":{"method":"GET","header":[],"url":"/api/admin/users"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"900"},{"key":"ETag","value":"W/\"384-nRpT3V8uv9U6Drejd+VkTIg/gIU\""},{"key":"Date","value":"Wed, 03 Jun 2026 14:41:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": [\n        {\n            \"_id\": \"6a1c793edd356f4a14244183\",\n            \"fullName\": \"musa\",\n            \"email\": \"musa@gmail.com\",\n            \"role\": \"user\",\n            \"createdAt\": \"2026-05-31T18:09:02.859Z\",\n            \"updatedAt\": \"2026-05-31T18:09:02.859Z\"\n        },\n        {\n            \"_id\": \"6a1c8196689b5c7a1fe5cafb\",\n            \"fullName\": \"Abu\",\n            \"email\": \"abu@gmail.com\",\n            \"role\": \"user\",\n            \"createdAt\": \"2026-05-31T18:44:38.548Z\",\n            \"updatedAt\": \"2026-05-31T18:44:38.548Z\"\n        },\n        {\n            \"_id\": \"6a1cbc56fbb486ca4e3bb61e\",\n            \"fullName\": \"john\",\n            \"email\": \"john@gmail.com\",\n            \"role\": \"user\",\n            \"createdAt\": \"2026-05-31T22:55:18.441Z\",\n            \"updatedAt\": \"2026-05-31T22:55:18.441Z\"\n        },\n        {\n            \"_id\": \"6a1cd288f42c2ea7cb7d7e30\",\n            \"fullName\": \"Hauwa\",\n            \"email\": \"hauwa@gmail.com\",\n            \"role\": \"admin\",\n            \"createdAt\": \"2026-06-01T00:30:00.917Z\",\n            \"updatedAt\": \"2026-06-03T09:46:14.833Z\"\n        },\n        {\n            \"_id\": \"6a1ffe3cfab8a7238e67c38a\",\n            \"fullName\": \"Jane Edo\",\n            \"email\": \"jane@example.com\",\n            \"role\": \"user\",\n            \"createdAt\": \"2026-06-03T10:13:16.845Z\",\n            \"updatedAt\": \"2026-06-03T12:09:33.327Z\"\n        }\n    ],\n    \"message\": \"All users fetched\"\n}"}],"_postman_id":"3fd0ecc6-0b4b-49e2-9a67-72fd19882efc"},{"name":"get a Account","id":"72c0b201-fbf5-4354-8567-e7dbcc3a2d81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/api/admin/user/:id","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}},"urlObject":{"path":["api","admin","user",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"6a1c793edd356f4a14244183","key":"id"}]}},"response":[{"id":"216438ff-b9a1-40d6-9895-19b7ea2738ad","name":"401","originalRequest":{"method":"GET","header":[],"url":{"raw":"/api/admin/user/:id","host":[""],"path":["api","admin","user",":id"],"variable":[{"key":"id","value":""}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-sbs84eI5+lTb7bq4w8tU5Vx2Qko\""},{"key":"Date","value":"Wed, 03 Jun 2026 14:42:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not authorized, token missing\"\n}"},{"id":"3d05770f-5d83-4707-9434-98311139d0bd","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"/api/admin/user/:id","host":[""],"path":["api","admin","user",":id"],"variable":[{"key":"id","value":"6a1c793edd356f4a14244183"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"206"},{"key":"ETag","value":"W/\"ce-AsfSDITivRVFb/QIiC4Q7y2uYV8\""},{"key":"Date","value":"Wed, 03 Jun 2026 14:45:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"account\": {\n        \"_id\": \"6a1c793edd356f4a14244183\",\n        \"fullName\": \"musa\",\n        \"email\": \"musa@gmail.com\",\n        \"role\": \"user\",\n        \"createdAt\": \"2026-05-31T18:09:02.859Z\",\n        \"updatedAt\": \"2026-05-31T18:09:02.859Z\"\n    },\n    \"message\": \"user fetched\"\n}"}],"_postman_id":"72c0b201-fbf5-4354-8567-e7dbcc3a2d81"},{"name":"delete Account","id":"e4d997e5-d189-4a88-8325-b412997e1048","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"/api/admin/delaccount/:id","urlObject":{"path":["api","admin","delaccount",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"6a1c8196689b5c7a1fe5cafb","key":"id"}]}},"response":[{"id":"3c3a9ddf-fd56-4446-8410-95534c1333f8","name":"200","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"/api/admin/delaccount/:id","host":[""],"path":["api","admin","delaccount",":id"],"variable":[{"key":"id","value":"6a1c8196689b5c7a1fe5cafb"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-pqIJ8jtvCoPx8JwRcc2UkjJaqkI\""},{"key":"Date","value":"Wed, 03 Jun 2026 14:48:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account Deleted Sucessfully\"\n}"},{"id":"e420b3fa-c5db-46e5-9967-6ab697670317","name":"401","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"/api/admin/delaccount/:id","host":[""],"path":["api","admin","delaccount",":id"],"variable":[{"key":"id","value":"6a1c8196689b5c7a1fe5cafb"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-PwqClKZlPcFYsFkCPDPOV9a2svQ\""},{"key":"Date","value":"Wed, 03 Jun 2026 18:32:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not authorized, token invalid or expired\"\n}"}],"_postman_id":"e4d997e5-d189-4a88-8325-b412997e1048"},{"name":"Promote Account","id":"3e662593-97c3-4e87-9197-8e24c028d09b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"/api/admin/promote/:id","urlObject":{"path":["api","admin","promote",":id"],"host":[""],"query":[],"variable":[{"type":"any","value":"6a1c793edd356f4a14244183","key":"id"}]}},"response":[{"id":"4909a7db-b00f-495b-83aa-8d957b56bb6a","name":"200","originalRequest":{"method":"POST","header":[],"url":{"raw":"/api/admin/promote/:id","host":[""],"path":["api","admin","promote",":id"],"variable":[{"key":"id","value":"6a1c793edd356f4a14244183"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-urXsH2o/SBSFY+aI92Sl7jMFwi4\""},{"key":"Date","value":"Wed, 03 Jun 2026 14:46:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Account role Updated to admin\"\n}"},{"id":"b54239ef-6e7b-432c-98a4-c1709e58ac34","name":"400","originalRequest":{"method":"POST","header":[],"url":{"raw":"/api/admin/promote/:id","host":[""],"path":["api","admin","promote",":id"],"variable":[{"key":"id","value":"6a1c793edd356f4a14244183"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"102"},{"key":"ETag","value":"W/\"66-9gQ8Nvn9od/JTsf99ghob/tz7W4\""},{"key":"Date","value":"Wed, 03 Jun 2026 14:46:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Action barred: account configuration already maps to terminal administrative parameters.\"\n}"}],"_postman_id":"3e662593-97c3-4e87-9197-8e24c028d09b"}],"id":"92f5e1aa-d32f-454c-83d6-92ce68fa19b9","event":[{"listen":"prerequest","script":{"id":"41d93e44-b1de-42c7-954e-b5c36b083f2e","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"4ab297de-704e-4172-9664-2d6f4c577d51","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"_postman_id":"92f5e1aa-d32f-454c-83d6-92ce68fa19b9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}}},{"name":"Entry point","id":"bb672153-18b8-4f81-b203-d99df6a6b69c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":true,"source":{"_postman_id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","id":"0873077c-0e62-4fa3-b4b8-522b4f8c123c","name":"vaultPass API","type":"collection"}},"urlObject":{"host":[""],"query":[],"variable":[]}},"response":[{"id":"658a2f7a-f833-42e7-bc1b-0b08c1e86cb3","name":"200","originalRequest":{"method":"GET","header":[],"url":""},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"24"},{"key":"ETag","value":"W/\"18-kAWiMMCUXdGcmgcw6iQ2Dktwqw4\""},{"key":"Date","value":"Wed, 03 Jun 2026 14:49:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"entrypoint\"\n}"}],"_postman_id":"bb672153-18b8-4f81-b203-d99df6a6b69c"}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]}},"event":[{"listen":"prerequest","script":{"id":"0498cdfa-5146-4e23-a5cd-afd7dca3a380","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"28702851-5d67-4b9d-a176-0f24cb900c0d","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"baseURL","value":""},{"key":"token","value":""}]}