{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mailcheer-com/json-schema/mailcheer-com-subscriber-request-schema.json",
  "title": "SubscriberRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mailcheer-com-subscribers-api-openapi.yml#/components/schemas/SubscriberRequest",
  "type": "object",
  "required": [
    "email"
  ],
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "maxLength": 320,
      "description": "**Required.** Lower-cased on save."
    },
    "firstName": {
      "type": "string",
      "maxLength": 120
    },
    "lastName": {
      "type": "string",
      "maxLength": 120
    },
    "prenom": {
      "type": "string",
      "maxLength": 120,
      "description": "Alias of `firstName`. Fill in only one of the two."
    },
    "nom": {
      "type": "string",
      "maxLength": 120,
      "description": "Alias of `lastName`. Fill in only one of the two."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 60
      },
      "description": "Workspace tags. The ones that do not exist yet are created.",
      "maxItems": 20
    },
    "fields": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "maxLength": 500
      },
      "description": "Custom fields, by their technical key. Unknown keys create nothing: they come back in `ignored_fields`."
    },
    "double_opt_in": {
      "type": "boolean",
      "default": true,
      "description": "`false` subscribes straight away, with no confirmation email. The caller then bears responsibility for the consent."
    }
  }
}