{
  "info": {
    "name": "Agent Mail — mcp.ai",
    "description": "REST API for the Agent Mail MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/agent_mail",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "agent_mail_create_inbox",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/create/inbox",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "create",
            "inbox"
          ]
        },
        "description": "Create a new AgentMail inbox via API. Returns the inbox_id and email address for sending/receiving messages. Use when provisioning new inboxes for agents or workflows.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"domain\": \"\",\n  \"username\": \"\",\n  \"client_id\": \"\",\n  \"display_name\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "agent_mail_get_message",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/message",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "message"
          ]
        },
        "description": "Retrieve the complete details of a specific email message from an AgentMail inbox. This action returns the full message content including sender, recipients, subject, body (both text and HTML), attach",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"inbox_id\": \"\",\n  \"message_id\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "agent_mail_list_inboxes",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/inboxes",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "inboxes"
          ]
        },
        "description": "List all inboxes available to the authenticated AgentMail account. Use this to discover valid inbox_id values for message operations.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"limit\": 0,\n  \"ascending\": false,\n  \"page_token\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "agent_mail_list_messages",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/messages",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "messages"
          ]
        },
        "description": "List messages from an AgentMail inbox. Returns a `messages` array; each message uses `message_id` and `timestamp` fields (not `id`, `date`, or `items`).",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"after\": \"\",\n  \"limit\": 0,\n  \"before\": \"\",\n  \"labels\": \"\",\n  \"inbox_id\": \"\",\n  \"ascending\": false,\n  \"page_token\": \"\",\n  \"include_spam\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "agent_mail_send_email",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/send/email",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "send",
            "email"
          ]
        },
        "description": "Send an email using AgentMail API",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"cc\": \"\",\n  \"to\": \"\",\n  \"bcc\": \"\",\n  \"html\": \"\",\n  \"text\": \"\",\n  \"labels\": \"\",\n  \"subject\": \"\",\n  \"inbox_id\": \"\",\n  \"reply_to\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}