{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/outreach2day-com/json-schema/outreach2day-com-quote-request-schema.json",
  "title": "QuoteRequest",
  "description": "POST /v2/quotes body.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/outreach2day-com-openapi.json#/components/schemas/QuoteRequest",
  "properties": {
    "workspace_id": {
      "type": "integer",
      "title": "Workspace Id",
      "description": "Workspace to order for."
    },
    "domains": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Domains",
      "description": "New root domains to register."
    },
    "mailboxes": {
      "anyOf": [
        {
          "$ref": "#/$defs/MailboxCount"
        },
        {
          "items": {
            "$ref": "#/$defs/MailboxSpec"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mailboxes",
      "description": "Either {\"count\": N} (N mailboxes; with new domains they are named and spread over the new domains automatically) or an explicit list of {address, first_name, last_name, domain}."
    },
    "mailboxes_per_domain": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Mailboxes Per Domain",
      "description": "Shortcut: this many generated mailboxes on each new domain (or each mailbox_domains entry)."
    },
    "mailbox_domains": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array",
          "maxItems": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Mailbox Domains",
      "description": "Existing active domains of the workspace (bought, or connected with our nameservers set) to create the mailboxes on, instead of new domains. Needs persona."
    },
    "persona": {
      "anyOf": [
        {
          "$ref": "#/$defs/Persona"
        },
        {
          "type": "null"
        }
      ],
      "description": "Sender name for generated mailboxes (defaults to the registrant name)."
    },
    "registrant": {
      "anyOf": [
        {
          "$ref": "#/$defs/RegistrantContact"
        },
        {
          "type": "null"
        }
      ],
      "description": "Registrant contact. Required when domains are ordered."
    },
    "redirect_domain": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Redirect Domain",
      "description": "Where the new domains redirect (optional)."
    },
    "test_mode": {
      "type": "boolean",
      "title": "Test Mode",
      "description": "Stripe test mode + simulated fulfilment. Not available in production.",
      "default": false
    },
    "source": {
      "type": "string",
      "enum": [
        "api",
        "mcp"
      ],
      "title": "Source",
      "default": "api"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "workspace_id"
  ],
  "$defs": {
    "MailboxCount": {
      "properties": {
        "count": {
          "type": "integer",
          "maximum": 5000.0,
          "minimum": 0.0,
          "title": "Count",
          "description": "Number of mailboxes to add."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "count"
      ],
      "title": "MailboxCount"
    },
    "MailboxSpec": {
      "properties": {
        "address": {
          "type": "string",
          "format": "email",
          "title": "Address"
        },
        "first_name": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "title": "First Name"
        },
        "last_name": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "title": "Last Name"
        },
        "domain": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Domain",
          "description": "Domain of the address; defaults to the part after '@'."
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "address",
        "first_name",
        "last_name"
      ],
      "title": "MailboxSpec"
    },
    "Persona": {
      "properties": {
        "first_name": {
          "type": "string",
          "maxLength": 50,
          "minLength": 1,
          "title": "First Name"
        },
        "last_name": {
          "type": "string",
          "maxLength": 50,
          "minLength": 1,
          "title": "Last Name"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "first_name",
        "last_name"
      ],
      "title": "Persona"
    },
    "RegistrantContact": {
      "properties": {
        "first_name": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "title": "First Name"
        },
        "last_name": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "title": "Last Name"
        },
        "real_address": {
          "type": "string",
          "maxLength": 200,
          "minLength": 3,
          "title": "Real Address"
        },
        "city": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "title": "City"
        },
        "state_province": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "title": "State Province"
        },
        "postal_code": {
          "type": "string",
          "maxLength": 20,
          "minLength": 2,
          "title": "Postal Code"
        },
        "country": {
          "type": "string",
          "maxLength": 100,
          "minLength": 2,
          "title": "Country"
        },
        "phone": {
          "type": "string",
          "title": "Phone"
        },
        "email_address": {
          "anyOf": [
            {
              "type": "string",
              "format": "email"
            },
            {
              "type": "null"
            }
          ],
          "title": "Email Address"
        },
        "organization_name": {
          "type": "string",
          "maxLength": 200,
          "minLength": 1,
          "title": "Organization Name"
        },
        "job_title": {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "title": "Job Title"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "first_name",
        "last_name",
        "real_address",
        "city",
        "state_province",
        "postal_code",
        "country",
        "phone",
        "organization_name",
        "job_title"
      ],
      "title": "RegistrantContact",
      "description": "Registrant contact for domain registration (same fields as web onboarding)."
    }
  }
}