{"info":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","description":"<html><head></head><body><p>🚀 Product Overview</p>\n<p>What is Email Gateway API?</p>\n<p>Email Gateway API. adalah solusi email enterprise yang menyediakan infrastruktur email lengkap untuk bisnis modern. Kami menggabungkan teknologi email tradisional dengan fitur modern seperti tracking, analytics, dan automation.</p>\n<p>🌐 Production URL / Base URL : <a href=\"https://api.fdn.my.id%60\">https://api.unisend.id</a>/api/v1</p>\n<h2 id=\"🔐-authentication\">🔐 Authentication</h2>\n<h3 id=\"api-key-authentication\">API Key Authentication</h3>\n<p>For email operations, use:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Bearer YOUR_API_KEY\n\n</code></pre><h3 id=\"jwt-token-authentication\">JWT Token Authentication</h3>\n<p>For user management, use:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>Authorization: Bearer JWT_TOKEN\n\n</code></pre><h2 id=\"📧-email-operations\">📧 Email Operations</h2>\n<h3 id=\"send-single-email\">Send Single Email</h3>\n<p><strong>POST</strong> <code>/send-email</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"to\": \"recipient@example.com\",\n  \"subject\": \"Test Email\",\n  \"text\": \"This is a test email\",\n  \"html\": \"&lt;h1 class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27; class=&amp;#x27;preserveHtml&amp;#x27;&gt;Test Email&lt;/h1&gt;\",\n  \"from\": \"sender@yourdomain.com\",\n  \"tracking\": true\n}\n\n</code></pre>\n<h3 id=\"send-bulk-email\">Send Bulk Email</h3>\n<p><strong>POST</strong> <code>/send-email/bulk</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"recipients\": [\"user1@example.com\", \"user2@example.com\"],\n  \"subject\": \"Bulk Test Email\",\n  \"text\": \"This is a bulk test email\",\n  \"from\": \"sender@yourdomain.com\"\n}\n\n</code></pre>\n<h2 id=\"👤-user-management\">👤 User Management</h2>\n<h3 id=\"register-user\">Register User</h3>\n<p><strong>POST</strong> <code>/auth/register</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"email\": \"user@company.com\",\n  \"password\": \"securepassword123\",\n  \"name\": \"John Doe\",\n  \"company\": \"Company Name\"\n}\n\n</code></pre>\n<h3 id=\"login-user\">Login User</h3>\n<p><strong>POST</strong> <code>/auth/login</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"email\": \"user@company.com\",\n  \"password\": \"securepassword123\"\n}\n\n</code></pre>\n<h2 id=\"🌐-domain-management\">🌐 Domain Management</h2>\n<h3 id=\"list-domains\">List Domains</h3>\n<p><strong>GET</strong> <code>/domains</code></p>\n<h3 id=\"add-domain\">Add Domain</h3>\n<p><strong>POST</strong> <code>/domains</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"domain\": \"yourdomain.com\"\n}\n\n</code></pre>\n<h3 id=\"verify-domain\">Verify Domain</h3>\n<p><strong>PATCH</strong> <code>/domains/{domain_id}/verify</code></p>\n<h2 id=\"📊-email-tracking\">📊 Email Tracking</h2>\n<h3 id=\"get-email-tracking\">Get Email Tracking</h3>\n<p><strong>GET</strong> <code>/email-tracking/{tracking_id}</code></p>\n<h3 id=\"get-analytics\">Get Analytics</h3>\n<p><strong>GET</strong> <code>/email-tracking/analytics</code></p>\n<h2 id=\"🔑-api-key-management\">🔑 API Key Management</h2>\n<h3 id=\"generate-api-key\">Generate API Key</h3>\n<p><strong>POST</strong> <code>/api-keys</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"Production API Key\",\n  \"permissions\": [\"send_email\", \"track_email\"]\n}\n\n</code></pre>\n<h3 id=\"list-api-keys\">List API Keys</h3>\n<p><strong>GET</strong> <code>/api-keys</code></p>\n<h2 id=\"📮-mailbox-management\">📮 Mailbox Management</h2>\n<h3 id=\"list-mailboxes\">List Mailboxes</h3>\n<p><strong>GET</strong> <code>/mailbox-management</code></p>\n<h3 id=\"create-mailbox\">Create Mailbox</h3>\n<p><strong>POST</strong> <code>/mailbox-management</code></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"username\": \"newuser\",\n  \"password\": \"securepassword\",\n  \"domainId\": \"domain_id\"\n}\n\n</code></pre>\n<h2 id=\"⚡-rate-limits\">⚡ Rate Limits</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Plan</th>\n<th>Requests per Minute</th>\n<th>Daily Limit</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Starter</td>\n<td>100</td>\n<td>1,000</td>\n</tr>\n<tr>\n<td>Professional</td>\n<td>1,000</td>\n<td>10,000</td>\n</tr>\n<tr>\n<td>Enterprise</td>\n<td>10,000</td>\n<td>100,000</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"❌-error-codes\">❌ Error Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Message</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n<td>Invalid request parameters</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n<td>Invalid or missing authentication</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n<td>Insufficient permissions</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>Resource not found</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too Many Requests</td>\n<td>Rate limit exceeded</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error</td>\n<td>Server error</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"🧪-testing-scenarios\">🧪 Testing Scenarios</h2>\n<h3 id=\"1-user-onboarding-flow\">1. User Onboarding Flow</h3>\n<ol>\n<li><p>Register new user</p>\n</li>\n<li><p>Login and get JWT token</p>\n</li>\n<li><p>Generate API key</p>\n</li>\n<li><p>Add domain</p>\n</li>\n<li><p>Verify domain</p>\n</li>\n<li><p>Send test email</p>\n</li>\n</ol>\n<h3 id=\"2-email-sending-flow\">2. Email Sending Flow</h3>\n<ol>\n<li><p>Authenticate with API key</p>\n</li>\n<li><p>Send single email</p>\n</li>\n<li><p>Send bulk email</p>\n</li>\n<li><p>Check tracking status</p>\n</li>\n<li><p>View analytics</p>\n</li>\n</ol>\n<h3 id=\"3-subscription-management-flow\">3. Subscription Management Flow</h3>\n<ol>\n<li><p>View available plans</p>\n</li>\n<li><p>Create subscription</p>\n</li>\n<li><p>Upgrade/downgrade plan</p>\n</li>\n<li><p>Cancel subscription</p>\n</li>\n<li><p>Process payment for upgrade</p>\n</li>\n<li><p>Monitor usage</p>\n</li>\n<li><p>Check billing status</p>\n</li>\n</ol>\n<h2 id=\"🔧-environment-variables\">🔧 Environment Variables</h2>\n<h3 id=\"required-variables\">Required Variables</h3>\n<ul>\n<li><p><code>base_url</code>: API base URL</p>\n</li>\n<li><p><code>api_key</code>: API key for email operations</p>\n</li>\n<li><p><code>jwt_token</code>: JWT token for user management</p>\n</li>\n</ul>\n<h3 id=\"optional-variables\">Optional Variables</h3>\n<ul>\n<li><p><code>user_id</code>: Current user ID</p>\n</li>\n<li><p><code>domain_id</code>: Selected domain ID</p>\n</li>\n<li><p><code>tracking_id</code>: Email tracking ID</p>\n</li>\n<li><p><code>email_id</code>: Email message ID</p>\n</li>\n<li><p><code>subscription_id</code>: Current subscription ID</p>\n</li>\n<li><p><code>plan_id</code>: Current plan ID</p>\n</li>\n<li><p><code>new_plan_id</code>: New plan ID for upgrade</p>\n</li>\n</ul>\n<h2 id=\"📞-support\">📞 Support</h2>\n<ul>\n<li><p><strong>Email:</strong> <a href=\"mailto:support@fdn.my.id\">support@fdn.my.id</a></p>\n</li>\n<li><p><strong>Documentation:</strong> <a href=\"https://docs.fdn.my.id\">https://docs.fdn.my.id</a></p>\n</li>\n<li><p><strong>Status Page:</strong> <a href=\"https://status.fdn.my.id\">https://status.fdn.my.id</a></p>\n</li>\n</ul>\n<h2 id=\"🚀-getting-started-examples\">🚀 Getting Started Examples</h2>\n<h3 id=\"curl-examples\">cURL Examples</h3>\n<h4 id=\"register-user-1\">Register User</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X POST https://api.fdn.my.id/auth/register \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"email\":\"user@company.com\",\"password\":\"password\",\"name\":\"John Doe\"}'\n\n</code></pre>\n<h4 id=\"send-email\">Send Email</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X POST https://api.fdn.my.id/send-email \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"to\":\"recipient@example.com\",\"subject\":\"Test\",\"text\":\"Hello\"}'\n\n</code></pre>\n<h4 id=\"get-analytics-1\">Get Analytics</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-bash\">curl -X GET https://api.fdn.my.id/email-tracking/analytics \\\n  -H \"Authorization: Bearer JWT_TOKEN\"\n\n</code></pre>\n<h2 id=\"📝-notes\">📝 Notes</h2>\n<ul>\n<li><p>All requests should include appropriate headers</p>\n</li>\n<li><p>API keys are required for email operations</p>\n</li>\n<li><p>JWT tokens are required for user management</p>\n</li>\n<li><p>Rate limits apply based on subscription plan</p>\n</li>\n<li><p>All responses include <code>success</code> boolean field</p>\n</li>\n<li><p>Error responses include <code>message</code> field with details</p>\n</li>\n</ul>\n<h2 id=\"🔄-updates\">🔄 Updates</h2>\n<ul>\n<li><p><strong>v1.0:</strong> Initial release with basic email operations</p>\n</li>\n<li><p><strong>v1.1:</strong> Added tracking and analytics endpoints</p>\n</li>\n<li><p><strong>v1.2:</strong> Added subscription and billing management</p>\n</li>\n<li><p><strong>v1.3:</strong> Added domain management and mailbox features</p>\n</li>\n<li><p><strong>v1.4:</strong> Updated to production URL and added comprehensive documentation</p>\n</li>\n<li><p><strong>v1.5:</strong> Added upgrade plan endpoints and payment processing</p>\n</li>\n</ul>\n<h2 id=\"❌-error-codes-1\">❌ Error Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Message</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n<td>Invalid request parameters</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n<td>Invalid or missing authentication</td>\n</tr>\n<tr>\n<td>403</td>\n<td>Forbidden</td>\n<td>Insufficient permissions</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>Resource not found</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Too Many Requests</td>\n<td>Rate limit exceeded</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error</td>\n<td>Server error</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"domain-verification-errors\">Domain Verification Errors:</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Message</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>DOMAIN_NOT_VERIFIED</td>\n<td>Domain not verified</td>\n<td>Domain must be verified before sending</td>\n</tr>\n<tr>\n<td>SMTP_AUTH_ERROR</td>\n<td>SMTP authentication failed</td>\n<td>Invalid SMTP credentials</td>\n</tr>\n<tr>\n<td>SMTP_CONNECTION_ERROR</td>\n<td>SMTP connection failed</td>\n<td>Unable to connect to SMTP server</td>\n</tr>\n<tr>\n<td>SMTP_ENVELOPE_ERROR</td>\n<td>SMTP envelope error</td>\n<td>Invalid email envelope</td>\n</tr>\n<tr>\n<td>SMTP_TIMEOUT_ERROR</td>\n<td>SMTP timeout error</td>\n<td>SMTP connection timed out</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"🔄-updates-1\">🔄 Updates</h2>\n<ul>\n<li><p><strong>v1.0:</strong> Initial release with basic email operations</p>\n</li>\n<li><p><strong>v1.1:</strong> Added tracking and analytics endpoints</p>\n</li>\n<li><p><strong>v1.2:</strong> Added subscription and billing management</p>\n</li>\n<li><p><strong>v1.3:</strong> Added domain management and mailbox features</p>\n</li>\n<li><p><strong>v1.4:</strong> Updated to production URL and added comprehensive documentation</p>\n</li>\n<li><p><strong>v1.5:</strong> Added upgrade plan endpoints and payment processing</p>\n</li>\n<li><p><strong>v1.6:</strong> Implemented domain verification standard (Mailgun/SendGrid compliance)</p>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"36438660","collectionId":"d6772701-7019-41e1-acb8-9933f6bba4f1","publishedId":"2sB3HrndVu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-09-25T02:49:56.000Z"},"item":[{"name":"Authentication","item":[{"name":"Register User","event":[{"listen":"test","script":{"id":"acd7d4e3-94a2-48bf-b058-3e24b4f22266","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response has success field\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.success).to.eql(true);","});","","if (pm.response.code === 200) {","    var jsonData = pm.response.json();","    pm.environment.set(\"jwt_token\", jsonData.token);","    pm.environment.set(\"user_id\", jsonData.user._id);","}"],"type":"text/javascript","packages":{}}}],"id":"6ed792c2-7040-40e5-a1b2-67d8843b8c6c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"usertest@refactor.id\",\n  \"password\": \"piknik90\",\n  \"name\": \"User Refactor\",\n  \"company\": \"TESTER COMPANY\",\n  \"phoneNumber\": \"081324722533\"\n}"},"url":"http://localhost:3000/auth/register","description":"<p>Register a new user account</p>\n<h2 id=\"🔐-authentication\">🔐 Authentication</h2>\n<p>This endpoint handles user authentication.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["auth","register"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ed792c2-7040-40e5-a1b2-67d8843b8c6c"},{"name":"Login User","event":[{"listen":"test","script":{"id":"49408345-a083-4550-b35e-ef492b70ca94","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (pm.response.code === 200) {","    var jsonData = pm.response.json();","    pm.environment.set(\"jwt_token\", jsonData.token);","}"],"type":"text/javascript","packages":{}}}],"id":"0d7999cc-937f-4ceb-93d3-1e2741a992dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"myreferral5758@gmail.com\",\n  \"password\": \"piknik90\"\n}"},"url":"http://localhost:3000/auth/login","description":"<p>Login with email and password</p>\n<h2 id=\"🔐-authentication\">🔐 Authentication</h2>\n<p>This endpoint handles user authentication.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["auth","login"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d7999cc-937f-4ceb-93d3-1e2741a992dd"},{"name":"Activate Account","id":"fec8de3c-ba0e-4cb6-a157-4dd3015f8171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/auth/activate/{{activation_token}}","description":"<p>Activate user account with token</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["auth","activate","{{activation_token}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"fec8de3c-ba0e-4cb6-a157-4dd3015f8171"},{"name":"Request Password Reset","event":[{"listen":"test","script":{"id":"8b821e0e-04b1-4cc9-81ac-4d579d274941","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response has success field\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.success).to.eql(true);","});","","pm.test(\"Response has security message\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.message).to.include(\"link reset password\");","});"],"type":"text/javascript","packages":{}}}],"id":"5b9f8afc-ffdc-4530-bd88-fafb6320d807","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"email\": \"usertest@refactor.id\"\n}"},"url":"http://localhost:3000/auth/forgot-password","description":"<p>Request password reset via email</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["auth","forgot-password"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b9f8afc-ffdc-4530-bd88-fafb6320d807"},{"name":"Reset Password Page","id":"7c29269c-5562-4b1b-9b88-7f5eb97afec2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/auth/reset-password/{{reset_token}}","description":"<p>Show password reset form (HTML page)</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["auth","reset-password","{{reset_token}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c29269c-5562-4b1b-9b88-7f5eb97afec2"},{"name":"Process Password Reset","event":[{"listen":"test","script":{"id":"38e38e32-3be6-41e4-bc83-fb178910d10a","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response has success field\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.success).to.eql(true);","});","","pm.test(\"Response has success message\", function () {","    var jsonData = pm.response.json();","    pm.expect(jsonData.message).to.include(\"Password berhasil direset\");","});"],"type":"text/javascript","packages":{}}}],"id":"91d0eee8-7eb1-488a-a3c5-47c0fba4e9a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"password\": \"piknik90\"\n}"},"url":"http://localhost:3000/auth/reset-password/{{reset_token}}","description":"<p>Process password reset with new password</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["auth","reset-password","{{reset_token}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"91d0eee8-7eb1-488a-a3c5-47c0fba4e9a7"}],"id":"d57c1664-bd46-4a1c-8b2c-6487bb423153","_postman_id":"d57c1664-bd46-4a1c-8b2c-6487bb423153","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}}},{"name":"Domain Management","item":[{"name":"Create Domain","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if (pm.response.code === 201) {","    var jsonData = pm.response.json();","    pm.environment.set(\"domain_id\", jsonData.domain._id);","}"],"type":"text/javascript","id":"1be6d6b4-fd4d-4f48-ac17-3d625240b14a"}}],"id":"0722c5eb-f517-4d6f-9339-48d45a40090b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"domain\": \"yourdomain.com\"\n}"},"url":"http://localhost:3000/domains","description":"<p>Create new domain for user</p>\n<h2 id=\"🌐-domain-management\">🌐 Domain Management</h2>\n<p>This endpoint handles domain operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"0722c5eb-f517-4d6f-9339-48d45a40090b"},{"name":"Get Domains (pagination)","id":"c23f0255-8ced-400f-83af-048b691dca03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/domains?search=&page=1&limit=25","description":"<p>Get all domains for user</p>\n<h2 id=\"🌐-domain-management\">🌐 Domain Management</h2>\n<p>This endpoint handles domain operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains"],"host":["http://localhost:3000"],"query":[{"key":"search","value":""},{"disabled":true,"description":{"content":"<p>createdAt / domain</p>\n","type":"text/plain"},"key":"sort","value":""},{"disabled":true,"description":{"content":"<p>desc / asc</p>\n","type":"text/plain"},"key":"sortOrder","value":""},{"description":{"content":"<p>1</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>25</p>\n","type":"text/plain"},"key":"limit","value":"25"}],"variable":[]}},"response":[],"_postman_id":"c23f0255-8ced-400f-83af-048b691dca03"},{"name":"Get Mailboxes of Domains (pagination)","id":"8548a85b-e98c-4379-8ac6-b3d2716bfe44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/domains/68974bf64d562479dc462445/mailboxes/?search=&page=1&limit=25","description":"<p>Get all domains for user</p>\n<h2 id=\"🌐-domain-management\">🌐 Domain Management</h2>\n<p>This endpoint handles domain operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains","68974bf64d562479dc462445","mailboxes",""],"host":["http://localhost:3000"],"query":[{"key":"search","value":""},{"disabled":true,"description":{"content":"<p>createdAt / domain</p>\n","type":"text/plain"},"key":"sort","value":""},{"disabled":true,"description":{"content":"<p>desc / asc</p>\n","type":"text/plain"},"key":"sortOrder","value":""},{"description":{"content":"<p>1</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>25</p>\n","type":"text/plain"},"key":"limit","value":"25"}],"variable":[]}},"response":[],"_postman_id":"8548a85b-e98c-4379-8ac6-b3d2716bfe44"},{"name":"Get Domain by ID","id":"8f9e07b7-36aa-4135-aa08-c0877a1afb24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/domains/{{domain_id}}","description":"<p>Get specific domain details</p>\n<h2 id=\"🌐-domain-management\">🌐 Domain Management</h2>\n<p>This endpoint handles domain operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains","{{domain_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f9e07b7-36aa-4135-aa08-c0877a1afb24"},{"name":"Verify Domain","event":[{"listen":"test","script":{"id":"10b231f6-4fb1-4572-b50e-ba2c4dcc922e","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (pm.response.code === 200) {","    var jsonData = pm.response.json();","    console.log(\"DNS Records:\", jsonData.dnsRecords);","    console.log(\"Instructions:\", jsonData.instructions);","}"],"type":"text/javascript","packages":{}}}],"id":"19fb8e51-20a8-491d-92ef-aab15d343cf8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/domains/{{domain_id}}/verify","description":"<p>Verify domain and setup Postfix virtual mailbox</p>\n<h2 id=\"🌐-domain-management\">🌐 Domain Management</h2>\n<p>This endpoint handles domain operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains","{{domain_id}}","verify"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"19fb8e51-20a8-491d-92ef-aab15d343cf8"},{"name":"Add Mailbox","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if (pm.response.code === 201) {","    var jsonData = pm.response.json();","    pm.environment.set(\"mailbox_email\", jsonData.email);","}"],"type":"text/javascript","id":"3924e4f9-05d8-4b1f-aa8c-9d513755a29f"}}],"id":"74bfb5f8-13bb-4ad0-b3d5-0492fe5538b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"admin\",\n  \"password\": \"securepassword123\"\n}"},"url":"http://localhost:3000/domains/{{domain_id}}/mailboxes","description":"<p>Add mailbox to verified domain. Domain must be verified first. Username will be combined with domain to create email address.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains","{{domain_id}}","mailboxes"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"74bfb5f8-13bb-4ad0-b3d5-0492fe5538b3"},{"name":"Add Mailbox - Support","id":"6b21bcc5-6d54-4776-8a80-643e553f69b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"support\",\n  \"password\": \"supportpass123\"\n}"},"url":"http://localhost:3000/domains/{{domain_id}}/mailboxes","description":"<p>Add support mailbox to verified domain</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains","{{domain_id}}","mailboxes"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6b21bcc5-6d54-4776-8a80-643e553f69b3"},{"name":"Add Mailbox - Sales","id":"b96d0dad-ed4b-4bfc-914d-fb594a81f102","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"sales\",\n  \"password\": \"Sales@2024#Secure\"\n}"},"url":"http://localhost:3000/domains/{{domain_id}}/mailboxes","description":"<p>Add sales mailbox with complex password</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains","{{domain_id}}","mailboxes"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b96d0dad-ed4b-4bfc-914d-fb594a81f102"},{"name":"Delete Domain","id":"46ef83e7-c7f3-4baa-ae8f-4b94f2d64944","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/domains/{{domain_id}}","description":"<p>Delete domain and all associated mailboxes</p>\n<h2 id=\"🌐-domain-management\">🌐 Domain Management</h2>\n<p>This endpoint handles domain operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains","{{domain_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"46ef83e7-c7f3-4baa-ae8f-4b94f2d64944"}],"id":"db24a352-9415-4331-88a0-15301c83d0f8","_postman_id":"db24a352-9415-4331-88a0-15301c83d0f8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}}},{"name":"Mailboxes","item":[{"name":"Inbounds","item":[{"name":"Get List Paginate","id":"2a34e912-b437-4525-90e2-ba043a438634","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/inbounds?search=&page=1&limit=25","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","inbounds"],"host":["http://localhost:3000"],"query":[{"key":"search","value":""},{"key":"page","value":"1"},{"key":"limit","value":"25"}],"variable":[]}},"response":[],"_postman_id":"2a34e912-b437-4525-90e2-ba043a438634"},{"name":"Get Statistics","id":"f1fd98dc-914c-4c50-b526-92b2cda8d00b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/inbounds/statistics","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","inbounds","statistics"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f1fd98dc-914c-4c50-b526-92b2cda8d00b"},{"name":"Get Detail","id":"c90846a4-7d3d-4e18-a9cf-b8d19f76c259","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/inbounds/{{inbound_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","inbounds","{{inbound_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c90846a4-7d3d-4e18-a9cf-b8d19f76c259"},{"name":"bulk-read","id":"3573e853-4c44-46bf-b8eb-11d5db2bd25a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"messageIds\": [\"68a2e90380e0aa6f5c9b0980\", \"68a2ad4480e0aa6f5c9b097a\"],\n    \"shouldRead\": true\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/inbounds/bulk-read","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","inbounds","bulk-read"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"3573e853-4c44-46bf-b8eb-11d5db2bd25a"},{"name":"bulk-star","id":"571584c0-8135-4827-ac63-a1546ce01800","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"messageIds\": [\"68a2e90380e0aa6f5c9b0980\", \"68a2ad4480e0aa6f5c9b097a\"],\n    \"shouldStar\": true\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/inbounds/bulk-star","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","inbounds","bulk-star"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"571584c0-8135-4827-ac63-a1546ce01800"},{"name":"bulk-remove","id":"7c9f41be-2932-4568-a366-120bb1038788","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"messageIds\": [\"68a2e90380e0aa6f5c9b0980\", \"68a2ad4480e0aa6f5c9b097a\"]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/inbounds/bulk-remove","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","inbounds","bulk-remove"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"7c9f41be-2932-4568-a366-120bb1038788"}],"id":"95fc7d04-2b14-4728-a6fa-bb6ca253f2c7","_postman_id":"95fc7d04-2b14-4728-a6fa-bb6ca253f2c7","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}}},{"name":"Outbounds","item":[{"name":"Get List Paginate","id":"5a44903b-e12f-4d2a-a77b-bb370e09d0ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/outbounds?search=&page=1&limit=25","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","outbounds"],"host":["http://localhost:3000"],"query":[{"key":"search","value":""},{"key":"page","value":"1"},{"key":"limit","value":"25"}],"variable":[]}},"response":[],"_postman_id":"5a44903b-e12f-4d2a-a77b-bb370e09d0ad"},{"name":"Get Statistics","id":"399eef7c-f3cd-410e-94f8-eca593e2aed5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/outbounds/statistics","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","outbounds","statistics"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"399eef7c-f3cd-410e-94f8-eca593e2aed5"},{"name":"Get Detail","id":"e0e2f349-4780-4da9-86c0-dceec3d74320","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/outbounds/{{outbound_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","outbounds","{{outbound_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e0e2f349-4780-4da9-86c0-dceec3d74320"},{"name":"bulk-star","id":"6c6b02f7-cd32-4464-9249-ca742dbaff15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"messageIds\": [\"689ed302766790f18a970f66\", \"689eb41c766790f18a970695\"],\n    \"shouldStar\": true\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/outbounds/bulk-star","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","outbounds","bulk-star"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"6c6b02f7-cd32-4464-9249-ca742dbaff15"},{"name":"bulk-remove","id":"5378af43-261f-4d1f-bbc3-17370dcb00cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"messageIds\": [\"689eb41c766790f18a970695\", \"68a2ad4480e0aa6f5c9b097a\"]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/outbounds/bulk-remove","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","outbounds","bulk-remove"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"5378af43-261f-4d1f-bbc3-17370dcb00cb"}],"id":"a0313d6e-bdea-40b0-8ce0-d29c2071124e","_postman_id":"a0313d6e-bdea-40b0-8ce0-d29c2071124e","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}}},{"name":"Get Detail","id":"4b9e0e38-ae48-4fe8-aebb-c96c0322e498","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here","type":"text"}],"url":"http://localhost:3000/mailboxes/{{mailbox_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"4b9e0e38-ae48-4fe8-aebb-c96c0322e498"},{"name":"Update Mailbox By Id","id":"ec24122c-04e4-48a2-88d2-a9a6e6998aef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"password\": \"piknik90\",\n    \"isActive\": true\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/mailboxes/{{mailbox_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec24122c-04e4-48a2-88d2-a9a6e6998aef"},{"name":"Get Mailboxes (pagination)","id":"011cce64-615b-4f58-983a-80019c17ff74","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/mailboxes?search=&page=1&limit=25","description":"<p>Get all domains for user</p>\n<h2 id=\"🌐-domain-management\">🌐 Domain Management</h2>\n<p>This endpoint handles domain operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes"],"host":["http://localhost:3000"],"query":[{"key":"search","value":""},{"disabled":true,"description":{"content":"<p>createdAt / domain</p>\n","type":"text/plain"},"key":"sort","value":""},{"disabled":true,"description":{"content":"<p>desc / asc</p>\n","type":"text/plain"},"key":"sortOrder","value":""},{"description":{"content":"<p>1</p>\n","type":"text/plain"},"key":"page","value":"1"},{"description":{"content":"<p>25</p>\n","type":"text/plain"},"key":"limit","value":"25"}],"variable":[]}},"response":[],"_postman_id":"011cce64-615b-4f58-983a-80019c17ff74"},{"name":"Get Statistic Global","id":"9f3334bd-508d-476c-b429-55be48421a75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here","type":"text"}],"url":"http://localhost:3000/mailboxes/statistics","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","statistics"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"9f3334bd-508d-476c-b429-55be48421a75"},{"name":"Get Statistic By MailboxId (All Stats)","id":"68640c9a-13e8-43e3-a791-7d2d9e9390c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here","type":"text"}],"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/statistics","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","statistics"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"68640c9a-13e8-43e3-a791-7d2d9e9390c0"},{"name":"Get Statistic By MailboxId (spesific - Growth)","id":"3ff47241-4717-4d95-b7ab-f15d4575c09e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here","type":"text"}],"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/statistics/growth","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","statistics","growth"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ff47241-4717-4d95-b7ab-f15d4575c09e"},{"name":"Get Statistic By MailboxId (spesific - Chart)","id":"b940969f-5eba-412f-82b1-fb55cc424258","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here","type":"text"}],"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/statistics/chart","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","statistics","chart"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"b940969f-5eba-412f-82b1-fb55cc424258"},{"name":"Get Statistic By MailboxId (spesific - Top)","id":"a638b71e-e7b4-4909-8b2a-f1de6139be73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here","type":"text"}],"url":"http://localhost:3000/mailboxes/{{mailbox_id}}/statistics/top","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["mailboxes","{{mailbox_id}}","statistics","top"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"a638b71e-e7b4-4909-8b2a-f1de6139be73"},{"name":"Delete Mailbox","id":"c6c65c6b-17e8-43fa-8359-2c53d79a3b11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/domains/{{domain_id}}/mailboxes/{{mailbox_id}}","description":"<p>Delete domain and all associated mailboxes</p>\n<h2 id=\"🌐-domain-management\">🌐 Domain Management</h2>\n<p>This endpoint handles domain operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["domains","{{domain_id}}","mailboxes","{{mailbox_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"c6c65c6b-17e8-43fa-8359-2c53d79a3b11"}],"id":"f7809844-3a12-408d-b409-a22170e0354f","_postman_id":"f7809844-3a12-408d-b409-a22170e0354f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}}},{"name":"Email Sending","item":[{"name":"Send Email","event":[{"listen":"test","script":{"id":"e2578a72-5004-4936-ab37-9f638693d2a8","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (pm.response.code === 200) {","    var jsonData = pm.response.json();","    pm.environment.set(\"email_id\", jsonData.emailId);","}"],"type":"text/javascript","packages":{}}}],"id":"f3fe6b76-054b-4e53-85c3-9083f1b96cb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"your_api_key_here","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from\": \"ADMIN FDN <admin@referral.my.id>\",\n  \"to\": [\"tataredhaalfath13@gmail.com\"],\n  \"subject\": \"Tugas Malam Kirim Email\",\n  \"html\": \"<h1>Hello World</h1><p>This is a test email.</p>\",\n  \"text\": \"Hello World\\n\\nThis is a test email.\"\n}"},"url":"http://localhost:3000/send-email","description":"<p>Send email with API key authentication</p>\n<h2 id=\"📧-email-operations\">📧 Email Operations</h2>\n<p>This endpoint handles email sending operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["send-email"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"f3fe6b76-054b-4e53-85c3-9083f1b96cb4"},{"name":"Send Email with CC/BCC","id":"326c11c9-f34e-4b4d-b59f-4e08c8a3bcc4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"your_api_key_here","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"from\": \"Marketing Team <admin@referral.my.id>\",\n  \"to\": [\"recipient@example.com\"],\n  \"cc\": [\"Support Team <support@company.com>\"],\n  \"bcc\": [\"bcc@example.com\"],\n  \"subject\": \"Test Email with CC/BCC\",\n  \"html\": \"<h1>Hello World</h1><p>This is a test email with CC/BCC.</p>\",\n  \"text\": \"Hello World\\n\\nThis is a test email with CC/BCC.\"\n}"},"url":"http://localhost:3000/send-email","description":"<p>Send email with CC and BCC recipients</p>\n<h2 id=\"📧-email-operations\">📧 Email Operations</h2>\n<p>This endpoint handles email sending operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["send-email"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"326c11c9-f34e-4b4d-b59f-4e08c8a3bcc4"}],"id":"3c1efe7d-eea8-4a1d-beb3-b08b8aee9bec","_postman_id":"3c1efe7d-eea8-4a1d-beb3-b08b8aee9bec","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}}},{"name":"Email Tracking","item":[{"name":"Send Email with Tracking","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","if (pm.response.code === 200) {","    var jsonData = pm.response.json();","    pm.environment.set(\"tracking_id\", jsonData.trackingId);","    pm.environment.set(\"pixel_id\", jsonData.pixelId);","}"],"type":"text/javascript","id":"4de4d1f3-49cc-457d-ac65-bdbc7013519e"}}],"id":"8e2128dd-f3e2-469a-9001-ac5576025d6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_api_key_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"from\": \"Marketing Team <marketing@company.com>\",\n  \"to\": [\"recipient@example.com\"],\n  \"subject\": \"Tracked Email Campaign\",\n  \"html\": \"<h1>Special Offer</h1><p>Click <a href=\\\"https://example.com\\\">here</a> to learn more!</p>\",\n  \"text\": \"Special Offer\\n\\nClick here to learn more: https://example.com\",\n  \"tracking\": true,\n  \"campaign\": \"summer-sale-2024\",\n  \"listId\": \"newsletter-list-1\",\n  \"segmentId\": \"active-users\",\n  \"tags\": [\"marketing\", \"campaign\", \"tracked\"]\n}"},"url":"http://localhost:3000/email-tracking/send-with-tracking","description":"<p>Send email with tracking enabled and display name format</p>\n<h2 id=\"📧-email-operations\">📧 Email Operations</h2>\n<p>This endpoint handles email sending operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["email-tracking","send-with-tracking"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e2128dd-f3e2-469a-9001-ac5576025d6b"},{"name":"Get Email Tracking","id":"04df6fdd-5fb9-49a3-8567-7fc86056662e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/tracking/{{email_id}}","description":"<p>Get email tracking information</p>\n<h2 id=\"📧-email-operations\">📧 Email Operations</h2>\n<p>This endpoint handles email sending operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["tracking","{{email_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"04df6fdd-5fb9-49a3-8567-7fc86056662e"},{"name":"Get Email Analytics","id":"62fa21cb-88d0-4447-aca2-ca806d0e7824","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/tracking/analytics","description":"<p>Get email analytics and statistics</p>\n<h2 id=\"📧-email-operations\">📧 Email Operations</h2>\n<p>This endpoint handles email sending operations.</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["tracking","analytics"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"62fa21cb-88d0-4447-aca2-ca806d0e7824"}],"id":"ad92e9af-ff04-41a0-9abb-aa07f2a0d536","_postman_id":"ad92e9af-ff04-41a0-9abb-aa07f2a0d536","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}}},{"name":"API Key Management","item":[{"name":"Create API Key","event":[{"listen":"test","script":{"id":"a89a75de-8a8f-4d7e-9f6c-4e6aff9f64f1","exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if (pm.response.code === 201) {","    var jsonData = pm.response.json();","    pm.environment.set(\"api_key\", jsonData.apiKey);","}"],"type":"text/javascript","packages":{}}}],"id":"b1026095-8ed3-47ef-96da-5c94b7c076d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"Key All Feature\",\n  \"allowedIps\": [\"103.10.12.25\", \"192.168.1.100\"],\n  \"allowedFeatures\": [\"email_gateway\", \"sms_gateway\", \"whatsapp_gateway\"],\n  \"scopes\": [\n    // EMAIL SCOPE\n    \"send_email\",\n    \"email_tracking\",\n    \"manage_template\",\n    \"view_reports\",\n\n    // SMS SCOPE\n    \"send_sms\",\n    \"bulk_sms\",\n    \"manage_template\",\n    \"view_reports\",\n    \n    // WA SCOPE\n    \"send_whatsapp\",\n    \"whatsapp_media\",\n    \"whatsapp_template\",\n    \"view_reports\"\n    ]\n}"},"url":"http://localhost:3000/api-keys","description":"<p>Create new API key for email operations</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["api-keys"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"ca976403-eed1-4c7a-b41b-e6a55700fd28","name":"Success All Gateway","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Key untuk All Gateway\",\n  \"allowedIps\": [\"103.10.12.25\", \"192.168.1.100\"],\n  \"allowedFeatures\": [\"email_gateway\", \"sms_gateway\", \"whatsapp_gateway\"],\n  \"scopes\": [\n    // EMAIL SCOPE\n    \"send_email\",\n    \"email_tracking\",\n    \"manage_template\",\n    \"view_reports\",\n\n    // SMS SCOPE\n    \"send_sms\",\n    \"bulk_sms\",\n    \"manage_template\",\n    \"view_reports\",\n    \n    // WA SCOPE\n    \"send_whatsapp\",\n    \"whatsapp_media\",\n    \"whatsapp_template\",\n    \"view_reports\"\n    ]\n}"},"url":"http://localhost:3000/api-keys"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"587"},{"key":"ETag","value":"W/\"24b-FtSwPlw874yU1S1wX95uUDozB/I\""},{"key":"Date","value":"Fri, 19 Sep 2025 05:55:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Create APIKey Successfully\",\n    \"data\": {\n        \"userId\": \"68974aba4d562479dc462421\",\n        \"key\": \"cbe51436-561d-462d-9b8f-b531ab54ce1f\",\n        \"name\": \"Key untuk All Gateway\",\n        \"revoked\": false,\n        \"allowedIps\": [\n            \"103.10.12.25\",\n            \"192.168.1.100\"\n        ],\n        \"allowedFeatures\": [\n            \"email_gateway\",\n            \"sms_gateway\",\n            \"whatsapp_gateway\"\n        ],\n        \"scopes\": [\n            \"send_email\",\n            \"email_tracking\",\n            \"manage_template\",\n            \"view_reports\",\n            \"send_sms\",\n            \"bulk_sms\",\n            \"manage_template\",\n            \"view_reports\",\n            \"send_whatsapp\",\n            \"whatsapp_media\",\n            \"whatsapp_template\",\n            \"view_reports\"\n        ],\n        \"_id\": \"68ccf0675f2d057bd7fee090\",\n        \"createdAt\": \"2025-09-19T05:55:51.187Z\",\n        \"__v\": 0\n    }\n}"},{"id":"1334c217-a9ca-4e71-8fff-6e7e1f03f302","name":"Error Invalid allowedFeature","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Key untuk Email Gateway\",\n  \"allowedIps\": [\"103.10.12.25\", \"192.168.1.100\"],\n  \"allowedFeatures\": [\"email_gatewaya\"],\n  \"scopes\": [\"send_email\", \"email_tracking\"]\n}"},"url":"http://localhost:3000/api-keys"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"70"},{"key":"ETag","value":"W/\"46-4xNwJd165fBsXu9z5fuDtwsa2aE\""},{"key":"Date","value":"Fri, 19 Sep 2025 04:21:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Invalid allowedFeatures: email_gatewayaa\"\n}"},{"id":"4f1d4db4-1d91-4a67-89ca-d54573feda70","name":"Error Invalid Scope","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Key untuk Email Gateway\",\n  \"allowedIps\": [\"103.10.12.25\", \"192.168.1.100\"],\n  \"allowedFeatures\": [\"email_gateway\"],\n  \"scopes\": [\"send_emailaa\", \"email_tracking\"]\n}"},"url":"http://localhost:3000/api-keys"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"86"},{"key":"ETag","value":"W/\"56-I/b9AjPXa6AbttO+eg8k0v0WBHg\""},{"key":"Date","value":"Fri, 19 Sep 2025 04:22:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Invalid scopes: send_emailaa for features: email_gateway\"\n}"},{"id":"1dd8e552-f533-4354-b9c9-a863ce4c6b5c","name":"Success SMS Gateway","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Key untuk SMS Gateway\",\n  \"allowedIps\": [\"103.10.12.25\", \"192.168.1.100\"],\n  \"allowedFeatures\": [\"sms_gateway\"],\n  \"scopes\": [\"send_sms\", \"bulk_sms\", \"manage_template\", \"view_reports\"]\n}"},"url":"http://localhost:3000/api-keys"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"421"},{"key":"ETag","value":"W/\"1a5-iLNymNV3vuK0tc7SDniZBShhwBs\""},{"key":"Date","value":"Fri, 19 Sep 2025 05:53:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Create APIKey Successfully\",\n    \"data\": {\n        \"userId\": \"68974aba4d562479dc462421\",\n        \"key\": \"91be26c6-259f-432a-809d-bf224bfecd75\",\n        \"name\": \"Key untuk SMS Gateway\",\n        \"revoked\": false,\n        \"allowedIps\": [\n            \"103.10.12.25\",\n            \"192.168.1.100\"\n        ],\n        \"allowedFeatures\": [\n            \"sms_gateway\"\n        ],\n        \"scopes\": [\n            \"send_sms\",\n            \"bulk_sms\",\n            \"manage_template\",\n            \"view_reports\"\n        ],\n        \"_id\": \"68ccefdb5f2d057bd7fee084\",\n        \"createdAt\": \"2025-09-19T05:53:31.806Z\",\n        \"__v\": 0\n    }\n}"},{"id":"7f02ae9d-2b21-4704-891f-88efc45d3bb5","name":"Success Whatsapp Gateway","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Key untuk Whatsapp Gateway\",\n  \"allowedIps\": [\"103.10.12.25\", \"192.168.1.100\"],\n  \"allowedFeatures\": [\"whatsapp_gateway\"],\n  \"scopes\": [\"send_whatsapp\",\n    \"whatsapp_media\",\n    \"whatsapp_template\",\n    \"view_reports\"]\n}"},"url":"http://localhost:3000/api-keys"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"439"},{"key":"ETag","value":"W/\"1b7-kLIGsymPlG5L9vgKdHMPmwqzCSg\""},{"key":"Date","value":"Fri, 19 Sep 2025 05:53:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Create APIKey Successfully\",\n    \"data\": {\n        \"userId\": \"68974aba4d562479dc462421\",\n        \"key\": \"a03fccdf-7e0e-464e-9551-e69167db67f2\",\n        \"name\": \"Key untuk Whatsapp Gateway\",\n        \"revoked\": false,\n        \"allowedIps\": [\n            \"103.10.12.25\",\n            \"192.168.1.100\"\n        ],\n        \"allowedFeatures\": [\n            \"whatsapp_gateway\"\n        ],\n        \"scopes\": [\n            \"send_whatsapp\",\n            \"whatsapp_media\",\n            \"whatsapp_template\",\n            \"view_reports\"\n        ],\n        \"_id\": \"68ccefed5f2d057bd7fee088\",\n        \"createdAt\": \"2025-09-19T05:53:49.512Z\",\n        \"__v\": 0\n    }\n}"},{"id":"fa738148-a186-4014-88be-e07eddbc3e40","name":"Success Email Gateway","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Key untuk Email Gateway\",\n  \"allowedIps\": [\"103.10.12.25\", \"192.168.1.100\"],\n  \"allowedFeatures\": [\"email_gateway\"],\n  \"scopes\": [\"send_email\",\n    \"email_tracking\",\n    \"manage_template\",\n    \"view_reports\"]\n}"},"url":"http://localhost:3000/api-keys"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"431"},{"key":"ETag","value":"W/\"1af-aU8Y9FhnpqNfdfYLf4+1wOFL2HQ\""},{"key":"Date","value":"Fri, 19 Sep 2025 05:54:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Create APIKey Successfully\",\n    \"data\": {\n        \"userId\": \"68974aba4d562479dc462421\",\n        \"key\": \"d2b95a80-a30f-434b-bd1b-818aab1c1833\",\n        \"name\": \"Key untuk Email Gateway\",\n        \"revoked\": false,\n        \"allowedIps\": [\n            \"103.10.12.25\",\n            \"192.168.1.100\"\n        ],\n        \"allowedFeatures\": [\n            \"email_gateway\"\n        ],\n        \"scopes\": [\n            \"send_email\",\n            \"email_tracking\",\n            \"manage_template\",\n            \"view_reports\"\n        ],\n        \"_id\": \"68ccf00e5f2d057bd7fee08c\",\n        \"createdAt\": \"2025-09-19T05:54:22.368Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"b1026095-8ed3-47ef-96da-5c94b7c076d6"},{"name":"Update API Key","event":[{"listen":"test","script":{"id":"a89a75de-8a8f-4d7e-9f6c-4e6aff9f64f1","exec":["pm.test(\"Status code is 201\", function () {","    pm.response.to.have.status(201);","});","","if (pm.response.code === 201) {","    var jsonData = pm.response.json();","    pm.environment.set(\"api_key\", jsonData.apiKey);","}"],"type":"text/javascript","packages":{}}}],"id":"fc9a4642-4075-469b-99ea-1feea7d08ca9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"label\": \"Key Global Access Feature\",\n  \"allowedIps\": [\"10.0.0.1\", \"10.0.0.2\"],\n  \"allowedFeatures\": [\"email_gateway\", \"sms_gateway\", \"whatsapp_gateway\"],\n  \"scopes\": [\n    // EMAIL SCOPE\n    \"send_email\",\n    \"email_tracking\",\n    \"manage_template\",\n    \"view_reports\",\n\n    // SMS SCOPE\n    \"send_sms\",\n    \"bulk_sms\",\n    \"manage_template\",\n    \"view_reports\",\n    \n    // WA SCOPE\n    \"send_whatsapp\",\n    \"whatsapp_media\",\n    \"whatsapp_template\",\n    \"view_reports\"\n  ]\n}\n"},"url":"http://localhost:3000/api-keys/{{api_key_id}}","description":"<p>Create new API key for email operations</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["api-keys","{{api_key_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"8d1a4d56-f275-4a7b-98d9-f4c2225e1725","name":"Success","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"Key Global Access Feature\",\n  \"allowedIps\": [\"10.0.0.1\", \"10.0.0.2\"],\n  \"allowedFeatures\": [\"email_gateway\", \"sms_gateway\", \"whatsapp_gateway\"],\n  \"scopes\": [\n    // EMAIL SCOPE\n    \"send_email\",\n    \"email_tracking\",\n    \"manage_template\",\n    \"view_reports\",\n\n    // SMS SCOPE\n    \"send_sms\",\n    \"bulk_sms\",\n    \"manage_template\",\n    \"view_reports\",\n    \n    // WA SCOPE\n    \"send_whatsapp\",\n    \"whatsapp_media\",\n    \"whatsapp_template\",\n    \"view_reports\"\n  ]\n}\n"},"url":"http://localhost:3000/api-keys/{{api_key_id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"579"},{"key":"ETag","value":"W/\"243-qQ2QzctgPCEpPAVWQniJKfsWZ6g\""},{"key":"Date","value":"Fri, 19 Sep 2025 06:27:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Update ApiKey Sucessfully\",\n    \"data\": {\n        \"_id\": \"68ccf0675f2d057bd7fee090\",\n        \"userId\": \"68974aba4d562479dc462421\",\n        \"key\": \"cbe51436-561d-462d-9b8f-b531ab54ce1f\",\n        \"name\": \"Key Global Access Feature\",\n        \"revoked\": false,\n        \"allowedIps\": [\n            \"10.0.0.1\",\n            \"10.0.0.2\"\n        ],\n        \"allowedFeatures\": [\n            \"email_gateway\",\n            \"sms_gateway\",\n            \"whatsapp_gateway\"\n        ],\n        \"scopes\": [\n            \"send_email\",\n            \"email_tracking\",\n            \"manage_template\",\n            \"view_reports\",\n            \"send_sms\",\n            \"bulk_sms\",\n            \"manage_template\",\n            \"view_reports\",\n            \"send_whatsapp\",\n            \"whatsapp_media\",\n            \"whatsapp_template\",\n            \"view_reports\"\n        ],\n        \"createdAt\": \"2025-09-19T05:55:51.187Z\",\n        \"__v\": 1\n    }\n}"}],"_postman_id":"fc9a4642-4075-469b-99ea-1feea7d08ca9"},{"name":"List Api Key","id":"f40176c4-6001-4647-9643-487d8dd4e204","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"search","value":"","description":"<p>search for [name, key, allowrdFeatures, allowedIps]</p>\n","type":"text"},{"key":"page","value":"1","type":"text"},{"key":"limit","value":"25","type":"text"},{"key":"sort","value":"createdAt","type":"text"},{"key":"sortOrder","value":"desc","type":"text"}],"url":"http://localhost:3000/api-keys","description":"<p>Get all API keys for user</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["api-keys"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"624661a8-270e-4429-8f53-e45a27c9c060","name":"Success","originalRequest":{"method":"GET","header":[{"key":"search","value":"","description":"search for [name, key, allowrdFeatures, allowedIps]","type":"text"},{"key":"page","value":"1","type":"text"},{"key":"limit","value":"25","type":"text"},{"key":"sort","value":"createdAt","type":"text"},{"key":"sortOrder","value":"desc","type":"text"}],"url":"http://localhost:3000/api-keys"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3591"},{"key":"ETag","value":"W/\"e07-WN9TsuViG2UpxxuQRycBVy0IYhw\""},{"key":"Date","value":"Mon, 22 Sep 2025 05:14:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"ApiKey retrieved successfully\",\n    \"data\": [\n        {\n            \"_id\": \"68d0da811cbbdfb5c0e73916\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"key\": \"7eaf06ea-9dc6-4598-ad43-73a7939c22ce\",\n            \"name\": \"baru banget\",\n            \"revoked\": false,\n            \"allowedIps\": [\n                \"192.168.1.1\",\n                \"10.254.254.11\",\n                \"10.10.10.1\"\n            ],\n            \"allowedFeatures\": [\n                \"sms_gateway\"\n            ],\n            \"scopes\": [\n                \"bulk_sms\"\n            ],\n            \"createdAt\": \"2025-09-22 12:11:29\",\n            \"__v\": 1\n        },\n        {\n            \"_id\": \"68d0da231cbbdfb5c0e73910\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"key\": \"ad7eb465-a4be-4abf-80b6-70495f49a7a5\",\n            \"name\": \"test\",\n            \"revoked\": false,\n            \"allowedIps\": [],\n            \"allowedFeatures\": [],\n            \"scopes\": [],\n            \"createdAt\": \"2025-09-22 12:09:55\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68d0cdb51cbbdfb5c0e73806\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"key\": \"b9776c50-da2b-4592-b395-c88d129a57a1\",\n            \"name\": \"new api key\",\n            \"revoked\": true,\n            \"allowedIps\": [\n                \"103.100.1.1\"\n            ],\n            \"allowedFeatures\": [\n                \"email_gateway\",\n                \"sms_gateway\",\n                \"whatsapp_gateway\"\n            ],\n            \"scopes\": [\n                \"send_email\",\n                \"send_sms\",\n                \"send_whatsapp\"\n            ],\n            \"createdAt\": \"2025-09-22 11:16:53\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68cd0e31f160643c7abdf461\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"key\": \"c9f44c15-2292-4f52-b15d-8e941a62ef6f\",\n            \"name\": \"testing all\",\n            \"revoked\": false,\n            \"allowedIps\": [\n                \"testing all\"\n            ],\n            \"allowedFeatures\": [\n                \"sms_gateway\",\n                \"whatsapp_gateway\",\n                \"email_gateway\"\n            ],\n            \"scopes\": [\n                \"send_sms\",\n                \"bulk_sms\",\n                \"manage_template\",\n                \"view_reports\",\n                \"send_whatsapp\",\n                \"whatsapp_media\",\n                \"whatsapp_template\",\n                \"view_reports\",\n                \"send_email\",\n                \"manage_template\",\n                \"view_reports\",\n                \"email_tracking\"\n            ],\n            \"createdAt\": \"2025-09-19 15:02:57\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68cd0e15f160643c7abdf45b\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"key\": \"5b197a6f-1c47-4207-953b-bfcfb2aa46fd\",\n            \"name\": \"testing all\",\n            \"revoked\": false,\n            \"allowedIps\": [\n                \"testing all\"\n            ],\n            \"allowedFeatures\": [\n                \"sms_gateway\",\n                \"whatsapp_gateway\",\n                \"email_gateway\"\n            ],\n            \"scopes\": [\n                \"send_sms\",\n                \"bulk_sms\",\n                \"manage_template\",\n                \"view_reports\",\n                \"send_whatsapp\",\n                \"whatsapp_media\",\n                \"whatsapp_template\",\n                \"view_reports\",\n                \"send_email\",\n                \"manage_template\",\n                \"view_reports\",\n                \"email_tracking\"\n            ],\n            \"createdAt\": \"2025-09-19 15:02:29\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68cd02eb143bb61a4061f87b\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"key\": \"2c87d743-7228-4756-aa5b-0ce7569ac8d2\",\n            \"name\": \"Key untuk All Gateway\",\n            \"revoked\": false,\n            \"allowedIps\": [\n                \"103.10.12.25\",\n                \"192.168.1.100\"\n            ],\n            \"allowedFeatures\": [\n                \"email_gateway\",\n                \"sms_gateway\",\n                \"whatsapp_gateway\"\n            ],\n            \"scopes\": [\n                \"send_email\",\n                \"email_tracking\",\n                \"manage_template\",\n                \"view_reports\",\n                \"send_sms\",\n                \"bulk_sms\",\n                \"manage_template\",\n                \"view_reports\",\n                \"send_whatsapp\",\n                \"whatsapp_media\",\n                \"whatsapp_template\",\n                \"view_reports\"\n            ],\n            \"createdAt\": \"2025-09-19 14:14:51\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68cd02da143bb61a4061f877\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"key\": \"bb5a6a24-9b0d-4992-92c6-b9b486b2a0a6\",\n            \"name\": \"Key untuk Email Gateway\",\n            \"revoked\": false,\n            \"allowedIps\": [\n                \"103.10.12.25\",\n                \"192.168.1.100\"\n            ],\n            \"allowedFeatures\": [\n                \"email_gateway\"\n            ],\n            \"scopes\": [\n                \"send_email\",\n                \"email_tracking\",\n                \"manage_template\",\n                \"view_reports\"\n            ],\n            \"createdAt\": \"2025-09-19 14:14:34\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68cd02c6143bb61a4061f873\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"key\": \"047f7d00-5ad0-40e1-8121-c3ed170e18e8\",\n            \"name\": \"Key untuk SMS Gateway\",\n            \"revoked\": false,\n            \"allowedIps\": [\n                \"103.10.12.25\",\n                \"192.168.1.100\"\n            ],\n            \"allowedFeatures\": [\n                \"sms_gateway\"\n            ],\n            \"scopes\": [\n                \"send_sms\",\n                \"bulk_sms\",\n                \"manage_template\",\n                \"view_reports\"\n            ],\n            \"createdAt\": \"2025-09-19 14:14:14\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68cd0284143bb61a4061f86f\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"key\": \"ead6f8fd-58e4-471e-9d9e-5c646e26363c\",\n            \"name\": \"Key untuk WhatsApp Gateway\",\n            \"revoked\": false,\n            \"allowedIps\": [\n                \"103.10.12.25\",\n                \"192.168.1.100\"\n            ],\n            \"allowedFeatures\": [\n                \"whatsapp_gateway\"\n            ],\n            \"scopes\": [\n                \"send_whatsapp\",\n                \"whatsapp_media\",\n                \"whatsapp_template\",\n                \"view_reports\"\n            ],\n            \"createdAt\": \"2025-09-19 14:13:08\",\n            \"__v\": 0\n        }\n    ],\n    \"page\": 1,\n    \"limit\": 25,\n    \"totalPages\": 1,\n    \"totalCount\": 9\n}"}],"_postman_id":"f40176c4-6001-4647-9643-487d8dd4e204"},{"name":"Delete API Key","id":"13590746-df72-4b8f-a9af-5aca1354e1ec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/api-keys/{{api_key_id}}","description":"<p>Delete API key</p>\n<p><strong>Authentication Required:</strong> Authorization</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["api-keys","{{api_key_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"4e274c7a-2ad7-48be-bc0e-198604ed11f6","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"}],"url":"http://localhost:3000/api-keys/{{api_key_id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-kZ1gfrs7YdmFcZKWn6GadnbBE8U\""},{"key":"Date","value":"Fri, 19 Sep 2025 06:28:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Delete ApiKey Successfully\",\n    \"data\": null\n}"}],"_postman_id":"13590746-df72-4b8f-a9af-5aca1354e1ec"},{"name":"Revoke API Key","id":"892534ee-9869-4e96-9a73-b15e45f9a2e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"url":"http://localhost:3000/api-keys/{{api_key_id}}/revoke","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["api-keys","{{api_key_id}}","revoke"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"d89fff94-19d0-4d50-8a4c-64ac0f773724","name":"Error Not Found","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"url":"http://localhost:3000/api-keys/{{api_key_id}}/revoke"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-Ux995K6yzzReLZ0PrgMljbKsncg\""},{"key":"Date","value":"Fri, 19 Sep 2025 06:29:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"ApiKey not found\"\n}"},{"id":"3f7fe960-f60a-4b39-95fa-46193ea4f6f4","name":"Success","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"url":"http://localhost:3000/api-keys/{{api_key_id}}/revoke"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"579"},{"key":"ETag","value":"W/\"243-Ol10zx0hha1zf6jLem5/370U1UI\""},{"key":"Date","value":"Fri, 19 Sep 2025 06:30:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"ApiKey revoked successfully\",\n    \"data\": {\n        \"_id\": \"68ccf81ed35fe5bbfbe0ec92\",\n        \"userId\": \"68974aba4d562479dc462421\",\n        \"key\": \"eec03eeb-cc5d-4e13-a95e-d6ec6a16f985\",\n        \"label\": \"Key All Feature\",\n        \"revoked\": true,\n        \"allowedIps\": [\n            \"103.10.12.25\",\n            \"192.168.1.100\"\n        ],\n        \"allowedFeatures\": [\n            \"email_gateway\",\n            \"sms_gateway\",\n            \"whatsapp_gateway\"\n        ],\n        \"scopes\": [\n            \"send_email\",\n            \"email_tracking\",\n            \"manage_template\",\n            \"view_reports\",\n            \"send_sms\",\n            \"bulk_sms\",\n            \"manage_template\",\n            \"view_reports\",\n            \"send_whatsapp\",\n            \"whatsapp_media\",\n            \"whatsapp_template\",\n            \"view_reports\"\n        ],\n        \"createdAt\": \"2025-09-19T06:28:46.682Z\",\n        \"__v\": 0\n    }\n}"},{"id":"01603be0-37d2-4fd9-90fc-465420e4a896","name":"Error Already Revoke","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here"},{"key":"Content-Type","value":"application/json"}],"url":"http://localhost:3000/api-keys/{{api_key_id}}/revoke"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-An/o9ItUViX7m5FJs3skVK3v3P8\""},{"key":"Date","value":"Fri, 19 Sep 2025 06:30:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"ApiKey already revoked\"\n}"}],"_postman_id":"892534ee-9869-4e96-9a73-b15e45f9a2e2"},{"name":"Get By ID","id":"b0073d71-579d-49c2-a5d0-64e649e37c21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api-keys/{{api_key_id}}","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["api-keys","{{api_key_id}}"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"2476b965-398b-471a-835f-ba6922947ad2","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api-keys/{{api_key_id}}"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"582"},{"key":"ETag","value":"W/\"246-2H+y00C4A8SlqHvrb45LOXKoZpM\""},{"key":"Date","value":"Fri, 19 Sep 2025 06:56:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"ApiKey retrieved successfully.\",\n    \"data\": {\n        \"_id\": \"68ccf81ed35fe5bbfbe0ec92\",\n        \"userId\": \"68974aba4d562479dc462421\",\n        \"key\": \"eec03eeb-cc5d-4e13-a95e-d6ec6a16f985\",\n        \"label\": \"Key All Feature\",\n        \"revoked\": true,\n        \"allowedIps\": [\n            \"103.10.12.25\",\n            \"192.168.1.100\"\n        ],\n        \"allowedFeatures\": [\n            \"email_gateway\",\n            \"sms_gateway\",\n            \"whatsapp_gateway\"\n        ],\n        \"scopes\": [\n            \"send_email\",\n            \"email_tracking\",\n            \"manage_template\",\n            \"view_reports\",\n            \"send_sms\",\n            \"bulk_sms\",\n            \"manage_template\",\n            \"view_reports\",\n            \"send_whatsapp\",\n            \"whatsapp_media\",\n            \"whatsapp_template\",\n            \"view_reports\"\n        ],\n        \"createdAt\": \"2025-09-19T06:28:46.682Z\",\n        \"__v\": 0\n    }\n}"}],"_postman_id":"b0073d71-579d-49c2-a5d0-64e649e37c21"}],"id":"145761d1-e0dc-4448-bf6d-1a7bf1a1d9eb","_postman_id":"145761d1-e0dc-4448-bf6d-1a7bf1a1d9eb","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}}},{"name":"Email Whitelist","item":[{"name":"Get All Whitelist","id":"55e8a41f-6bad-41e6-9ccd-6dff2736fc32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"your_api_key_here","type":"text"}],"url":"http://localhost:3000/whitelists?limit=10&page=1&sortBy=createdAt&sortOrder=desc&search=tata","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["whitelists"],"host":["http://localhost:3000"],"query":[{"description":{"content":"<p>default = 10</p>\n","type":"text/plain"},"key":"limit","value":"10"},{"key":"page","value":"1"},{"description":{"content":"<p>default = createdAt</p>\n","type":"text/plain"},"key":"sortBy","value":"createdAt"},{"description":{"content":"<p>default = asc</p>\n","type":"text/plain"},"key":"sortOrder","value":"desc"},{"description":{"content":"<p>searching by (email | reason)</p>\n","type":"text/plain"},"key":"search","value":"tata"}],"variable":[]}},"response":[{"id":"725b28c7-ac4c-40e4-aad9-8f5608829db3","name":"Success","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_api_key_here","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"your_api_key_here","type":"text"}],"url":{"raw":"http://localhost:3000/whitelists?limit=10&page=1&sortBy=createdAt&sortOrder=desc&search=tata","host":["http://localhost:3000"],"path":["whitelists"],"query":[{"key":"limit","value":"10","description":"default = 10"},{"key":"page","value":"1"},{"key":"sortBy","value":"createdAt","description":"default = createdAt"},{"key":"sortOrder","value":"desc","description":"default = asc"},{"key":"search","value":"tata","description":"searching by (email | reason)"}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1002"},{"key":"ETag","value":"W/\"3ea-/4FTMM5G1fC0Zn4Z8GpXi5Rdq7k\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:06:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": [\n        {\n            \"_id\": \"68d49cbc8cac5e5643d1e90d\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"email\": \"tataredhaalfath13@gmail.com\",\n            \"reason\": \"Unreasonable\",\n            \"addedBy\": \"tataredhaalfath13@gmail.com\",\n            \"isActive\": true,\n            \"createdAt\": \"2025-09-25T01:37:00.328Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68d3b74b9e9c19ea37bbb52e\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"email\": \"tataredhaal13@gmail.com\",\n            \"reason\": \"Unreasonable\",\n            \"addedBy\": \"tataredhaalfath13@gmail.com\",\n            \"isActive\": true,\n            \"createdAt\": \"2025-09-24T09:18:03.726Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68d39f2d9e9c19ea37bbb4cc\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"email\": \"tataredhaalf@gmail.com\",\n            \"reason\": \"asdfasdfas\",\n            \"addedBy\": \"tataredhaalfath13@gmail.com\",\n            \"isActive\": true,\n            \"createdAt\": \"2025-09-24T07:35:09.423Z\",\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"68d39edc512d9fa3ef271f8f\",\n            \"userId\": \"68974aba4d562479dc462421\",\n            \"email\": \"tataredha@gmail.com\",\n            \"reason\": \"test\",\n            \"addedBy\": \"tataredhaalfath13@gmail.com\",\n            \"isActive\": true,\n            \"createdAt\": \"2025-09-24T07:33:48.881Z\",\n            \"__v\": 0\n        }\n    ],\n    \"pagination\": {\n        \"total\": 4,\n        \"page\": 1,\n        \"limit\": 10,\n        \"totalPages\": 1\n    }\n}"},{"id":"e8d38fdb-153b-4775-97b6-1b61f3d96c4e","name":"No token | session","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer your_jwt_token_here","disabled":true},{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"your_api_key_here","type":"text","disabled":true}],"url":{"raw":"http://localhost:3000/whitelists?limit=10&page=1&sortBy=createdAt&sortOrder=desc&search=tata","host":["http://localhost:3000"],"path":["whitelists"],"query":[{"key":"limit","value":"10","description":"default = 10"},{"key":"page","value":"1"},{"key":"sortBy","value":"createdAt","description":"default = createdAt"},{"key":"sortOrder","value":"desc","description":"default = asc"},{"key":"search","value":"tata","description":"searching by (email | reason)"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-4D/brUYUx/q6uXQWvrvrN1CkECg\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:13:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"No token, authorization denied.\"\n}"},{"id":"5107d879-5f80-4cf4-b003-884129658a2c","name":"Invalid token","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"your_api_key_here","type":"text"}],"url":{"raw":"http://localhost:3000/whitelists?limit=10&page=1&sortBy=createdAt&sortOrder=desc&search=tata","host":["http://localhost:3000"],"path":["whitelists"],"query":[{"key":"limit","value":"10","description":"default = 10"},{"key":"page","value":"1"},{"key":"sortBy","value":"createdAt","description":"default = createdAt"},{"key":"sortOrder","value":"desc","description":"default = asc"},{"key":"search","value":"tata","description":"searching by (email | reason)"}]}},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-4mxsCbyfSW5I+LNiAaQgNW3F5IE\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:26:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Token is not valid.\"\n}"}],"_postman_id":"55e8a41f-6bad-41e6-9ccd-6dff2736fc32"},{"name":"Get Whitelist","id":"dc87b0d0-bd52-4da5-a38e-b4faa493e0e5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"x-api-key","value":"your_api_key_here","type":"text"}],"url":"http://localhost:3000/whitelists/68d49cbc8cac5e5643d1e90d","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["whitelists","68d49cbc8cac5e5643d1e90d"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"dc87b0d0-bd52-4da5-a38e-b4faa493e0e5"},{"name":"Create Whitelist","id":"5aa9bb4d-e2b4-4e6f-b96b-e91e25eddccc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budionosiregar@kapal.lawd\",\n    \"reason\" : \"cita cita saya kapal lawd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["whitelists"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"72acced0-c29f-425f-acff-366a2f933613","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budionosiregar@kapal.lawd\",\n    \"reason\" : \"cita cita saya kapal lawd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"341"},{"key":"ETag","value":"W/\"155-dHs4DFOauffyn/5ePm2S9SPOYss\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:21:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"Successfully added budionosiregar@kapal.lawd to whitelist!\",\n    \"data\": {\n        \"userId\": \"68974aba4d562479dc462421\",\n        \"email\": \"budionosiregar@kapal.lawd\",\n        \"reason\": \"cita cita saya kapal lawd\",\n        \"addedBy\": \"tataredhaalfath13@gmail.com\",\n        \"isActive\": true,\n        \"_id\": \"68d4df5a9854d3bba03214b7\",\n        \"createdAt\": \"2025-09-25T06:21:14.665Z\",\n        \"__v\": 0\n    }\n}"},{"id":"23744d7d-0c1b-42a2-bfbe-01e92e56067e","name":"No token | session","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budionosiregar@kapal.lawd\",\n    \"reason\" : \"cita cita saya kapal lawd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-4D/brUYUx/q6uXQWvrvrN1CkECg\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:23:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"No token, authorization denied.\"\n}"},{"id":"19f10e85-8bf3-427c-93e5-8c44299cf65f","name":"Invalid token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budionosiregar@kapal.lawd\",\n    \"reason\" : \"cita cita saya kapal lawd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-4mxsCbyfSW5I+LNiAaQgNW3F5IE\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:24:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Token is not valid.\"\n}"},{"id":"cd46787d-4870-4034-9943-38636ca69174","name":"Duplicate","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budionosiregar@kapal.lawd\",\n    \"reason\" : \"cita cita saya kapal lawd\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-V0HjoCsqFVp9mO3eXsuJ602s64g\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:25:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Email already exists\"\n}"},{"id":"5b3e0c2e-9c07-4d63-97b1-901dd8156a2b","name":"Invalid Email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"@kapal.lawd\",\n    \"reason\" : \"\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"44"},{"key":"ETag","value":"W/\"2c-u2l7yaQPIOWiohiZuz+UK3x7laU\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:27:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Invalid email!\"\n}"}],"_postman_id":"5aa9bb4d-e2b4-4e6f-b96b-e91e25eddccc"},{"name":"Download Example Csv","id":"a183e653-372a-4ba1-a812-b02c3109fa96","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/whitelists/import-csv/example","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["whitelists","import-csv","example"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"dca98112-5a79-493a-a962-b9d0ab01305c","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/whitelists/import-csv/example"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"text/csv; charset=utf-8"},{"key":"Content-Disposition","value":"attachment; filename=\"example_whitelist.csv\""},{"key":"Content-Length","value":"99"},{"key":"ETag","value":"W/\"63-vzRxkeGJjkSaLEwPpHShKwI3M1M\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:56:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"email,reason\nuser1@example.com,Testing purpose\nuser2@example.com,Partner request\nuser3@example.com,"}],"_postman_id":"a183e653-372a-4ba1-a812-b02c3109fa96"},{"name":"Import Csv & Validate","id":"0ebbe400-17b6-4296-b2c0-240326d5d4c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","uuid":"5bc79e81-0272-4942-bee8-598193b1a04e","src":"/Users/user/Downloads/example_whitelist.csv"}]},"url":"http://localhost:3000/whitelists/import-csv/validate","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["whitelists","import-csv","validate"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"73f6a91e-1111-4d99-8510-cfd85c2b358d","name":"Has error","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","uuid":"5bc79e81-0272-4942-bee8-598193b1a04e","src":"/Users/user/Downloads/example_whitelist.csv"}],"options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists/import-csv/validate"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"614"},{"key":"ETag","value":"W/\"266-GPtsJlsMvMeGplZXhu8MZ0/bdQg\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:46:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"hasError\": true,\n    \"totalRows\": 3,\n    \"errorSummary\": {\n        \"invalidEmail\": 0,\n        \"duplicateInFile\": 0,\n        \"duplicateInDb\": 3,\n        \"invalidReason\": 0\n    },\n    \"data\": [\n        {\n            \"email\": \"user1@example.com\",\n            \"reason\": \"Testing purpose\",\n            \"rowNumber\": 1,\n            \"error\": true,\n            \"errorMessage\": \"Duplicate email in database\",\n            \"errorType\": \"duplicateInDb\"\n        },\n        {\n            \"email\": \"user2@example.com\",\n            \"reason\": \"Partner request\",\n            \"rowNumber\": 2,\n            \"error\": true,\n            \"errorMessage\": \"Duplicate email in database\",\n            \"errorType\": \"duplicateInDb\"\n        },\n        {\n            \"email\": \"user3@example.com\",\n            \"reason\": \"Unreasonable\",\n            \"rowNumber\": 3,\n            \"error\": true,\n            \"errorMessage\": \"Duplicate email in database\",\n            \"errorType\": \"duplicateInDb\"\n        }\n    ]\n}"},{"id":"6b2f15cd-18d3-4257-8742-1895f789ff4a","name":"Valid","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","uuid":"5bc79e81-0272-4942-bee8-598193b1a04e","src":"/Users/user/Downloads/example_whitelist.csv"}],"options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists/import-csv/validate"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"503"},{"key":"ETag","value":"W/\"1f7-k2dRq+MhTCFt5hYuczkG2sROC1c\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:50:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"hasError\": false,\n    \"totalRows\": 3,\n    \"errorSummary\": {\n        \"invalidEmail\": 0,\n        \"duplicateInFile\": 0,\n        \"duplicateInDb\": 0,\n        \"invalidReason\": 0\n    },\n    \"data\": [\n        {\n            \"email\": \"user1@example.com\",\n            \"reason\": \"Testing purpose\",\n            \"rowNumber\": 1,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        },\n        {\n            \"email\": \"user2@example.com\",\n            \"reason\": \"Partner request\",\n            \"rowNumber\": 2,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        },\n        {\n            \"email\": \"user3@example.com\",\n            \"reason\": \"Unreasonable\",\n            \"rowNumber\": 3,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        }\n    ]\n}"}],"_postman_id":"0ebbe400-17b6-4296-b2c0-240326d5d4c0"},{"name":"Bulk Insert from Validated Csv Data","id":"7d8debc3-d9d1-42c4-a016-62b49c94559d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"success\": true,\n    \"hasError\": false,\n    \"totalRows\": 3,\n    \"errorSummary\": {\n        \"invalidEmail\": 0,\n        \"duplicateInFile\": 0,\n        \"duplicateInDb\": 0,\n        \"invalidReason\": 0\n    },\n    \"data\": [\n        {\n            \"email\": \"user1@example.com\",\n            \"reason\": \"Testing purpose\",\n            \"rowNumber\": 1,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        },\n        {\n            \"email\": \"user2@example.com\",\n            \"reason\": \"Partner request\",\n            \"rowNumber\": 2,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        },\n        {\n            \"email\": \"user3@example.com\",\n            \"reason\": \"Unreasonable\",\n            \"rowNumber\": 3,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists/import-csv/upload","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["whitelists","import-csv","upload"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"56150142-f2bc-4a92-948f-a4d4f1bebcfd","name":"Success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"success\": true,\n    \"hasError\": false,\n    \"totalRows\": 3,\n    \"errorSummary\": {\n        \"invalidEmail\": 0,\n        \"duplicateInFile\": 0,\n        \"duplicateInDb\": 0,\n        \"invalidReason\": 0\n    },\n    \"data\": [\n        {\n            \"email\": \"user1@example.com\",\n            \"reason\": \"Testing purpose\",\n            \"rowNumber\": 1,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        },\n        {\n            \"email\": \"user2@example.com\",\n            \"reason\": \"Partner request\",\n            \"rowNumber\": 2,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        },\n        {\n            \"email\": \"user3@example.com\",\n            \"reason\": \"Unreasonable\",\n            \"rowNumber\": 3,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists/import-csv/upload"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"64"},{"key":"ETag","value":"W/\"40-MiFBhmMjNDmHgfTr+m4AD2ejfec\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:58:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"insertedCount\": 3,\n    \"message\": \"3 emails inserted\"\n}"},{"id":"d9843c39-4c3f-4057-968a-d76f637bd094","name":"Duplicate","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"success\": true,\n    \"hasError\": false,\n    \"totalRows\": 3,\n    \"errorSummary\": {\n        \"invalidEmail\": 0,\n        \"duplicateInFile\": 0,\n        \"duplicateInDb\": 0,\n        \"invalidReason\": 0\n    },\n    \"data\": [\n        {\n            \"email\": \"user1@example.com\",\n            \"reason\": \"Testing purpose\",\n            \"rowNumber\": 1,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        },\n        {\n            \"email\": \"user2@example.com\",\n            \"reason\": \"Partner request\",\n            \"rowNumber\": 2,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        },\n        {\n            \"email\": \"user3@example.com\",\n            \"reason\": \"Unreasonable\",\n            \"rowNumber\": 3,\n            \"error\": false,\n            \"errorMessage\": \"\",\n            \"errorType\": null\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists/import-csv/upload"},"status":"Unprocessable Entity","code":422,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-NizU5mhFdZVZYDosc+41ulYmnuA\""},{"key":"Date","value":"Thu, 25 Sep 2025 07:22:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Some email already exists, please re-validate\"\n}"}],"_postman_id":"7d8debc3-d9d1-42c4-a016-62b49c94559d"},{"name":"Update Whitelist","id":"ef11aaec-8e4a-4593-a0ea-441cfed3d3e9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budiiiii@budi.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists/68d49cbc8cac5e5643d1e90d","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["whitelists","68d49cbc8cac5e5643d1e90d"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"e388b74e-e8f1-4db2-9a2f-d863fd882519","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budiiiii@budi.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists/68d49cbc8cac5e5643d1e90d"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"249"},{"key":"ETag","value":"W/\"f9-W0vgRKtSu//0KvmbSgFJz7I7X+4\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:28:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"_id\": \"68d49cbc8cac5e5643d1e90d\",\n        \"userId\": \"68974aba4d562479dc462421\",\n        \"email\": \"budiiiii@budi.com\",\n        \"reason\": \"Unreasonable\",\n        \"addedBy\": \"tataredhaalfath13@gmail.com\",\n        \"isActive\": true,\n        \"createdAt\": \"2025-09-25T01:37:00.328Z\",\n        \"__v\": 0\n    }\n}"},{"id":"edd63abe-d876-493b-8259-cf24986f30ed","name":"No token | session","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budiiiii@budi.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists/68d49cbc8cac5e5643d1e90d"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"61"},{"key":"ETag","value":"W/\"3d-4D/brUYUx/q6uXQWvrvrN1CkECg\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:29:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"No token, authorization denied.\"\n}"},{"id":"a1227797-683e-4d3a-86c7-a961ae135750","name":"Invalid token","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budiiiii@budi.com\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/whitelists/68d49cbc8cac5e5643d1e90d"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-4mxsCbyfSW5I+LNiAaQgNW3F5IE\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:29:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Token is not valid.\"\n}"}],"_postman_id":"ef11aaec-8e4a-4593-a0ea-441cfed3d3e9"},{"name":"Toggle Active Email Whitelist","id":"e87c69dc-9a6b-4d7d-8b7c-dd128b7442c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://localhost:3000/whitelists/68d49cbc8cac5e5643d1e90d/toggle-active","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["whitelists","68d49cbc8cac5e5643d1e90d","toggle-active"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[],"_postman_id":"e87c69dc-9a6b-4d7d-8b7c-dd128b7442c2"},{"name":"Delete Whitelist","id":"b3f26520-28ac-4a53-9b9a-5c9e202b6bd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"email\" : \"budiiiii@budi.com\"\n}"},"url":"http://localhost:3000/whitelists/68d49cbc8cac5e5643d1e90d","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}},"urlObject":{"path":["whitelists","68d49cbc8cac5e5643d1e90d"],"host":["http://localhost:3000"],"query":[],"variable":[]}},"response":[{"id":"93b1190b-53ab-4b03-b7ec-b89361a73106","name":"Success No Content","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/whitelists/68d49cbc8cac5e5643d1e90d"},"status":"No Content","code":204,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"ETag","value":"W/\"34-4Flb/z3G/rsCpVs8eqS5fHNBqqI\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:53:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":null},{"id":"e08980cd-09ff-4ffb-96f9-15ac4ccf0680","name":"Not Found","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3000/whitelists/68d49cbc8cac5e5643d1e90d"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":[{"key":"X-Powered-By","value":"Express"},{"key":"Vary","value":"Origin"},{"key":"Access-Control-Allow-Credentials","value":"true"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-VB09ZLHt6qtBrJscQi79y+vvqQI\""},{"key":"Date","value":"Thu, 25 Sep 2025 06:53:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Email whitelist not found\"\n}"}],"_postman_id":"b3f26520-28ac-4a53-9b9a-5c9e202b6bd9"}],"id":"6150f6e3-d2ac-4baf-a8ca-c796c93ac6a8","_postman_id":"6150f6e3-d2ac-4baf-a8ca-c796c93ac6a8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]},"isInherited":true,"source":{"_postman_id":"d6772701-7019-41e1-acb8-9933f6bba4f1","id":"d6772701-7019-41e1-acb8-9933f6bba4f1","name":"Email Gateway API Public","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"your_jwt_token_here"}]}},"event":[{"listen":"prerequest","script":{"id":"ce936699-fe42-49bc-8e56-1b48dcb0f3e6","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"bddb6b76-5280-4fc8-9521-56ead2253ed3","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"base_url","value":"http://localhost:3000"},{"key":"api_key","value":"your_api_key_here"},{"key":"jwt_token","value":"your_jwt_token_here"}]}