{
  "info": {
    "name": "Outlook Reader API v1",
    "description": "Baca OTP & inbox Outlook/Hotmail. Isi variable apiKey dan baseUrl sebelum dipakai.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "http://localhost:3010" },
    { "key": "apiKey", "value": "rdr_xxxxxxxxxxxx" },
    { "key": "credentials", "value": "user@outlook.com|pass|refresh_token|client_id" }
  ],
  "item": [
    {
      "name": "Baca OTP",
      "request": {
        "method": "POST",
        "header": [
          { "key": "X-API-Key", "value": "{{apiKey}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\"credentials\":\"{{credentials}}\",\"top\":20}"
        },
        "url": { "raw": "{{baseUrl}}/api/v1/otp", "host": ["{{baseUrl}}"], "path": ["api", "v1", "otp"] }
      }
    },
    {
      "name": "Baca OTP Bulk (maks 25)",
      "request": {
        "method": "POST",
        "header": [
          { "key": "X-API-Key", "value": "{{apiKey}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\"credentials\":\"user1@outlook.com|pass|rt1|cid\\nuser2@outlook.com|pass|rt2|cid\",\"top\":20}"
        },
        "url": { "raw": "{{baseUrl}}/api/v1/otp/bulk", "host": ["{{baseUrl}}"], "path": ["api", "v1", "otp", "bulk"] }
      }
    },
    {
      "name": "Cek Akun",
      "request": {
        "method": "POST",
        "header": [
          { "key": "X-API-Key", "value": "{{apiKey}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": { "mode": "raw", "raw": "{\"credentials\":\"{{credentials}}\"}" },
        "url": { "raw": "{{baseUrl}}/api/v1/check", "host": ["{{baseUrl}}"], "path": ["api", "v1", "check"] }
      }
    },
    {
      "name": "Renew Token",
      "request": {
        "method": "POST",
        "header": [
          { "key": "X-API-Key", "value": "{{apiKey}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": { "mode": "raw", "raw": "{\"credentials\":\"{{credentials}}\"}" },
        "url": { "raw": "{{baseUrl}}/api/v1/renew", "host": ["{{baseUrl}}"], "path": ["api", "v1", "renew"] }
      }
    },
    {
      "name": "Whoami",
      "request": {
        "method": "GET",
        "header": [{ "key": "X-API-Key", "value": "{{apiKey}}" }],
        "url": { "raw": "{{baseUrl}}/api/v1/whoami", "host": ["{{baseUrl}}"], "path": ["api", "v1", "whoami"] }
      }
    }
  ]
}
