{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sendmux-ai/json-schema/sendmux-ai-mailbox-item-cursor-list-response-schema.json",
  "title": "MailboxItemCursorListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sendmux-ai-mailboxes-api-openapi.yml#/components/schemas/MailboxItemCursorListResponse",
  "allOf": [
    {
      "$ref": "#/$defs/SuccessEnvelope"
    },
    {
      "properties": {
        "data": {
          "items": {
            "$ref": "#/$defs/Mailbox"
          },
          "type": "array"
        },
        "meta": {
          "$ref": "#/$defs/ResponseMeta"
        },
        "pagination": {
          "$ref": "#/$defs/CursorPagination"
        }
      },
      "required": [
        "data",
        "pagination"
      ],
      "type": "object"
    }
  ],
  "unevaluatedProperties": false,
  "$defs": {
    "CursorPagination": {
      "additionalProperties": false,
      "properties": {
        "has_more": {
          "type": "boolean"
        },
        "next_cursor": {
          "type": "string"
        }
      },
      "required": [
        "has_more"
      ],
      "type": "object"
    },
    "Mailbox": {
      "additionalProperties": false,
      "properties": {
        "created_at": {
          "description": "ISO 8601 creation timestamp",
          "type": "string"
        },
        "display_name": {
          "description": "Optional display name shown in outbound From headers",
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "description": "Mailbox email address (lowercase)",
          "type": "string"
        },
        "id": {
          "description": "Public ID",
          "type": "string"
        },
        "quota_bytes": {
          "description": "Storage quota in bytes. Current writable tiers are 1 GB, 5 GB, and 50 GB.",
          "type": [
            "integer",
            "null"
          ]
        },
        "send_scope": {
          "$ref": "#/$defs/MailboxSendScope"
        },
        "status": {
          "description": "active | suspended | deleted",
          "type": "string"
        }
      },
      "required": [
        "id",
        "email",
        "display_name",
        "quota_bytes",
        "send_scope",
        "status",
        "created_at"
      ],
      "type": "object"
    },
    "MailboxSendScope": {
      "additionalProperties": false,
      "properties": {
        "group_public_ids": {
          "description": "Delivery group public IDs (only when type=group)",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "provider_public_ids": {
          "description": "Provider public IDs (only when type=providers)",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "type": {
          "description": "Outbound routing strategy. `all` lets the mailbox use any team-configured provider; `providers` restricts to the listed provider IDs; `group` routes via a delivery group.",
          "enum": [
            "all",
            "providers",
            "group"
          ],
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": [
        "object",
        "null"
      ]
    },
    "ResponseMeta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "SuccessEnvelope": {
      "properties": {
        "meta": {
          "additionalProperties": {},
          "properties": {},
          "type": "object"
        },
        "ok": {
          "enum": [
            true
          ],
          "type": "boolean"
        }
      },
      "required": [
        "ok",
        "meta"
      ],
      "type": "object"
    }
  }
}