Mailbuttons · Schema

PolicyResponse

Field names are snake_case here (this wrapper predates the camelCase `MailPolicy` convention); only `policy`'s own fields are camelCase.

AI AgentsQuoting

Properties

Name Type Description
mailbox_id integer
policy object
version integer
warnings array Non-fatal validation warnings from PUT (e.g. unknown capability names). Omitted when empty; always empty on GET.
View JSON Schema on GitHub

JSON Schema

mailbuttons-com-policy-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailbuttons-com/json-schema/mailbuttons-com-policy-response-schema.json",
  "title": "PolicyResponse",
  "description": "Field names are snake_case here (this wrapper predates the camelCase `MailPolicy` convention); only `policy`'s own fields are camelCase.",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mailbuttons-com-openapi.json#/components/schemas/PolicyResponse",
  "properties": {
    "mailbox_id": {
      "format": "int32",
      "type": "integer"
    },
    "policy": {
      "$ref": "#/$defs/MailPolicy"
    },
    "version": {
      "format": "int32",
      "type": "integer"
    },
    "warnings": {
      "description": "Non-fatal validation warnings from PUT (e.g. unknown capability names). Omitted when empty; always empty on GET.",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "mailbox_id",
    "version",
    "policy"
  ],
  "type": "object",
  "$defs": {
    "AuditConfig": {
      "properties": {
        "includeBodyHash": {
          "type": "boolean"
        },
        "retentionDays": {
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "retentionDays",
        "includeBodyHash"
      ],
      "type": "object"
    },
    "ContentGuard": {
      "properties": {
        "reason": {
          "type": "string"
        },
        "reject": {
          "description": "Regex source (Rust `regex` crate flavour); compiled at PUT time.",
          "type": "string"
        }
      },
      "required": [
        "reject",
        "reason"
      ],
      "type": "object"
    },
    "MailPolicy": {
      "description": "camelCase on the wire. On PUT, `senders`/`contentGuards`/`blocklist`\ndefault to empty and `mode` defaults to `live` when omitted; the GET/PUT\nresponse always includes all of them (`blocklist` omitted when empty).\n",
      "properties": {
        "auditLog": {
          "$ref": "#/$defs/AuditConfig"
        },
        "blocklist": {
          "description": "Recipient addresses/bare domains this mailbox may never send to. Omitted when empty.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "contentGuards": {
          "items": {
            "$ref": "#/$defs/ContentGuard"
          },
          "type": "array"
        },
        "defaultAction": {
          "enum": [
            "bounce",
            "drop"
          ],
          "type": "string"
        },
        "mode": {
          "enum": [
            "live",
            "supervised",
            "shadow"
          ],
          "type": "string"
        },
        "senders": {
          "items": {
            "$ref": "#/$defs/SenderRule"
          },
          "type": "array"
        }
      },
      "required": [
        "defaultAction",
        "senders",
        "contentGuards",
        "mode",
        "auditLog"
      ],
      "type": "object"
    },
    "RateLimit": {
      "properties": {
        "perDay": {
          "format": "int32",
          "type": "integer"
        },
        "perHour": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "SenderMatch": {
      "properties": {
        "address": {
          "type": "string"
        },
        "domain": {
          "type": "string"
        },
        "requireDkim": {
          "type": "boolean"
        },
        "requireSpf": {
          "type": "boolean"
        }
      },
      "required": [
        "requireDkim",
        "requireSpf"
      ],
      "type": "object"
    },
    "SenderRule": {
      "properties": {
        "allowedHosts": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "capabilities": {
          "description": "Opaque capability strings; unknown values warn but don't reject at PUT time.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "match": {
          "$ref": "#/$defs/SenderMatch"
        },
        "passive": {
          "description": "When true, matching mail is accepted and audited but never invokes the agent.",
          "type": "boolean"
        },
        "rateLimit": {
          "$ref": "#/$defs/RateLimit"
        },
        "tokenBudget": {
          "$ref": "#/$defs/TokenBudget"
        }
      },
      "required": [
        "match",
        "capabilities",
        "passive"
      ],
      "type": "object"
    },
    "TokenBudget": {
      "properties": {
        "perDay": {
          "format": "int32",
          "type": "integer"
        },
        "perThread": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/mailbuttons-com-policy-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.