{
  "info": {
    "_postman_id": "640b1916-065a-51d0-9c18-a1cc311a015a",
    "name": "Mailaki API",
    "description": "High-performance transactional email API with first-class inboxes for AI agents.\nMailaki is a Mailgun-equivalent with persistent inboxes, threading, drafts,\npods (sub-tenants), real-time WebSocket streaming, and allow/block lists.\n\nGenerated from the OpenAPI spec (https://mailaki.com/v1/openapi.yaml) by scripts/generate-postman-collection.py. Set the `apiKey` collection variable to your API key. Not included (WebSocket): GET /stream.",
    "version": "0.1.0",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Referral",
      "description": "Referral link and counts for the partner program",
      "item": [
        {
          "name": "Get my referral link and counts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/referral",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "referral"
              ]
            },
            "description": "The account's referral code and link (null until created), counts of the accounts that signed up through it, and the commission rate and ledger totals. Counts and totals only: referred accounts are never identified. Commission terms are agreed with Mailaki directly."
          },
          "response": []
        },
        {
          "name": "Create my referral code",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/referral/code",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "referral",
                "code"
              ]
            },
            "description": "Creates the account's referral code if it has none (needs the `admin` scope). Calling it again returns the same code."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Inboxes",
      "description": "Create and manage email inboxes",
      "item": [
        {
          "name": "List inboxes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "List inboxes"
          },
          "response": []
        },
        {
          "name": "Create inbox",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inboxes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes"
              ]
            },
            "description": "Create inbox",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"address\": \"support@example.com\",\n  \"display_name\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get inbox",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get inbox"
          },
          "response": []
        },
        {
          "name": "Update inbox",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Update inbox",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"display_name\": \"string\",\n  \"active\": true,\n  \"save_sent_copies\": true,\n  \"trash_retention_days\": 0\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete inbox",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete inbox"
          },
          "response": []
        },
        {
          "name": "Get mailbox password status",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/password",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "password"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Whether the inbox has a mailbox password, when it was set and when it\nwas last used. Never returns the password. Needs the `admin` scope.\n\nA mailbox password lets a mail app log in as this one address (user\nname = the address) on SMTP submission and IMAP. It opens that\nmailbox only and is not accepted by this API. IMAP is built but not\navailable yet, and the SMTP servers accept mailbox passwords only\nafter an update that has not been rolled out yet."
          },
          "response": []
        },
        {
          "name": "Set or rotate the mailbox password",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/password",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "password"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "With an empty body or `{}` a strong password is generated and returned\nonce in `password`; it cannot be read again. With `password` set, that\npassword is used (12 to 128 characters, no control characters, not one\nrepeated character) and is not echoed. Either way the previous\npassword stops working for new logins at once. Stored as an argon2id\nhash. Needs the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"password\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Remove the mailbox password",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/password",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "password"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "The inbox can then only be opened with an API key again. Needs the `admin` scope."
          },
          "response": []
        },
        {
          "name": "List mailbox folders",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/folders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "folders"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "INBOX, the special-use folders (Sent, Drafts, Trash, Junk, Archive;\ncreated by this call if the inbox does not have them yet) and the\nfolders the user created, each with its message and unread counts.\nThese are the folders a mail app sees over IMAP. IMAP is built but\nnot available yet."
          },
          "response": []
        },
        {
          "name": "Create a mailbox folder",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/folders",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "folders"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Creates a user folder. `/` separates levels, and the levels above are\ncreated too (`Projects/2026` also makes `Projects`). Names are at most\n255 characters, unique without regard to case, and cannot contain\ncontrol characters, `*` or `%`. Needs the `inboxes` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Projects/2026\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Rename a mailbox folder",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/folders/:folder_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "folders",
                ":folder_id"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "folder_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Renames a user folder. `name` is the full new name: the folders below\nthe renamed one move with it (`Projects` to `Work` turns\n`Projects/2026` into `Work/2026`), and a name with other levels moves\nthe folder there, creating the levels that do not exist. Folder ids,\nmessages and their read state are unchanged. The rules are those of\nIMAP `RENAME`: the special-use folders cannot be renamed, and the new\nname follows the rules of create and must not be in use. Needs the\n`inboxes` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Work\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete a mailbox folder",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/folders/:folder_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "folders",
                ":folder_id"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "folder_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Deletes a user folder and every message in it. This cannot be undone.\nThe special-use folders, and a folder that has folders below it, are\nrefused with `400`. Needs the `inboxes` scope."
          },
          "response": []
        },
        {
          "name": "List inbox messages",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "messages"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "folder",
                  "value": "inbox",
                  "description": "Which mailbox folder: `inbox` (the default), `sent`, `drafts`, `trash`, `junk`, `archive`, the id of a folder, or `all` for every folder. Anything else is `400`",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "The messages of one folder of the inbox, newest first. Without `folder`, INBOX."
          },
          "response": []
        },
        {
          "name": "Get inbox message",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/messages/:message_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "messages",
                ":message_id"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "message_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get inbox message"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Threads",
      "description": "Conversation threads within inboxes",
      "item": [
        {
          "name": "List threads in inbox",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/threads",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "threads"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "List threads in inbox"
          },
          "response": []
        },
        {
          "name": "Get thread",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/threads/:thread_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "threads",
                ":thread_id"
              ],
              "variable": [
                {
                  "key": "thread_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get thread"
          },
          "response": []
        },
        {
          "name": "List thread messages",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/threads/:thread_id/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "threads",
                ":thread_id",
                "messages"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "thread_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "List thread messages"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Drafts",
      "description": "Compose and send draft messages",
      "item": [
        {
          "name": "List drafts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/drafts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "drafts"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "List drafts"
          },
          "response": []
        },
        {
          "name": "Create draft",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/drafts",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "drafts"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Create draft",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"to\": [\n    \"user@example.org\"\n  ],\n  \"subject\": \"Hello\",\n  \"body_text\": \"Hello from Mailaki\",\n  \"body_html\": \"<p>Hello from Mailaki</p>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get draft",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/drafts/:draft_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "drafts",
                ":draft_id"
              ],
              "variable": [
                {
                  "key": "draft_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get draft"
          },
          "response": []
        },
        {
          "name": "Update draft",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/drafts/:draft_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "drafts",
                ":draft_id"
              ],
              "variable": [
                {
                  "key": "draft_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Update draft",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"to\": [\n    \"user@example.org\"\n  ],\n  \"subject\": \"Hello\",\n  \"body_text\": \"Hello from Mailaki\",\n  \"body_html\": \"<p>Hello from Mailaki</p>\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete draft",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/drafts/:draft_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "drafts",
                ":draft_id"
              ],
              "variable": [
                {
                  "key": "draft_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete draft"
          },
          "response": []
        },
        {
          "name": "Send draft",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/drafts/:draft_id/send",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "drafts",
                ":draft_id",
                "send"
              ],
              "variable": [
                {
                  "key": "draft_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "The body is optional. `verify` removes envelope recipients only; the\ndraft's To/Cc headers are sent as written. If every recipient is\ndropped, nothing is queued, the draft is kept and `status` is\n`dropped`. A refused `certify` or `webhook_url` leaves the draft as\nit is.\n\nEvery recipient counts against the plan's allowance, like any other\nsend. If they do not all fit in what is left of the month (or of\nthe day, on plans with a daily limit), nothing is queued, the draft\nis kept and the answer is 429.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"certify\": false,\n  \"verify\": true,\n  \"webhook_url\": \"string\",\n  \"list_unsubscribe\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Reply to an inbox message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/messages/:message_id/reply",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "messages",
                ":message_id",
                "reply"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "message_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Creates a reply draft (201). With `send: true` it is queued at once\n(202, needs the `send` scope). `certify`, `verify` and `webhook_url`\nare accepted only with `send: true` (400 otherwise). With\n`send: true` every recipient counts against the plan's allowance;\nif they do not all fit, nothing is queued and the answer is 429.",
            "body": {
              "mode": "raw",
              "raw": "\"string\"",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Forward an inbox message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inboxes/:inbox_id/messages/:message_id/forward",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inboxes",
                ":inbox_id",
                "messages",
                ":message_id",
                "forward"
              ],
              "variable": [
                {
                  "key": "inbox_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "message_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Like reply, with your own `to` and `cc`. `certify`, `verify` and\n`webhook_url` only with `send: true`. A forward with `send: true`\ncounts against the plan's allowance like a reply (429 when it does\nnot fit).",
            "body": {
              "mode": "raw",
              "raw": "\"string\"",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Labels",
      "description": "Tag messages and threads with labels",
      "item": [
        {
          "name": "List labels",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/labels",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "labels"
              ]
            },
            "description": "List labels"
          },
          "response": []
        },
        {
          "name": "Create label",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/labels",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "labels"
              ]
            },
            "description": "Create label",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"color\": \"#6b7280\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete label",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/labels/:label_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "labels",
                ":label_id"
              ],
              "variable": [
                {
                  "key": "label_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete label"
          },
          "response": []
        }
      ]
    },
    {
      "name": "Sender Lists",
      "description": "Allow/block sender filtering",
      "item": [
        {
          "name": "Get sender list (allow or block)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sender-lists/:list_type",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sender-lists",
                ":list_type"
              ],
              "variable": [
                {
                  "key": "list_type",
                  "value": "allow",
                  "description": ""
                }
              ]
            },
            "description": "Get sender list (allow or block)"
          },
          "response": []
        },
        {
          "name": "Add entry to sender list",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sender-lists/:list_type",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sender-lists",
                ":list_type"
              ],
              "variable": [
                {
                  "key": "list_type",
                  "value": "allow",
                  "description": ""
                }
              ]
            },
            "description": "Add entry to sender list",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"pattern\": \"*@spam.example\",\n  \"note\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Attachments",
      "description": "Upload and manage file attachments",
      "item": [
        {
          "name": "Upload attachment",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/attachments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "attachments"
              ]
            },
            "description": "Upload attachment",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                },
                {
                  "key": "message_id",
                  "type": "text",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "disabled": true
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get attachment metadata",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/attachments/:attachment_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "attachments",
                ":attachment_id"
              ],
              "variable": [
                {
                  "key": "attachment_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get attachment metadata"
          },
          "response": []
        },
        {
          "name": "Delete attachment",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/attachments/:attachment_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "attachments",
                ":attachment_id"
              ],
              "variable": [
                {
                  "key": "attachment_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete attachment"
          },
          "response": []
        },
        {
          "name": "Download attachment",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/attachments/:attachment_id/download",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "attachments",
                ":attachment_id",
                "download"
              ],
              "variable": [
                {
                  "key": "attachment_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Always served as a download: `Content-Disposition: attachment` with a\nsanitised filename, `X-Content-Type-Options: nosniff` and a sandboxing\n`Content-Security-Policy`. Types a browser would render or run (HTML,\nSVG, XML, scripts) are served as `application/octet-stream`."
          },
          "response": []
        },
        {
          "name": "List the attachments uploaded for a message",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/messages/:message_id/attachments",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                ":message_id",
                "attachments"
              ],
              "variable": [
                {
                  "key": "message_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "An unknown id, or another account's, gives an empty list."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Uploads",
      "description": "Hosted files with a public download link",
      "item": [
        {
          "name": "List uploads",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/uploads",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "uploads"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "before",
                  "value": "2030-01-01T00:00:00Z",
                  "description": "Return uploads created before this time (use pagination.next_before)",
                  "disabled": true
                }
              ]
            },
            "description": "List uploads"
          },
          "response": []
        },
        {
          "name": "Upload a file and get a public download link",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/uploads",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "uploads"
              ]
            },
            "description": "Stores one file (up to 25 MiB) and returns a public link to put in a message in place of an attachment. Executable and script file extensions are refused. The file counts against the plan's storage allowance. Requires the `send` scope.",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "file",
                  "type": "file",
                  "src": []
                },
                {
                  "key": "expires_at",
                  "type": "text",
                  "value": "2030-01-01T00:00:00Z",
                  "disabled": true
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "Get upload metadata",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/uploads/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "uploads",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get upload metadata"
          },
          "response": []
        },
        {
          "name": "Rename an upload or move it to a folder",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/uploads/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "uploads",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Send `filename`, `folder` or both. The public link keeps working: only its last, cosmetic\npart follows the name. A name with a blocked extension is refused. `folder` is a path\nsuch as `Campaigns/Spring`, at most 4 levels and 60 characters; `\"\"` takes the file out of its folder.\nNeeds the `send` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"filename\": \"string\",\n  \"folder\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete an upload and its file",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/uploads/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "uploads",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete an upload and its file"
          },
          "response": []
        },
        {
          "name": "The file itself, for its owner",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/uploads/:id/content",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "uploads",
                ":id",
                "content"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "The bytes of an upload for the account that owns it (the portal uses it for previews).\nUnlike the public link it needs a key, does not count as a download, and still works\nafter the link has expired."
          },
          "response": []
        },
        {
          "name": "Download an uploaded file (public link)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/f/:token/:filename",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "f",
                ":token",
                ":filename"
              ],
              "query": [
                {
                  "key": "t",
                  "value": "string",
                  "description": "Tracking id of the message the link was sent in (added by click tracking)",
                  "disabled": true
                },
                {
                  "key": "s",
                  "value": "string",
                  "description": "Signature of `t` for this file; without a valid one no event is recorded",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "token",
                  "value": "string",
                  "description": ""
                },
                {
                  "key": "filename",
                  "value": "string",
                  "description": ""
                }
              ]
            },
            "description": "The `url` of an upload. No API key. Always answered as a file download (`Content-Disposition: attachment`); HTML, SVG, XML and script types are sent as `application/octet-stream`. Each download is counted on the upload. A link from a message sent with click tracking carries `t` and `s`; such a download is also recorded as a `clicked` event of that message (with `download: true`, `upload_id`, `filename`).",
            "auth": {
              "type": "noauth"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Pods",
      "description": "Sub-tenant isolation for agent frameworks",
      "item": [
        {
          "name": "List pods",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/pods",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pods"
              ]
            },
            "description": "List pods"
          },
          "response": []
        },
        {
          "name": "Create pod",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/pods",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pods"
              ]
            },
            "description": "Create pod",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"description\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get pod",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/pods/:pod_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pods",
                ":pod_id"
              ],
              "variable": [
                {
                  "key": "pod_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get pod"
          },
          "response": []
        },
        {
          "name": "Update pod",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/pods/:pod_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pods",
                ":pod_id"
              ],
              "variable": [
                {
                  "key": "pod_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Update pod",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"suspended\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete pod",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/pods/:pod_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pods",
                ":pod_id"
              ],
              "variable": [
                {
                  "key": "pod_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete pod"
          },
          "response": []
        },
        {
          "name": "List pod API keys",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/pods/:pod_id/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pods",
                ":pod_id",
                "keys"
              ],
              "variable": [
                {
                  "key": "pod_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "List pod API keys"
          },
          "response": []
        },
        {
          "name": "Create pod API key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/pods/:pod_id/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "pods",
                ":pod_id",
                "keys"
              ],
              "variable": [
                {
                  "key": "pod_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Create pod API key",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"environment\": \"live\",\n  \"test_outcomes\": \"string\",\n  \"verify_before_send\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "API keys",
      "description": "Create, list, rotate and revoke the account's API keys",
      "item": [
        {
          "name": "List API keys",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys"
              ]
            },
            "description": "List API keys"
          },
          "response": []
        },
        {
          "name": "Create API key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys"
              ]
            },
            "description": "Needs the `admin` scope. Set `environment` to `test` for a sandbox key.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"environment\": \"live\",\n  \"test_outcomes\": \"string\",\n  \"verify_before_send\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Change a key's send defaults",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/keys/:key_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys",
                ":key_id"
              ],
              "variable": [
                {
                  "key": "key_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope. Sets the key's default test outcome mix\n(test keys only) and its verify-before-send override. A test key can\nonly change test keys. Another account's key is `404`. The raw key is\nnot returned.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Revoke an API key",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/keys/:key_id/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys",
                ":key_id",
                "revoke"
              ],
              "variable": [
                {
                  "key": "key_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope. The key stops working at once. Revoking a revoked key is a no-op."
          },
          "response": []
        },
        {
          "name": "Rotate an API key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/keys/:key_id/rotate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "keys",
                ":key_id",
                "rotate"
              ],
              "variable": [
                {
                  "key": "key_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope. Creates a new key with the same name,\nscopes and settings, and lets the old one keep working for\n`grace_hours` (0 revokes it now). The new raw key is returned once.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"grace_hours\": 24\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "List SES bridge access keys",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/ses/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "ses",
                "keys"
              ]
            },
            "description": "Access key pairs for the Amazon SES bridge (`/bridge/ses`), newest\nfirst, revoked ones included. Secrets are never returned here.\nNeeds the `admin` scope."
          },
          "response": []
        },
        {
          "name": "Create an SES bridge access key pair",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/ses/keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "ses",
                "keys"
              ]
            },
            "description": "Issues an access key id and a secret access key for AWS clients\n(Signature V4) talking to `/bridge/ses`. The secret is in this\nresponse only; it is stored encrypted and cannot be shown again.\nNeeds the `admin` scope. A test API key can only create `test` pairs.\nAnswers `503` when the server has no encryption key configured.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"environment\": \"live\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Revoke an SES bridge access key pair",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/ses/keys/:key_id/revoke",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "ses",
                "keys",
                ":key_id",
                "revoke"
              ],
              "variable": [
                {
                  "key": "key_id",
                  "value": "string",
                  "description": ""
                }
              ]
            },
            "description": "The pair stops working at once. `key_id` is the key's id or its access key id. Needs the `admin` scope."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Messages",
      "description": "Send outbound transactional email",
      "item": [
        {
          "name": "Message counts by status",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stats",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stats"
              ],
              "query": [
                {
                  "key": "tag",
                  "value": "string",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "domain",
                  "value": "string",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "`true`: test messages only. `false`: live only. Default: the side of the key.",
                  "disabled": true
                }
              ]
            },
            "description": "`domain` is the recipient domain (the part of `to` after `@`)."
          },
          "response": []
        },
        {
          "name": "List outbound messages",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "before",
                  "value": "2030-01-01T00:00:00Z",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "string",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "search",
                  "value": "string",
                  "description": "Substring of sender, recipient or subject.",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "`true`: test messages only. `false`: live only.",
                  "disabled": true
                },
                {
                  "key": "tag",
                  "value": "string",
                  "description": "Only messages with this tag (exact match).",
                  "disabled": true
                },
                {
                  "key": "date_from",
                  "value": "2030-01-01T00:00:00Z",
                  "description": "Only messages created at or after this time.",
                  "disabled": true
                },
                {
                  "key": "date_to",
                  "value": "2030-01-01T00:00:00Z",
                  "description": "Only messages created at or before this time.",
                  "disabled": true
                },
                {
                  "key": "exclude_apple_mail",
                  "value": "False",
                  "description": "Leave Apple Mail opens out of `open_count` and `opened`. Apple Mail Privacy Protection loads images whether or not the mail is read; real Apple Mail opens cannot be told apart and are left out with them.",
                  "disabled": true
                }
              ]
            },
            "description": "Newest first. Live and test messages are never mixed: without `test`\na live key gets live messages and a test key gets test messages."
          },
          "response": []
        },
        {
          "name": "Send message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages"
              ]
            },
            "description": "With a test key (`mf_test_...`) the message is queued as a test\nmessage: nothing is delivered, the outcome is simulated (see\n`CreateApiKey.environment`), and it does not count against the plan.\nA test key may also send from a domain of the account that is not\nverified yet; a live key may not.\n\nThe request body may be up to 36 MiB and the built message, with its\nattachments, up to 25 MB (26,214,400 bytes). Attachment `data` must\nbe base64 (line breaks allowed). With a template, the subject and\ntext part are rendered without HTML escaping and the HTML part with it.\n\nEvery recipient must fit in what is left of the plan's monthly\nallowance (then prepaid credits, then overage up to its cap) and the\ndaily limit, or nothing is sent (429). The emails are reserved\nwhile the send runs, so sends at the same moment cannot pass the\nlimit together.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"domain_id\": \"00000000-0000-0000-0000-000000000000\",\n  \"from\": \"hello@example.com\",\n  \"to\": [\n    \"user@example.org\"\n  ],\n  \"subject\": \"Hello\",\n  \"text\": \"Hello from Mailaki\",\n  \"html\": \"<p>Hello from Mailaki</p>\",\n  \"require_tls\": false,\n  \"verify\": true,\n  \"webhook_url\": \"string\",\n  \"certify\": false,\n  \"list_unsubscribe\": true,\n  \"send_separately\": false,\n  \"save_to_sent\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Send a batch of messages",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/messages/batch",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                "batch"
              ]
            },
            "description": "Not part of the Inbox plans: an account on one gets `403` with code\n`not_in_plan`.\n\nSeveral distinct messages from one domain. Each message is checked\non its own: one that fails is listed in `errors` with its `index`\nand the others are still sent. Open and click tracking is always on\nfor HTML bodies here. `certify`, `verify` and `webhook_url`\nat the top level are defaults for every message; a message's own\nvalue overrides them. A top-level `certify` that the plan or key\ndoes not allow (403 / 400), or a top-level `webhook_url` that is not\na public http(s) URL (400), refuses the whole request.",
            "body": {
              "mode": "raw",
              "raw": "\"string\"",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Send a raw RFC 5322 message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/messages/mime",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                "mime"
              ]
            },
            "description": "The message is DKIM-signed and sent as given. The envelope `from`\nand the message's `From` header must both be on the sending domain.\nRecipients on your suppression list are left out (reason\n`suppressed`), then `verify` removes invalid ones; both act on\nenvelope recipients only, the To/Cc headers inside `message` are not\nchanged. If every recipient is dropped the answer is\n`status: \"dropped\"` and nothing is queued. The same rules apply to\nmail submitted over SMTP (ports 587/465).",
            "body": {
              "mode": "raw",
              "raw": "\"string\"",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Send with multipart/form-data",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/messages/form",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                "form"
              ]
            },
            "description": "Mailgun-style field names. `o:certify`, `o:verify` and `o:webhook-url`\nare the `certify`, `verify` and `webhook_url` options of\n`POST /messages`.",
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "from",
                  "type": "text",
                  "value": "hello@example.com"
                },
                {
                  "key": "to",
                  "type": "text",
                  "value": "['user@example.org']"
                },
                {
                  "key": "subject",
                  "type": "text",
                  "value": "Hello",
                  "disabled": true
                },
                {
                  "key": "text",
                  "type": "text",
                  "value": "Hello from Mailaki",
                  "disabled": true
                },
                {
                  "key": "html",
                  "type": "text",
                  "value": "<p>Hello from Mailaki</p>",
                  "disabled": true
                },
                {
                  "key": "domain_id",
                  "type": "text",
                  "value": "00000000-0000-0000-0000-000000000000"
                },
                {
                  "key": "o:tag",
                  "type": "text",
                  "value": "string",
                  "disabled": true
                },
                {
                  "key": "o:tracking-opens",
                  "type": "text",
                  "value": "yes",
                  "disabled": true
                },
                {
                  "key": "o:tracking-clicks",
                  "type": "text",
                  "value": "yes",
                  "disabled": true
                },
                {
                  "key": "o:certify",
                  "type": "text",
                  "value": "yes",
                  "disabled": true
                },
                {
                  "key": "o:verify",
                  "type": "text",
                  "value": "yes",
                  "disabled": true
                },
                {
                  "key": "o:webhook-url",
                  "type": "text",
                  "value": "string",
                  "disabled": true
                },
                {
                  "key": "o:require-tls",
                  "type": "text",
                  "value": "yes",
                  "disabled": true
                },
                {
                  "key": "o:list-unsubscribe",
                  "type": "text",
                  "value": "yes",
                  "disabled": true
                },
                {
                  "key": "attachment",
                  "type": "file",
                  "src": []
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "List scheduled messages",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/messages/scheduled",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                "scheduled"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "after",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "The `id` of the last entry of the previous page (`pagination.next_after`).",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "`true` lists test messages, `false` live ones. Default: the side of the key making the request. The two are never mixed in one page.",
                  "disabled": true
                }
              ]
            },
            "description": "Your messages that have a `scheduled_at` in the future and have not been picked up for delivery, soonest first. One entry per recipient. Requires the `read` scope."
          },
          "response": []
        },
        {
          "name": "Get a message's status",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/messages/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "One queued message (one recipient). Another account's id answers 404."
          },
          "response": []
        },
        {
          "name": "Reschedule a message",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/messages/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Sets a new send time on a message that has not been picked up for delivery and has never been attempted. Requires the `send` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"scheduled_at\": \"2030-01-01T00:00:00Z\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Cancel a queued message, or delete a finished one",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/messages/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "A message that has not been picked up for delivery yet (scheduled, queued, or waiting for a retry) is cancelled: it is never sent, its record stays with status `cancelled`, and, if it was queued this month, its count (and the credit or overage email it used, if any) is given back. A `cancelled` event is recorded and sent to webhooks subscribed to `cancelled` and to the message's own `webhook_url`. A message that is finished (delivered, bounced, dropped, failed or cancelled) is deleted for good, with its events. A message that is being delivered at that moment can be neither. Requires the `send` scope."
          },
          "response": []
        },
        {
          "name": "Resend a failed message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/messages/:id/resend",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                ":id",
                "resend"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Queues a new message from the stored copy of one that bounced, was dropped, failed or was cancelled. The copy is identical (same Message-ID, Date and signature) and is linked to the original by `resent_from`. The suppression list and your plan limits are checked again, and the resend counts as a send. A delivered message is only resent with `force`. A message that bounced because the address does not exist is never resent. The copy of a test message is a test message; a test key cannot resend a live message. Requires the `send` scope.\nWhile an earlier resend of the same message is still queued (`pending`, `deferred` or `processing`), nothing new is queued: the answer is `200` with that resend and `already_resent: true`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"force\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Resend several failed messages",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/messages/resend",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                "resend"
              ]
            },
            "description": "Up to 100 ids. Each one goes through the same checks as a single resend and gets its own result; a refused id does not stop the others. An id whose earlier resend is still queued is reported as `already_resent` with that resend's id, and nothing is queued for it. Requires the `send` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"ids\": [\n    \"00000000-0000-0000-0000-000000000000\"\n  ],\n  \"force\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get the account's send defaults",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sending-settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sending-settings"
              ]
            },
            "description": "Get the account's send defaults"
          },
          "response": []
        },
        {
          "name": "Set the account's send defaults",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/sending-settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sending-settings"
              ]
            },
            "description": "Needs the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"list_unsubscribe\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Unsubscribe page",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/unsubscribe/:tenant_id/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "unsubscribe",
                ":tenant_id",
                ":id"
              ],
              "query": [
                {
                  "key": "sig",
                  "value": "string",
                  "description": "HMAC signature Mailaki put in the link. Required, except for links of messages queued before links were signed, during a grace period.",
                  "disabled": true
                },
                {
                  "key": "scope",
                  "value": "global",
                  "description": "`global`: unsubscribe from everything, also for a group's message.",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "tenant_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "The message id, or the id of one recipient's copy."
                }
              ]
            },
            "description": "The link in a message. Shows a confirmation button; a GET never unsubscribes.",
            "auth": {
              "type": "noauth"
            }
          },
          "response": []
        },
        {
          "name": "One-click unsubscribe (RFC 8058)",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/unsubscribe/:tenant_id/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "unsubscribe",
                ":tenant_id",
                ":id"
              ],
              "query": [
                {
                  "key": "sig",
                  "value": "string",
                  "description": "HMAC signature Mailaki put in the link. Required, except for links of messages queued before links were signed, during a grace period.",
                  "disabled": true
                },
                {
                  "key": "scope",
                  "value": "global",
                  "description": "`global`: unsubscribe from everything, also for a group's message.",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "tenant_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "The message id, or the id of one recipient's copy."
                }
              ]
            },
            "description": "What a mail client posts for `List-Unsubscribe-Post: List-Unsubscribe=One-Click`.\nThe address goes on the account's suppression list, or for a message\nsent for an unsubscribe group on that group's list (unless\n`scope=global`). Fires the `unsubscribed` event.",
            "auth": {
              "type": "noauth"
            }
          },
          "response": []
        },
        {
          "name": "Unsubscribe preferences page",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/unsubscribe/:tenant_id/:id/preferences?sig=string",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "unsubscribe",
                ":tenant_id",
                ":id",
                "preferences"
              ],
              "query": [
                {
                  "key": "sig",
                  "value": "string",
                  "description": ""
                }
              ],
              "variable": [
                {
                  "key": "tenant_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "HTML page for the recipient of the link: the account's unsubscribe\ngroups (names and descriptions; for a SendGrid send with\n`asm.groups_to_display`, only those) with the ones the recipient is\non checked, and \"Unsubscribe from all\". The SendGrid bridge fills\n`<%asm_preferences_raw_url%>` with this link.",
            "auth": {
              "type": "noauth"
            }
          },
          "response": []
        },
        {
          "name": "Save unsubscribe preferences",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/unsubscribe/:tenant_id/:id/preferences?sig=string",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "unsubscribe",
                ":tenant_id",
                ":id",
                "preferences"
              ],
              "query": [
                {
                  "key": "sig",
                  "value": "string",
                  "description": ""
                }
              ],
              "variable": [
                {
                  "key": "tenant_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Save unsubscribe preferences",
            "auth": {
              "type": "noauth"
            }
          },
          "response": []
        },
        {
          "name": "List message tags",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/tags",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tags"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "90",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "`true`: test messages only. `false`: live only. Default: the side of the key.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "200",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "The tags of the outbound messages of the last `days` days, with how\nmany messages carry each and how they did. A message with two tags\ncounts under both. Largest first."
          },
          "response": []
        },
        {
          "name": "Rename a tag",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/tags/:tag",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tags",
                ":tag"
              ],
              "variable": [
                {
                  "key": "tag",
                  "value": "string",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope. Renames the tag on every message of the\nkey's side (live or test), whatever its age. A message that already\nhas the new name loses the old one. Events already delivered to\nwebhooks keep the old name.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Remove a tag",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/tags/:tag",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "tags",
                ":tag"
              ],
              "variable": [
                {
                  "key": "tag",
                  "value": "string",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope. Takes the tag off every message of the key's\nside (live or test). The messages themselves stay."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Domains",
      "description": "Sending domains and the DNS records they need",
      "item": [
        {
          "name": "List sending domains",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/domains",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains"
              ]
            },
            "description": "List sending domains"
          },
          "response": []
        },
        {
          "name": "Add a sending domain",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/domains",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains"
              ]
            },
            "description": "Creates the domain unverified, with a new DKIM key, and returns the\nDNS records to publish in `dns_records`. Then call\n`POST /domains/{domain_id}/verify`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"domain\": \"example.com\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get a domain and its DNS records",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/domains/:domain_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains",
                ":domain_id"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get a domain and its DNS records"
          },
          "response": []
        },
        {
          "name": "Delete a domain",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/domains/:domain_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains",
                ":domain_id"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete a domain"
          },
          "response": []
        },
        {
          "name": "Check the domain's DNS records",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/domains/:domain_id/verify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains",
                ":domain_id",
                "verify"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Looks up MX, SPF and DKIM now and marks the domain verified when the checks pass. Also checks the return-path subdomain when the server offers return paths. Returns the domain with the result of the check."
          },
          "response": []
        },
        {
          "name": "Choose the domain's return-path subdomain",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/domains/:domain_id/return-path",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains",
                ":domain_id",
                "return-path"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope and a server that offers return paths. The\nname must be a host name below the domain. Its verification is\ncleared; it is checked again by `POST /domains/{domain_id}/verify`,\nand by the server within about an hour.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"mail-bounces.example.com\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Go back to the default return-path subdomain",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/domains/:domain_id/return-path",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains",
                ":domain_id",
                "return-path"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope. Same as `PUT` with `name` null."
          },
          "response": []
        },
        {
          "name": "Start a DKIM key rotation",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/domains/:domain_id/rotate-dkim",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains",
                ":domain_id",
                "rotate-dkim"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope. Creates a new `pending` key with the next\nselector (`mf2`, `mf3`, ...). Publish its `dns_record`, then\nactivate it. One rotation can be pending at a time. Domains on\nmanaged (CNAME) DKIM rotate on the server and take no\n`selector_prefix`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"selector_prefix\": \"mf\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "List DKIM keys",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/domains/:domain_id/dkim-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains",
                ":domain_id",
                "dkim-keys"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "List DKIM keys"
          },
          "response": []
        },
        {
          "name": "Cancel a pending DKIM rotation",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/domains/:domain_id/dkim-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains",
                ":domain_id",
                "dkim-keys"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope. Deletes the pending key."
          },
          "response": []
        },
        {
          "name": "Activate the pending DKIM key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/domains/:domain_id/dkim-keys/activate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "domains",
                ":domain_id",
                "dkim-keys",
                "activate"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope. Checks that the pending key's TXT record\nresolves (skip with `force`), makes it the signing key and retires\nthe previous one after a grace period.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"force\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Templates",
      "description": "Templates, their version history, the starter gallery and the AI builder",
      "item": [
        {
          "name": "List templates",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates"
              ]
            },
            "description": "List templates"
          },
          "response": []
        },
        {
          "name": "Create a template",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/templates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates"
              ]
            },
            "description": "Subject, text and HTML are Handlebars templates; a syntax error is refused with 422. Counts against the plan's template limit.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"subject\": \"Hello\",\n  \"text_body\": \"string\",\n  \"html_body\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get a template",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/:template_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                ":template_id"
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get a template"
          },
          "response": []
        },
        {
          "name": "Update a template",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/templates/:template_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                ":template_id"
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Fields left out keep their value. An update that changes the template stores the version it replaces (see the versions endpoints).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"subject\": \"Hello\",\n  \"text_body\": \"string\",\n  \"html_body\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete a template",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/:template_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                ":template_id"
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete a template"
          },
          "response": []
        },
        {
          "name": "Render a saved template with test variables",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/templates/:template_id/preview",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                ":template_id",
                "preview"
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Nothing is sent or saved. Subject and text are rendered without HTML escaping, HTML with it, as on a send.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "List previous versions of a template",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/:template_id/versions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                ":template_id",
                "versions"
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Newest first, without bodies. Every update that changes a template stores the version it replaces. The newest 50 are kept."
          },
          "response": []
        },
        {
          "name": "Compare two versions of a template",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/:template_id/diff?from=hello@example.com",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                ":template_id",
                "diff"
              ],
              "query": [
                {
                  "key": "from",
                  "value": "hello@example.com",
                  "description": "A version number, or \"current\""
                },
                {
                  "key": "to",
                  "value": "current",
                  "description": "A version number, or \"current\"",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Line diff of name, subject, text and HTML between two versions, or a version and the current template."
          },
          "response": []
        },
        {
          "name": "Get one previous version",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/:template_id/versions/:version",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                ":template_id",
                "versions",
                ":version"
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "version",
                  "value": "0",
                  "description": ""
                }
              ]
            },
            "description": "Get one previous version"
          },
          "response": []
        },
        {
          "name": "Restore a previous version",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/:template_id/versions/:version/restore",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                ":template_id",
                "versions",
                ":version",
                "restore"
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "version",
                  "value": "0",
                  "description": ""
                }
              ]
            },
            "description": "Puts the version's subject, text and HTML back. The content it replaces is stored as a new version first. The template name is not changed."
          },
          "response": []
        },
        {
          "name": "Render template content without saving it",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/templates/render",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                "render"
              ]
            },
            "description": "Needs the `send` scope. Renders the given subject and bodies with `variables`. Fields not sent come back as null.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"subject\": \"Hello\",\n  \"text_body\": \"string\",\n  \"html_body\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Check a template's syntax",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/:template_id/validate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                ":template_id",
                "validate"
              ],
              "variable": [
                {
                  "key": "template_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `send` scope. A syntax error is reported in the body with `valid` false, not as an error status."
          },
          "response": []
        },
        {
          "name": "Templates that mail was sent with",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                "usage"
              ]
            },
            "description": "For each template named by a send (`template_id` on `POST /v1/messages`): how many sends, and when last. Most recent first, at most 500. A send counts once, whatever its number of recipients."
          },
          "response": []
        },
        {
          "name": "List the starter template gallery",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/gallery",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                "gallery"
              ]
            },
            "description": "List the starter template gallery"
          },
          "response": []
        },
        {
          "name": "Get a starter template with bodies and a preview",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/gallery/:slug",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                "gallery",
                ":slug"
              ],
              "variable": [
                {
                  "key": "slug",
                  "value": "string",
                  "description": ""
                }
              ]
            },
            "description": "Get a starter template with bodies and a preview"
          },
          "response": []
        },
        {
          "name": "Copy a starter template into your account",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/templates/gallery/:slug/copy",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                "gallery",
                ":slug",
                "copy"
              ],
              "variable": [
                {
                  "key": "slug",
                  "value": "string",
                  "description": ""
                }
              ]
            },
            "description": "Creates a normal template. Counts against the plan's template limit.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "AI builder status, key source and monthly allowance",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/ai",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                "ai"
              ]
            },
            "description": "AI builder status, key source and monthly allowance"
          },
          "response": []
        },
        {
          "name": "Set your Anthropic API key for the AI builder",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/templates/ai/key",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                "ai",
                "key"
              ]
            },
            "description": "Stores or replaces the account's own Anthropic API key. The AI builder then runs on that key:\nusage is billed by Anthropic to you, and the plan's monthly generation limit does not apply.\nThe key is stored encrypted and is never returned; only its last four characters are shown.\nAnthropic is asked once whether it accepts the key. Needs the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_key\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Remove your Anthropic API key",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/templates/ai/key",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                "ai",
                "key"
              ]
            },
            "description": "Removes the account's Anthropic API key. Answers 200 whether or not a key was stored. Needs the `admin` scope."
          },
          "response": []
        },
        {
          "name": "Generate a template from a prompt",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/templates/ai/generate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "templates",
                "ai",
                "generate"
              ]
            },
            "description": "Returns a subject, an HTML body and a text body with Handlebars variables. Nothing is saved;\ncreate a template from the result. Only the fields of this request are sent to the AI model\n(Claude, by Anthropic). A request can take up to two minutes.\n\nThe call runs on your own Anthropic API key (`PUT /templates/ai/key`); Anthropic bills you for\nit and no monthly limit applies. If the server offers a platform key and you have not set your\nown, that one is used within your plan's monthly limit. Errors from Anthropic about your key or\naccount come back with their own codes and never contain the key.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"prompt\": \"string\",\n  \"brand_name\": \"string\",\n  \"tone\": \"string\",\n  \"language\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Suppressions",
      "description": "Addresses that are never sent to",
      "item": [
        {
          "name": "List suppressed addresses",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/suppressions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "suppressions"
              ],
              "query": [
                {
                  "key": "reason",
                  "value": "string",
                  "description": "For example hard_bounce, complaint, unsubscribe, manual",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "100",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "string",
                  "description": "The `X-Next-Cursor` header of the previous page",
                  "disabled": true
                }
              ]
            },
            "description": "Newest first. The body is an array. When the page is full the\n`X-Next-Cursor` response header holds the cursor of the next page;\npass it as `cursor`."
          },
          "response": []
        },
        {
          "name": "Suppress an address",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/suppressions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "suppressions"
              ]
            },
            "description": "Messages to a suppressed address are not sent (the recipient is dropped with reason `suppressed`).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"user@example.com\",\n  \"reason\": \"manual\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Remove a suppression",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/suppressions/:suppression_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "suppressions",
                ":suppression_id"
              ],
              "variable": [
                {
                  "key": "suppression_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Remove a suppression"
          },
          "response": []
        },
        {
          "name": "Download the suppression list as CSV",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/suppressions/export",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "suppressions",
                "export"
              ],
              "query": [
                {
                  "key": "reason",
                  "value": "string",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "Every entry, oldest first. Columns: email, reason, created_at."
          },
          "response": []
        },
        {
          "name": "List hard bounces",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/bounces",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "bounces"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "string",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "Suppressions with reason `hard_bounce`, newest first. The next page's cursor is in the `X-Next-Cursor` response header (set only when the page is full)."
          },
          "response": []
        },
        {
          "name": "List complaints",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/complaints",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "complaints"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "string",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "Suppressions with reason `complaint`, newest first. The next page's cursor is in the `X-Next-Cursor` response header (set only when the page is full)."
          },
          "response": []
        },
        {
          "name": "List unsubscribes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/unsubscribes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "unsubscribes"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "string",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "Suppressions with reason `unsubscribe`, newest first. The next page's cursor is in the `X-Next-Cursor` response header (set only when the page is full)."
          },
          "response": []
        },
        {
          "name": "Soft-bounce suppression settings",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/bounce-settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "bounce-settings"
              ]
            },
            "description": "Soft-bounce suppression settings"
          },
          "response": []
        },
        {
          "name": "Change soft-bounce suppression settings",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/bounce-settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "bounce-settings"
              ]
            },
            "description": "Needs the `admin` scope. A full replace; a field left out or null goes back to the default.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Lists",
      "description": "Mailing lists and their members",
      "item": [
        {
          "name": "List mailing lists",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists"
              ]
            },
            "description": "Newest first, at most 100."
          },
          "response": []
        },
        {
          "name": "Create a mailing list",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/lists",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists"
              ]
            },
            "description": "Needs the `inboxes` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"address\": \"support@example.com\",\n  \"name\": \"string\",\n  \"description\": \"\",\n  \"access_level\": \"readonly\",\n  \"double_opt_in\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get a mailing list",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get a mailing list"
          },
          "response": []
        },
        {
          "name": "Update a mailing list",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"description\": \"string\",\n  \"access_level\": \"string\",\n  \"double_opt_in\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete a mailing list",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope."
          },
          "response": []
        },
        {
          "name": "List members",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "members"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "string",
                  "description": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Newest first. The next page's cursor is in the `X-Next-Cursor` response header (set when the page is full)."
          },
          "response": []
        },
        {
          "name": "Add a member",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/members",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "members"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope. On a double opt-in list the member is\nunconfirmed and gets a confirmation email, unless\n`skip_confirmation` is true.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"string\",\n  \"name\": \"\",\n  \"skip_confirmation\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Import members",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/members/import",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "members",
                "import"
              ],
              "query": [
                {
                  "key": "upsert",
                  "value": "False",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "skip_confirmation",
                  "value": "False",
                  "description": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope. The body is CSV (`Content-Type: text/csv`;\ncolumns `email`, `name`, `subscribed`, any other column becomes a\nvar; without a header row the columns are `email,name`) or JSON (an\narray of members, or `{\"members\": [...], \"upsert\": bool,\n\"skip_confirmation\": bool}`). At most 50,000 rows and 8 MiB.\nWith `upsert`, existing members are updated instead of skipped.",
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"email\": \"string\",\n    \"name\": \"string\",\n    \"subscribed\": true\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Export members as CSV",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/members/export",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "members",
                "export"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Columns `email,name,subscribed,vars,created_at,confirmed_at`, oldest first."
          },
          "response": []
        },
        {
          "name": "Get a member",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/members/:member_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "members",
                ":member_id"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "member_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get a member"
          },
          "response": []
        },
        {
          "name": "Update a member",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/members/:member_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "members",
                ":member_id"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "member_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope. Fields left out are unchanged; `vars` replaces the stored vars.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"string\",\n  \"subscribed\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Remove a member",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/members/:member_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "members",
                ":member_id"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "member_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope."
          },
          "response": []
        },
        {
          "name": "Unsubscribe a member",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/members/:member_id/unsubscribe",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "members",
                ":member_id",
                "unsubscribe"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "member_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `send` scope."
          },
          "response": []
        },
        {
          "name": "Resend the confirmation email",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/members/:member_id/resend-confirmation",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "members",
                ":member_id",
                "resend-confirmation"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "member_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope. Only for unconfirmed members of a double opt-in list, at most once every 10 minutes per member."
          },
          "response": []
        },
        {
          "name": "The list's public sign-up form",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/signup-form",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "signup-form"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Whether the list has a public sign-up form, its link and the HTML that embeds it on a website."
          },
          "response": []
        },
        {
          "name": "Turn the sign-up form on, or give it a new link",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/signup-form",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "signup-form"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope. Gives the list a public sign-up form. Calling it again makes a\nnew link: the old link, and every page the form is embedded on with it, stops working.\n\nPeople who sign up always confirm by email first, whatever the list's `double_opt_in`\nsays, so the list address must be on a verified domain. The form is protected by a human\ncheck, a limit per client address, at most 200 confirmation emails an hour per list, and\none confirmation email per address every 10 minutes."
          },
          "response": []
        },
        {
          "name": "Set how the sign-up form looks",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/signup-form",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "signup-form"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope. The form's heading, the sentence under it, the button's label and colour, and the words shown after signing up. An empty field uses the default. Works whether the form is on or off and does not change its link.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"heading\": \"string\",\n  \"intro\": \"string\",\n  \"button\": \"string\",\n  \"done\": \"string\",\n  \"color\": \"string\",\n  \"redirect_url\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Turn the sign-up form off",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/lists/:list_id/signup-form",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "lists",
                ":list_id",
                "signup-form"
              ],
              "variable": [
                {
                  "key": "list_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `inboxes` scope. The form's link answers 404 from then on. People on the list are not affected."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Inbound",
      "description": "Inbound routes, stored inbound messages and the inbound authentication mode",
      "item": [
        {
          "name": "List inbound routes",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/routes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "routes"
              ]
            },
            "description": "Highest priority first, at most 100."
          },
          "response": []
        },
        {
          "name": "Create an inbound route",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/routes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "routes"
              ]
            },
            "description": "Needs the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"pattern\": \"*@spam.example\",\n  \"action\": \"forward\",\n  \"destination\": \"string\",\n  \"priority\": 0,\n  \"description\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get an inbound route",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/routes/:route_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "routes",
                ":route_id"
              ],
              "variable": [
                {
                  "key": "route_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get an inbound route"
          },
          "response": []
        },
        {
          "name": "Update an inbound route",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/routes/:route_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "routes",
                ":route_id"
              ],
              "variable": [
                {
                  "key": "route_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"pattern\": \"*@spam.example\",\n  \"action\": \"forward\",\n  \"destination\": \"string\",\n  \"priority\": 0,\n  \"description\": \"string\",\n  \"active\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete an inbound route",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/routes/:route_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "routes",
                ":route_id"
              ],
              "variable": [
                {
                  "key": "route_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Needs the `admin` scope."
          },
          "response": []
        },
        {
          "name": "List stored inbound messages",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stored-messages",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stored-messages"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "before",
                  "value": "2030-01-01T00:00:00Z",
                  "description": "Only messages received before this time (cursor for the next page)",
                  "disabled": true
                },
                {
                  "key": "after",
                  "value": "2030-01-01T00:00:00Z",
                  "description": "Only messages received after this time",
                  "disabled": true
                },
                {
                  "key": "unread",
                  "value": "False",
                  "description": "`true` = only messages not marked read",
                  "disabled": true
                },
                {
                  "key": "summary",
                  "value": "False",
                  "description": "`true` = leave out `body_text`, `body_html` and `parsed_headers`; `snippet` stays",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "['user@example.org']",
                  "description": "Only mail received on this address. Exact, case-insensitive. With a `*` it is a route pattern such as `*@example.com` and matches the way the route does",
                  "disabled": true
                },
                {
                  "key": "domain",
                  "value": "string",
                  "description": "Only mail received on an address of this domain (the part after the last `@`; a subdomain is a different domain). Case-insensitive",
                  "disabled": true
                },
                {
                  "key": "folder",
                  "value": "inbox",
                  "description": "Which mailbox folder: `inbox` (the default), `sent`, `drafts`, `trash`, `junk`, `archive`, the id of a folder, or `all` for every folder. Anything else is `400`",
                  "disabled": true
                }
              ]
            },
            "description": "Messages kept by routes with action `store` and by inboxes, newest first. Page with `before`: pass the `created_at` of the last message you have. The list is for overviews; `body_text`, `body_html` and `parsed_headers` can be empty here; read `snippet`, and get the single message for its content.\n\nAn account can receive on several addresses and domains. `to` and `domain` narrow the list to one of them (see `GET /stored-messages/mailboxes`); they combine with each other and with `unread`, `summary` and paging. Without them the list covers the whole account.\n\nMail in an inbox is in a folder. Without `folder` only INBOX is listed: mail moved to Trash, Archive or another folder, and Sent copies, are left out. `folder` combines with every other filter."
          },
          "response": []
        },
        {
          "name": "List receiving addresses with counts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stored-messages/mailboxes",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stored-messages",
                "mailboxes"
              ]
            },
            "description": "The account's receiving addresses grouped by domain, each with its number of stored and unread messages. An address is listed when it has stored mail, or when an active inbox or an active `store` route names it (then possibly with zero counts). Addresses are lower case; mail to `Info@` and `info@` is one mailbox.\n\nA `store` route with a `*` (a catch-all such as `*@example.com`) appears twice: as the concrete addresses that received mail, and as the pattern itself with `pattern: true`. The pattern's counts cover every stored message it matches, so they overlap the addresses next to it and are not added to the domain totals again.\n\n`total` and `unread` at the top and per domain always cover every message. A domain lists at most 200 concrete addresses (the most recently used); `hidden_addresses` says how many are counted but not listed."
          },
          "response": []
        },
        {
          "name": "Mark all stored messages of a mailbox read",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/stored-messages/mark-read",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stored-messages",
                "mark-read"
              ]
            },
            "description": "Marks every unread stored message read: of the whole account, or of one mailbox when `to` and/or `domain` are given (same meaning as on `GET /stored-messages`). Messages that are already read keep their `read_at`. The body is optional; the same fields are accepted in the query string. A body that is not valid JSON is refused with 400. Needs the `read` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"to\": [\n    \"user@example.org\"\n  ],\n  \"domain\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Count unread stored messages",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stored-messages/unread-count",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stored-messages",
                "unread-count"
              ]
            },
            "description": "Count unread stored messages"
          },
          "response": []
        },
        {
          "name": "Get a stored inbound message",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stored-messages/:stored_message_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stored-messages",
                ":stored_message_id"
              ],
              "variable": [
                {
                  "key": "stored_message_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get a stored inbound message"
          },
          "response": []
        },
        {
          "name": "Mark a stored message read",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stored-messages/:stored_message_id/read",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stored-messages",
                ":stored_message_id",
                "read"
              ],
              "variable": [
                {
                  "key": "stored_message_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Sets `read_at`; a message that is already read keeps its first read time. Needs the `read` scope."
          },
          "response": []
        },
        {
          "name": "Mark a stored message unread",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stored-messages/:stored_message_id/unread",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stored-messages",
                ":stored_message_id",
                "unread"
              ],
              "variable": [
                {
                  "key": "stored_message_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Clears `read_at`. Needs the `read` scope."
          },
          "response": []
        },
        {
          "name": "Move a stored message to a folder",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/stored-messages/:stored_message_id/move",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stored-messages",
                ":stored_message_id",
                "move"
              ],
              "variable": [
                {
                  "key": "stored_message_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Puts a message of an inbox into another folder of the same inbox,\nfor example Trash or Archive. A special-use folder that does not\nexist yet is created. The message keeps its id and read state; mail\napps connected over IMAP see it leave the old folder and arrive in\nthe new one. Needs the `inboxes` scope.\n\nA message kept by a `store` route without an inbox has no folders\nand answers `400`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"folder\": \"trash\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Inbound authentication mode",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/inbound-auth",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inbound-auth"
              ]
            },
            "description": "Inbound authentication mode"
          },
          "response": []
        },
        {
          "name": "Change the inbound authentication mode",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/inbound-auth",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "inbound-auth"
              ]
            },
            "description": "Needs the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"mode\": \"log\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Webhooks",
      "description": "Signed HTTP notifications for message events",
      "item": [
        {
          "name": "List webhooks",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks"
              ]
            },
            "description": "List webhooks"
          },
          "response": []
        },
        {
          "name": "Create webhook",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks"
              ]
            },
            "description": "The response includes the HMAC signing `secret`. It is returned only\nhere; rotate the secret to get a new one.\n\nEach delivery carries `X-Mailaki-Timestamp`, `X-Mailaki-Signature`\n(hex HMAC-SHA256 of the raw body with the secret) and\n`X-Mailaki-Signature-Ed25519` (`t=<unix>,kid=<key id>,sig=<base64>`,\nan Ed25519 signature over `\"<t>.\" + raw body`; public keys at\n`/.well-known/mailaki/webhook-keys`).\n\nA failed delivery is retried after 1 min, 5 min, 30 min, 2 h, 6 h,\n12 h and 24 h (8 attempts over about 44.6 hours, each wait plus up to\n10% jitter), then listed under failed deliveries.\n\nThe plan's webhook limit applies (Free 2, Starter 10, higher plans\nunlimited); at the limit the request is refused with 403.\n\nEvent types include the message events and the account events\n`api_key.expiring` and `verification.completed` (a bulk verification\njob finished; `message_id` holds the job id).",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"string\",\n  \"format\": \"mailaki\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get webhook",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get webhook"
          },
          "response": []
        },
        {
          "name": "Update webhook",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Update webhook",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"string\",\n  \"active\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete webhook",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete webhook"
          },
          "response": []
        },
        {
          "name": "Send a test event",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id/test",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id",
                "test"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Send a test event"
          },
          "response": []
        },
        {
          "name": "Rotate the signing secret",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id/rotate-secret",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id",
                "rotate-secret"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Replaces the HMAC secret and returns the new one, once. The old secret stops working immediately."
          },
          "response": []
        },
        {
          "name": "List failed deliveries of the account",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/failed",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "failed"
              ]
            },
            "description": "Newest first, at most 200. Includes failed deliveries to a per-message `webhook_url`."
          },
          "response": []
        },
        {
          "name": "Resend one failed delivery",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks/failed/:failed_id/replay",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "failed",
                ":failed_id",
                "replay"
              ],
              "variable": [
                {
                  "key": "failed_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "One attempt, made during the request. Without a body the event goes to\nits original destination; with `webhook_id` it goes to that webhook of\nyour account. On success the entry is removed from the failed list.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Discard one failed delivery",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/failed/:failed_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                "failed",
                ":failed_id"
              ],
              "variable": [
                {
                  "key": "failed_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Discard one failed delivery"
          },
          "response": []
        },
        {
          "name": "List failed deliveries of one webhook",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id/failed",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id",
                "failed"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "List failed deliveries of one webhook"
          },
          "response": []
        },
        {
          "name": "Resend every failed delivery of one webhook",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id/failed/replay-all",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id",
                "failed",
                "replay-all"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Resend every failed delivery of one webhook"
          },
          "response": []
        },
        {
          "name": "Resend one failed delivery of a webhook",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id/failed/:failed_id/replay",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id",
                "failed",
                ":failed_id",
                "replay"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "failed_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Same as `/webhooks/failed/{failed_id}/replay`, limited to failures of this webhook.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delivery history of one webhook",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id/deliveries",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id",
                "deliveries"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "before",
                  "value": "2030-01-01T00:00:00Z",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "status",
                  "value": "delivered",
                  "description": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Every attempt of the last 30 days (first attempts, retries, resends),\nnewest first. Pass `pagination.next_before` as `before` for the next page."
          },
          "response": []
        },
        {
          "name": "One delivery attempt, with its payload",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id/deliveries/:delivery_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id",
                "deliveries",
                ":delivery_id"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "delivery_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "One delivery attempt, with its payload"
          },
          "response": []
        },
        {
          "name": "Resend a recorded delivery",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id/deliveries/:delivery_id/resend",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id",
                "deliveries",
                ":delivery_id",
                "resend"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "delivery_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Sends the event of this attempt again now, whether it was delivered\nor failed. One attempt, recorded in the target's history as a\n`resend`; nothing is queued for retry. With `webhook_id` it goes to\nthat webhook of your account instead. The event `id` is unchanged.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Discard one failed delivery of a webhook",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/webhooks/:webhook_id/failed/:failed_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "webhooks",
                ":webhook_id",
                "failed",
                ":failed_id"
              ],
              "variable": [
                {
                  "key": "webhook_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                },
                {
                  "key": "failed_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Discard one failed delivery of a webhook"
          },
          "response": []
        },
        {
          "name": "Public keys for verifying webhook signatures",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/.well-known/mailaki/webhook-keys",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                ".well-known",
                "mailaki",
                "webhook-keys"
              ]
            },
            "description": "Served at the site root, not under `/v1`:\n`https://mailaki.com/.well-known/mailaki/webhook-keys`. No authentication.\nThe active key comes first. After a key rotation the retired key stays\nlisted for an overlap window (72 hours unless the operator chose\notherwise), so both keys are published; look keys up by `kid`.",
            "auth": {
              "type": "noauth"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Proof of Sending",
      "description": "Signed, publicly verifiable certificates for sent messages.",
      "item": [
        {
          "name": "Get a message's sending certificate",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/messages/:id/certificate",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                ":id",
                "certificate"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Message id"
                }
              ]
            },
            "description": "The certificate of a message sent with `certify: true`: its latest\nsigned state and every earlier one. `jws` is the certificate itself, a\ncompact JWS signed with Ed25519 (`alg: EdDSA`); `certificate` is a\ndecoded copy of its payload.\n\nA certificate states that Mailaki accepted a message with this content\nfingerprint, from this sender, for this recipient, at the time shown,\nand what happened next. It does not show that a person received,\nopened or read the message, and it is not a qualified electronic\nregistered delivery service under Regulation (EU) No 910/2014 (eIDAS).\nIt is a technical record, not a legal guarantee and not legal advice.\n\nCertificates cannot be changed or deleted through the API. A new state\n(handed on, delivery confirmed, failed) is signed as a new version with\nthe next `sequence`; earlier versions stay valid. Entries are kept for\n12 months."
          },
          "response": []
        },
        {
          "name": "Get a message's sending certificate as a PDF",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/messages/:id/certificate.pdf",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                ":id",
                "certificate.pdf"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Message id"
                }
              ]
            },
            "description": "A printable rendering of the latest state, including the full signed certificate (JWS). The PDF itself is not signed; the JWS printed in it is what can be verified."
          },
          "response": []
        },
        {
          "name": "List your certificates",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/certificates",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "certificates"
              ],
              "query": [
                {
                  "key": "state",
                  "value": "pending",
                  "description": "Latest state",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "string",
                  "description": "`pagination.next_cursor` of the previous page",
                  "disabled": true
                }
              ]
            },
            "description": "Your account's certificates, newest first, one per message and\nrecipient, each with its latest signed state. Expired and erased\ncertificates are not listed. `subject` is null once the message record\nis gone (a certificate outlives it)."
          },
          "response": []
        },
        {
          "name": "Check your certificate registry",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/certificates/chain",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "certificates",
                "chain"
              ]
            },
            "description": "Every certificate version is an entry in an append-only registry, and\neach entry contains the hash of your previous entry. This checks the\nnewest 10,000 entries: positions without gaps, every link, every\nsignature. Entries blanked by a recipient erasure keep their hash and\nare counted in `erased`."
          },
          "response": []
        },
        {
          "name": "Verify a certificate (no API key)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/certificates/verify",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "certificates",
                "verify"
              ]
            },
            "description": "Public: needs no API key. Send a certificate id, or the signed\ncertificate (`jws`), or the whole certificate JSON (only its `jws` is\nread). Limited to 30 requests per minute per IP address.\n\nThe answer contains only what the signed certificate states, plus\nwhether the registry holds it and whether a newer version exists.\n\nYou do not need this endpoint to verify a certificate: the public keys\nare at `https://mailaki.com/.well-known/mailaki/certificate-keys` (a\nJWK Set), and any JOSE library can check the signature offline.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"certificate_id\": \"cert_3f9a…\",\n  \"jws\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "auth": {
              "type": "noauth"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Data Removals",
      "description": "Erase one recipient's data (GDPR right to erasure)",
      "item": [
        {
          "name": "List erasure requests",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/data-removals",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "data-removals"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "Your account's erasure requests, newest first. Requires the `admin` scope."
          },
          "response": []
        },
        {
          "name": "Erase one recipient's data",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/data-removals",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "data-removals"
              ]
            },
            "description": "Deletes or anonymises everything your account holds about one email\naddress: queued and sent messages to it with their events (delivery,\nopens, clicks), message bodies stored only for that recipient, list\nmemberships, stored inbound mail from or to it with attachments,\ndrafts, and mentions in event payloads, failed webhook deliveries and\nyour activity log. Other recipients' records are kept.\n\nA suppression entry holding a SHA-256 hash of the address is left in\nplace, so the address is not mailed again. Requires the `admin` scope.\nOnly your own account is affected. The call can be repeated safely.\n\nNot covered: a message body shared with other recipients of the same\nsend (it stays until those messages are deleted), webhooks already\ndelivered to you, and backups taken before the request.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"user@example.com\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Import",
      "description": "Import suppression lists from a file, and templates, suppressions, domains and the user list from another provider",
      "item": [
        {
          "name": "Import a suppression list",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/suppressions/import",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "suppressions",
                "import"
              ],
              "query": [
                {
                  "key": "reason",
                  "value": "manual",
                  "description": "Reason for rows that carry neither a type nor a reason",
                  "disabled": true
                },
                {
                  "key": "async",
                  "value": "False",
                  "description": "Run as a background job whatever the size",
                  "disabled": true
                }
              ]
            },
            "description": "Adds addresses to your suppression list from a CSV file or a JSON\nlist. Requires the `send` scope.\n\n**CSV** (`Content-Type: text/csv`, or `multipart/form-data` with a\n`file` field): a header row with `address` (or `email`), `type`\n(`bounce`, `complaint` or `unsubscribe`), and optionally `reason`\n(free text, stored as `detail`) and `date` (RFC 3339, `YYYY-MM-DD`,\nRFC 2822 or unix seconds). Without a `type` column, `reason` is the\nreason value itself, which is the format of `GET /v1/suppressions/export`.\nWithout a header row the columns are `email[,reason]`.\n\n**JSON**: an array of addresses or `{address, type, reason, date}`\nobjects, or `{\"items\": [...], \"reason\": \"manual\"}`.\n\nLimits: 25 MiB and 500,000 rows. A body up to 512 KiB is imported\nbefore the response (`200` with the report; nothing is written if the\nfile cannot be read). A larger body, or any with `?async=true`, runs\nas a background job (`202`); read it at `status_url`.\n\nRows that cannot be used are reported and do not stop the import.\nAddresses already on the list are left untouched, so importing the\nsame file twice changes nothing. An address erased through\n`/v1/data-removals` is not added back. Imported rows have\n`source: \"import:csv\"` and do not count in complaint statistics.",
            "body": {
              "mode": "raw",
              "raw": "[\n  \"string\"\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Status of a suppression import job",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/suppressions/import/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "suppressions",
                "import",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Status and counts of a background suppression import. `counts.suppressions` has the same fields as the synchronous report."
          },
          "response": []
        },
        {
          "name": "Providers you can import from",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/imports/providers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "imports",
                "providers"
              ]
            },
            "description": "Each provider with its regions, the categories its API lets us read, and what key is needed. Requires the `admin` scope."
          },
          "response": []
        },
        {
          "name": "List import jobs",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/imports",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "imports"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "Your account's import jobs (provider imports and background suppression imports), newest first. Requires the `admin` scope."
          },
          "response": []
        },
        {
          "name": "Import from another provider",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/imports",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "imports"
              ]
            },
            "description": "Starts a background job that reads your account at another provider\n(Mailgun, SendGrid, Postmark, Brevo or Mailjet) and copies what you pick.\nRequires the `admin` scope. One import runs per account at a time.\n\n- **templates**: created here; the provider's template id or name is\n  kept as an alias, so the Mailgun, SendGrid and Mailjet bridges\n  resolve it. A template imported before is updated when it changed\n  at the provider, unless it was edited here since.\n  Variable syntax is converted only where the mapping is mechanical;\n  anything left for you to review is listed in `results.templates[].notes`.\n  A template that is not valid Handlebars after conversion is not\n  imported and appears in `errors`.\n- **suppressions**: added with reason, detail, date and\n  `source: \"import:<provider>\"`. An entry an earlier import from the\n  same provider added gets the provider's current reason and detail;\n  other existing entries are left untouched.\n- **domains**: added unverified. Publish the DNS records returned in\n  `results.domains[].dns_records` and verify each domain yourself.\n- **team_members**: listed in `results.team_members` only. Nobody is\n  invited by an import.\n\nThe provider is only read, never changed. `api_key` is never logged or\nreturned; it is kept encrypted while the job runs, so a job\ninterrupted by a restart on our side is resumed, and deleted when the\njob ends. A read-only key is enough. Running the import again picks up\nchanges. With `remove_deleted`, templates and suppressions the provider\ndeleted are removed here too (see the field). With\n`resync_interval_hours` the import is repeated on that schedule and the\nkey stays stored, encrypted, until the schedule is deleted.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"provider\": \"mailgun\",\n  \"api_key\": \"string\",\n  \"account_key\": \"string\",\n  \"region\": \"string\",\n  \"resync_interval_hours\": 1,\n  \"remove_deleted\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "List re-sync schedules",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/imports/schedules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "imports",
                "schedules"
              ]
            },
            "description": "Your account's re-sync schedules. The stored key is never returned. Requires the `admin` scope."
          },
          "response": []
        },
        {
          "name": "Stop a re-sync",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/imports/schedules/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "imports",
                "schedules",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Deletes the schedule and its stored key. What was imported stays. Requires the `admin` scope."
          },
          "response": []
        },
        {
          "name": "Get an import job",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/imports/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "imports",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Status, per-category counts, errors and results of one import job. Requires the `admin` scope."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Verification",
      "description": "Check addresses before sending (syntax, DNS and lists; no mailbox probing)",
      "item": [
        {
          "name": "Verify one address",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate?address=support@example.com",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate"
              ],
              "query": [
                {
                  "key": "address",
                  "value": "support@example.com",
                  "description": ""
                }
              ]
            },
            "description": "Checks syntax, DNS (MX, with A/AAAA fallback) and lists (disposable domains, role\naccounts, reserved test domains, your suppression list, your allow/block rules).\nIt does **not** connect to the recipient's server: `valid` means deliverable as far\nas DNS and our lists can tell, not that the mailbox exists. No catch-all or\nspam-trap detection. Counts as one verification."
          },
          "response": []
        },
        {
          "name": "Verifications used this month",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "usage"
              ]
            },
            "description": "Verifications used this month"
          },
          "response": []
        },
        {
          "name": "Get the verify-before-send default",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "settings"
              ]
            },
            "description": "Get the verify-before-send default"
          },
          "response": []
        },
        {
          "name": "Set the verify-before-send default",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/validate/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "settings"
              ]
            },
            "description": "Needs the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"verify_before_send\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Set or clear a domain's verify-before-send override",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/validate/settings/domains/:domain_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "settings",
                "domains",
                ":domain_id"
              ],
              "variable": [
                {
                  "key": "domain_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Sends from this domain (API and SMTP submission) without an explicit\n`verify` use this value instead of the account default. `null` removes\nthe override. Needs the `admin` scope. Another account's domain is 404.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"verify_before_send\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "List allow/block rules",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate/rules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "rules"
              ]
            },
            "description": "List allow/block rules"
          },
          "response": []
        },
        {
          "name": "Create an allow/block rule",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/validate/rules",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "rules"
              ]
            },
            "description": "Overrides the result for matching addresses: `block` gives `do_not_mail`, `allow`\ngives `valid`. The most specific rule wins (address, then domain, then TLD).\nNeeds the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"allow\",\n  \"kind\": \"address\",\n  \"value\": \"string\",\n  \"note\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Get a rule",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate/rules/:rule_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "rules",
                ":rule_id"
              ],
              "variable": [
                {
                  "key": "rule_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Get a rule"
          },
          "response": []
        },
        {
          "name": "Change a rule's action or note",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/validate/rules/:rule_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "rules",
                ":rule_id"
              ],
              "variable": [
                {
                  "key": "rule_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Change a rule's action or note",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"action\": \"allow\",\n  \"note\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Delete a rule",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate/rules/:rule_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "rules",
                ":rule_id"
              ],
              "variable": [
                {
                  "key": "rule_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Delete a rule"
          },
          "response": []
        },
        {
          "name": "List recent bulk jobs",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate/bulk",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "bulk"
              ]
            },
            "description": "List recent bulk jobs"
          },
          "response": []
        },
        {
          "name": "Create a bulk verification job",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/validate/bulk",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "bulk"
              ]
            },
            "description": "Upload up to 100,000 addresses (10 MiB) as a JSON list, a CSV file or a text file\nwith one address per line; the file is the request body. In a CSV, a first line\nwithout an `@` is a header and must name an `email` or `address` column; without a\nheader the first column is used. Repeated addresses are kept once. Every unique\naddress counts against the monthly allowance, and the job must fit in what is left.\nThe job is processed in the background; poll `GET /validate/bulk/{job_id}`.\nThe job and its results are deleted 30 days after upload. Needs the `send` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"addresses\": [\n    \"string\"\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Bulk job status and counts",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate/bulk/:job_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "bulk",
                ":job_id"
              ],
              "variable": [
                {
                  "key": "job_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Bulk job status and counts"
          },
          "response": []
        },
        {
          "name": "Cancel or remove a bulk job",
          "request": {
            "method": "DELETE",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate/bulk/:job_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "bulk",
                ":job_id"
              ],
              "variable": [
                {
                  "key": "job_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Deletes the job and all its results. Addresses not yet processed are given back to the allowance."
          },
          "response": []
        },
        {
          "name": "Bulk job results",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/validate/bulk/:job_id/results",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "validate",
                "bulk",
                ":job_id",
                "results"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "100",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "after",
                  "value": "0",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "result",
                  "value": "valid",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "format",
                  "value": "json",
                  "description": "",
                  "disabled": true
                }
              ],
              "variable": [
                {
                  "key": "job_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Processed rows in upload order. JSON is paginated: pass `next_after` as `after`\nuntil it is null. With `format=csv` (or `Accept: text/csv`) every processed row is\nreturned as one CSV download with the columns\n`address,result,reasons,score,did_you_mean`."
          },
          "response": []
        }
      ]
    },
    {
      "name": "Events",
      "description": "Real-time event streaming",
      "item": [
        {
          "name": "List a message's events",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/messages/:id/events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "messages",
                ":id",
                "events"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Every event of one queued message (one recipient), oldest first. Another account's id answers an empty list."
          },
          "response": []
        },
        {
          "name": "List events",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/events",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "events"
              ],
              "query": [
                {
                  "key": "event_type",
                  "value": "bounced,complained",
                  "description": "One type or several separated by commas: accepted, delivered, deferred, bounced, dropped, opened, clicked, complained, unsubscribed, cancelled",
                  "disabled": true
                },
                {
                  "key": "recipient",
                  "value": "user@example.com",
                  "description": "Exact recipient address (case-insensitive)",
                  "disabled": true
                },
                {
                  "key": "message_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Events of one message, live or test",
                  "disabled": true
                },
                {
                  "key": "domain",
                  "value": "string",
                  "description": "One of your sending domains",
                  "disabled": true
                },
                {
                  "key": "tag",
                  "value": "string",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "metadata",
                  "value": "{}",
                  "description": "Events of messages whose `metadata` holds every given pair, exact match: `metadata[order]=42` (or `metadata.order=42`). Up to 10 keys.",
                  "disabled": true
                },
                {
                  "key": "from",
                  "value": "hello@example.com",
                  "description": "Events created at or after this time",
                  "disabled": true
                },
                {
                  "key": "to",
                  "value": "['user@example.org']",
                  "description": "Events created at or before this time",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "true: test events only; false: live only. Default: the side of the key making the request. Not applied with message_id",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "cursor",
                  "value": "string",
                  "description": "`pagination.next_cursor` of the previous page",
                  "disabled": true
                },
                {
                  "key": "before",
                  "value": "2030-01-01T00:00:00Z",
                  "description": "Older timestamp-only cursor; prefer `cursor`",
                  "disabled": true
                }
              ]
            },
            "description": "Your account's message events, newest first. All filters are optional\nand combine with AND. Page with `cursor`: while\n`pagination.has_more` is true, pass `pagination.next_cursor`.\n\nLive and test events are never mixed: without `test` a live key gets\nlive events and a test key gets test events. With `message_id` the\nevents of that message are listed whichever side it is on."
          },
          "response": []
        },
        {
          "name": "List export jobs",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/events/export",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "events",
                "export"
              ]
            },
            "description": "Your export jobs, newest first (up to 20). Expired jobs are not listed."
          },
          "response": []
        },
        {
          "name": "Start a CSV export of events",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/events/export",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "events",
                "export"
              ]
            },
            "description": "Queues a background job that writes the matching events to a CSV file\n(columns: event_id, timestamp, event_type, message_id, recipient,\nfrom, subject, tags, details). One export per account at a time. A\nfile holds at most 100,000 events, newest first; a longer result is\ncut there and the job has `truncated: true`. Files are deleted after\n7 days.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"event_type\": \"string\",\n  \"recipient\": \"user@example.com\",\n  \"domain\": \"string\",\n  \"tag\": \"string\",\n  \"test\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Export job status",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/events/export/:id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "events",
                "export",
                ":id"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "Export job status"
          },
          "response": []
        },
        {
          "name": "Download the CSV",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/events/export/:id/download",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "events",
                "export",
                ":id",
                "download"
              ],
              "variable": [
                {
                  "key": "id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": ""
                }
              ]
            },
            "description": "The file of a completed job. Needs the same authentication as every other call. Available until the job's `expires_at`."
          },
          "response": []
        },
        {
          "name": "Message counts per hour or day",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stats/time-series",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stats",
                "time-series"
              ],
              "query": [
                {
                  "key": "resolution",
                  "value": "day",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "days",
                  "value": "30",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "domain",
                  "value": "string",
                  "description": "Recipient domain",
                  "disabled": true
                },
                {
                  "key": "tag",
                  "value": "string",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "true: test messages only; false: live only. Default: the side of the key making the request",
                  "disabled": true
                }
              ]
            },
            "description": "Messages created in the window, grouped by hour or day of creation,\noldest first, with their current status. Buckets without messages\nare left out. Any `resolution` other than `hour` is treated as `day`."
          },
          "response": []
        },
        {
          "name": "Monthly usage counters",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stats/monthly",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stats",
                "monthly"
              ],
              "query": [
                {
                  "key": "months",
                  "value": "12",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "The account's monthly counters, oldest first, counting the current month. Months without traffic are left out."
          },
          "response": []
        },
        {
          "name": "Audience overview",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/audience/overview",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "audience",
                "overview"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "90",
                  "description": "Messages of the last this many days.",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "`true`: test messages only. `false`: live only. Default: the side of the key.",
                  "disabled": true
                }
              ]
            },
            "description": "Who the account's mail went to in a period and how they responded.\nOpens and clicks exist only for messages sent with tracking."
          },
          "response": []
        },
        {
          "name": "Engagement per recipient",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/audience/recipients",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "audience",
                "recipients"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "90",
                  "description": "Messages of the last this many days.",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "`true`: test messages only. `false`: live only. Default: the side of the key.",
                  "disabled": true
                },
                {
                  "key": "sort",
                  "value": "opens",
                  "description": "Largest (or latest) first.",
                  "disabled": true
                },
                {
                  "key": "limit",
                  "value": "50",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "offset",
                  "value": "0",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "Engagement per recipient"
          },
          "response": []
        },
        {
          "name": "Engagement per recipient domain",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/audience/domains",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "audience",
                "domains"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "90",
                  "description": "Messages of the last this many days.",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "`true`: test messages only. `false`: live only. Default: the side of the key.",
                  "disabled": true
                }
              ]
            },
            "description": "The 100 recipient domains with the most messages in the period."
          },
          "response": []
        },
        {
          "name": "Opens per weekday of sending",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/audience/send-times",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "audience",
                "send-times"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "90",
                  "description": "Messages of the last this many days.",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "`true`: test messages only. `false`: live only. Default: the side of the key.",
                  "disabled": true
                }
              ]
            },
            "description": "For each weekday (UTC), how many of the messages sent that day in the period were opened.\nThe day with the highest share is rated `best`, days within 90% of it `good`. A weekday is\nrated only when it has at least `min_messages` messages and one open."
          },
          "response": []
        },
        {
          "name": "People on your lists, per week",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/audience/growth",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "audience",
                "growth"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "90",
                  "description": "",
                  "disabled": true
                }
              ]
            },
            "description": "How many people are on the account's mailing lists, and for each week of the period (Monday first, UTC) how many joined, how many of those through a sign-up form, and the running total. People removed since are not counted in any week."
          },
          "response": []
        },
        {
          "name": "Ask a question about your audience",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/audience/ask",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "audience",
                "ask"
              ]
            },
            "description": "Answers a question in plain words from the account's figures for the period: messages\nsent, delivered, bounced, opened and clicked for this period and the one before, per week,\nper weekday, per tag, per mail service and per list. Needs the `read` scope.\n\nThe answer is written by Claude (Anthropic) with the same key as the AI template builder:\nyour own key (`PUT /v1/templates/ai/key`), or the platform key where offered, whose\nmonthly allowance the two share. **Only the question and totals are sent to the model**:\nno email address, no person's name and no message content. A mail service is named only\nwhen at least five different people use it. Test messages are left out.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"question\": \"How did this month compare with the one before?\",\n  \"days\": 90\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Counts by provider, tag, domain, bounce category, mail client or country",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/stats/breakdown?by=provider",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "stats",
                "breakdown"
              ],
              "query": [
                {
                  "key": "by",
                  "value": "provider",
                  "description": ""
                },
                {
                  "key": "days",
                  "value": "30",
                  "description": "",
                  "disabled": true
                },
                {
                  "key": "test",
                  "value": "True",
                  "description": "true: test messages only; false: live only. Default: the side of the key making the request",
                  "disabled": true
                }
              ]
            },
            "description": "`provider` groups by the recipient's mailbox provider, worked out from\nthe recipient domain with a list of consumer mail domains (`google`,\n`microsoft`, `yahoo`, `apple`, `other`); company domains hosted at\nGoogle or Microsoft count as `other`. `tag` and `domain` (sending\ndomain) return the 100 largest. For these three, counts are messages\ncreated in the window by current status. `bounce_category` counts\nbounce events and returns only `bounced`. `client` counts `opened` and\n`clicked` events by the mail client family taken from the open or\nclick request's User-Agent (`gmail`, `apple_mail`, `outlook`, `yahoo`,\n`thunderbird`, `browser`, `other`, `unknown`) and returns only\n`opened` and `clicked`. Gmail and Yahoo fetch images through their own\nproxies, so those rows do not show the reader's device; opens and\nclicks recorded before 2026-11-21 are `unknown`. `country` counts the\nsame events by the two-letter country code (ISO 3166-1 alpha-2) of the\naddress the open or click came from, looked up in a GeoIP database\nthe server operator configures; only the code is stored, never the\naddress. Without a database (`geoip_configured: false`), for\naddresses the database does not cover, and for events recorded\nbefore the lookup existed, the key is `unknown`. Opens through image\nproxies (Gmail, Yahoo, Apple Mail Privacy Protection) show the\nproxy's country."
          },
          "response": []
        },
        {
          "name": "Retention settings and the plan's retention",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/retention",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "retention"
              ]
            },
            "description": "Retention settings and the plan's retention"
          },
          "response": []
        },
        {
          "name": "Change your retention limits",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/retention",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "retention"
              ]
            },
            "description": "Needs the `admin` scope. A full replace; a field left out or null means no limit of your own.",
            "body": {
              "mode": "raw",
              "raw": "{}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Billing",
      "description": "Plans, prices, monthly usage, overage and prepaid credits",
      "item": [
        {
          "name": "List plans and prices",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/plans",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "plans"
              ]
            },
            "description": "Every plan with its limits and prices. `prices` holds the list prices\nper currency; `your_price` is what the calling account pays, in its\ncurrency and with its discount applied.\n\nThere are two plan families (`family`). Sending plans are priced by\nemails a month. Inbox plans are listed and can be bought only where\nthe service has them on sale; elsewhere they are absent from this\nlist (except the plan the account itself is on), and a checkout of\nor change to one is refused with `400`. Inbox plans are priced by\nstorage: they include\nmailboxes, domains and a monthly sending allowance for\nperson-to-person mail, and sell no extra volume, so sending stops at\nthe allowance (`429`, code `quota_exceeded`; prepaid credits are used\nfirst). On an Inbox plan these requests are refused with `403` and\ncode `not_in_plan`: `POST /messages/batch`, every `/bridge/...`\nprovider-compatible route, creating or changing mailing lists\n(`/lists`), IP pools (`/ip-pools`) and `POST /dedicated-ips`. A send\nwith `list_id` is refused with `403` too. An Inbox plan's domain\nlimit is enforced: adding a domain past it answers `403`."
          },
          "response": []
        },
        {
          "name": "Get a plan",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/plans/:plan_id",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "plans",
                ":plan_id"
              ],
              "variable": [
                {
                  "key": "plan_id",
                  "value": "starter",
                  "description": ""
                }
              ]
            },
            "description": "Get a plan"
          },
          "response": []
        },
        {
          "name": "This month against the plan",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/billing/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "usage"
              ]
            },
            "description": "Emails sent this month, the plan's allowance, and what was sent past\nit: `credits_used` (paid with prepaid credits) and `overage` (counted\nper 1,000 on paid plans). `overage_charging` says whether the overage\nis invoiced for this account."
          },
          "response": []
        },
        {
          "name": "Monthly usage history",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/usage",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "usage"
              ],
              "query": [
                {
                  "key": "tenant_id",
                  "value": "00000000-0000-0000-0000-000000000000",
                  "description": "Optional. The authenticated account is always the one reported; another account's id is refused with 403.",
                  "disabled": true
                },
                {
                  "key": "months",
                  "value": "0",
                  "description": "How many months back (1 to 24, default 1)",
                  "disabled": true
                }
              ]
            },
            "description": "Monthly usage history"
          },
          "response": []
        },
        {
          "name": "New-account review status and today's sending cap",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/sending-status",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "sending-status"
              ]
            },
            "description": "Every new account is reviewed. Until it is approved it can queue up to\n`daily_cap` (100) messages per UTC day; sends past that are refused.\nAn approved account has `daily_cap: null` (only the plan's limits) or\na custom cap. `sent_today` counts queued messages (one per recipient,\ntest sends excluded) since midnight UTC."
          },
          "response": []
        },
        {
          "name": "Billing settings",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/billing/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "settings"
              ]
            },
            "description": "Billing settings"
          },
          "response": []
        },
        {
          "name": "Set the overage switch, the monthly cap and the currency",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/billing/settings",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "settings"
              ]
            },
            "description": "Replaces the overage switch and cap. Leave `overage_cap_emails` out\n(or null) for no cap. The currency can be changed here until the\naccount has a subscription; after that it is fixed (cancel the\nsubscription at the end of the paid period and subscribe again to\nuse the other currency). Needs the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"overage_enabled\": true,\n  \"currency\": \"usd\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Usage notice setting",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/billing/notices",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "notices"
              ]
            },
            "description": "Whether the account owner is emailed at 80% and 100% of the monthly allowance."
          },
          "response": []
        },
        {
          "name": "Switch usage notices on or off",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/billing/notices",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "notices"
              ]
            },
            "description": "Needs the `admin` scope. Off also stops retries of a notice not yet sent.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"usage_notices\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Prepaid email credits",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/billing/credits",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "credits"
              ]
            },
            "description": "Balance, the packs on sale and recent changes. Credits never expire.\nThey are used once the monthly allowance is used up, before overage."
          },
          "response": []
        },
        {
          "name": "Buy a credit pack",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/billing/credits/checkout",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "credits",
                "checkout"
              ]
            },
            "description": "Buy a credit pack",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"pack\": \"100k\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Whether the account is within its plan limits",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/billing/quota",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "quota"
              ]
            },
            "description": "Whether the account is within its plan limits"
          },
          "response": []
        },
        {
          "name": "Open the Stripe billing portal",
          "request": {
            "method": "POST",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/billing/portal",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "portal"
              ]
            },
            "description": "Needs the `admin` scope. The portal link is returned in `checkout_url`."
          },
          "response": []
        },
        {
          "name": "List dedicated IP requests",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/dedicated-ips",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "dedicated-ips"
              ]
            },
            "description": "List dedicated IP requests"
          },
          "response": []
        },
        {
          "name": "Request a dedicated IP",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/dedicated-ips",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "dedicated-ips"
              ]
            },
            "description": "Needs the `admin` scope and the Scale plan or higher. The request is reviewed by hand. On an Inbox plan it is refused with `403`, code `not_in_plan`.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"notes\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "List the dedicated IPs assigned to the account",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/dedicated-ips/assigned",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "dedicated-ips",
                "assigned"
              ]
            },
            "description": "List the dedicated IPs assigned to the account"
          },
          "response": []
        },
        {
          "name": "Subscribe to a paid plan",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/billing/checkout",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "checkout"
              ]
            },
            "description": "Subscribe to a paid plan",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"plan\": \"starter\",\n  \"interval\": \"monthly\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        },
        {
          "name": "Change the subscription's plan or billing interval",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/billing/subscription/change",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "billing",
                "subscription",
                "change"
              ]
            },
            "description": "Moves the account's existing subscription to another plan, or to\nmonthly or yearly billing. Fields left out stay as they are. The\nchange applies at once and the payment provider prorates: time\nalready paid for is credited and the new price is charged for the\nrest.\n\nThe currency is chosen when a subscription is created and cannot be\nchanged on an existing subscription. A `currency` other than the\nsubscription's is refused with `409` (code\n`currency_change_not_supported`) and nothing is changed. To use the\nother currency, cancel the subscription at the end of the paid\nperiod and subscribe again in that currency.\n\n`GET /billing/settings` lists under `subscription_change.options`\nwhich combinations are available. A combination without a configured\nprice is refused with `400` and the reason. Needs the `admin` scope.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"plan\": \"starter\",\n  \"interval\": \"monthly\",\n  \"currency\": \"usd\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "System",
      "description": "Health and version endpoints",
      "item": [
        {
          "name": "Health check",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "health"
              ]
            },
            "description": "Health check",
            "auth": {
              "type": "noauth"
            }
          },
          "response": []
        }
      ]
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://mailaki.com/v1",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "string"
    }
  ]
}
