{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/paubox/main/json-schema/paubox-bulk-create-subscribers-request-schema.json",
  "title": "BulkCreateSubscribersRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paubox-subscribers-api-openapi.yml#/components/schemas/BulkCreateSubscribersRequest",
  "type": "object",
  "properties": {
    "subscribers": {
      "type": "array",
      "description": "Array of subscribers to create",
      "items": {
        "$ref": "#/$defs/BulkCreateSubscribersRequest_subscribers"
      }
    },
    "subscription_list_id": {
      "type": "string",
      "description": "Optional subscription list ID"
    }
  },
  "$defs": {
    "BulkCreateSubscribersRequest_subscribers": {
      "required": [
        "email"
      ],
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "description": "Subscriber's email address (required)",
          "format": "email"
        },
        "first_name": {
          "type": "string",
          "description": "Subscriber's first name"
        },
        "last_name": {
          "type": "string",
          "description": "Subscriber's last name"
        },
        "custom_fields": {
          "type": "array",
          "description": "Optional custom fields (unlimited)",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}