{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postfleet-ai/json-schema/postfleet-ai-mailbox-schema.json",
  "title": "Mailbox",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postfleet-ai-openapi.json#/components/schemas/Mailbox",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "address": {
      "type": "string"
    },
    "display_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "domain_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Custom domain id, or null for the shared platform domain."
    },
    "domain_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Custom domain name, or null for the shared platform domain."
    },
    "created_at": {
      "type": "string"
    },
    "extraction_schema_id": {
      "description": "Omitted for mailbox-bound keys — it is an account-plane identifier they cannot act on.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "address",
    "display_name",
    "domain_id",
    "domain_name",
    "created_at"
  ],
  "additionalProperties": false
}