{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentisend-com/json-schema/agentisend-com-post-domains-body-schema.json",
  "title": "PostDomainsBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentisend-com-domains-api-openapi.yml#/components/schemas/PostDomainsBody",
  "properties": {
    "capabilities": {
      "additionalProperties": false,
      "description": "What the domain does: sending (default enabled) and receiving (default disabled), each enabled or disabled. At least one must be enabled.",
      "properties": {
        "receiving": {
          "description": "enabled or disabled. Default disabled. Enabled: this domain accepts inbound mail.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string"
        },
        "sending": {
          "description": "enabled or disabled. Default enabled. Disabled: mail from this domain is refused and the domain is not signed for.",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "clickTracking": {
      "description": "Same as click_tracking. click_tracking wins if both are sent.",
      "type": "boolean"
    },
    "click_tracking": {
      "description": "Rewrite links so clicks can be counted. Off unless you set this.",
      "type": "boolean"
    },
    "customReturnPath": {
      "description": "Same as custom_return_path.",
      "maxLength": 63,
      "minLength": 1,
      "type": "string"
    },
    "custom_return_path": {
      "description": "Same as return_path_subdomain.",
      "maxLength": 63,
      "minLength": 1,
      "type": "string"
    },
    "name": {
      "description": "The domain you send from, such as yourdomain.com.",
      "maxLength": 253,
      "minLength": 3,
      "type": "string"
    },
    "openTracking": {
      "description": "Same as open_tracking. open_tracking wins if both are sent.",
      "type": "boolean"
    },
    "open_tracking": {
      "description": "Count opens. Off unless you set this.",
      "type": "boolean"
    },
    "region": {
      "description": "us or eu. Default us. The region is recorded on the domain. All mail is sent from the US today. For one release the legacy names us-east-1, sa-east-1 and ap-northeast-1 map to us; eu-west-1 maps to eu.",
      "enum": [
        "us",
        "eu"
      ],
      "type": "string"
    },
    "return_path_subdomain": {
      "description": "The label of the return-path host. Default send. Up to 63 characters, starting with a letter.",
      "maxLength": 63,
      "minLength": 1,
      "pattern": "^[a-z](?:[a-z0-9-]{0,61}[a-z0-9])?$",
      "type": "string"
    },
    "tls": {
      "description": "Same as tls_mode. tls_mode wins if both are sent.",
      "enum": [
        "opportunistic",
        "enforced"
      ],
      "type": "string"
    },
    "tls_mode": {
      "description": "opportunistic tries TLS and falls back. enforced refuses a receiver that cannot do TLS.",
      "enum": [
        "opportunistic",
        "enforced"
      ],
      "type": "string"
    },
    "tracking": {
      "description": "Whether to publish a tracking host. On by default. Not required to verify the domain.",
      "type": "boolean"
    },
    "tracking_subdomain": {
      "description": "The label of the tracking host. Default links, which publishes links.yourdomain.com.",
      "maxLength": 253,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "type": "object"
}