{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/truelist-io/json-schema/truelist-io-batch-schema.json",
  "title": "batch",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/truelist-io-openapi.yml#/components/schemas/batch",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The UUID of the batch"
    },
    "batch_state": {
      "type": "string",
      "enum": [
        "pending",
        "pending_processing",
        "processing",
        "completed"
      ],
      "description": "The state of the batch verification process"
    },
    "batch_type": {
      "type": "string",
      "enum": [
        "user_import api_import integration"
      ],
      "description": "Where the batch was created from"
    },
    "email_count": {
      "type": "integer",
      "description": "The count of emails in the batch."
    },
    "processed_count": {
      "type": "integer",
      "description": "The number of emails that have gone through the verification process."
    },
    "disposable_count": {
      "type": "integer",
      "description": "The number of disposable emails in the batch."
    },
    "role_count": {
      "type": "integer",
      "description": "The number of role emails in the batch."
    },
    "failed_syntax_check_count": {
      "type": "integer",
      "description": "The number of email addresses that failed the syntax checker."
    },
    "failed_mx_check_count": {
      "type": "integer",
      "description": "The number of email addresses that failed the domain MX check."
    },
    "failed_no_mailbox_count": {
      "type": "integer",
      "description": "The number of email addresses do not exist"
    },
    "ok_for_all_count": {
      "type": "integer",
      "description": "The number of email addresses that have a domain that accepts any email address."
    },
    "unknown_count": {
      "type": "integer",
      "description": "The number of email addresses that have an unknown status."
    },
    "ok_count": {
      "type": "integer",
      "description": "The number of email addresses are ok for delivery."
    },
    "name": {
      "type": "string",
      "description": "The name of the batch."
    },
    "webhook_url": {
      "type": "string",
      "description": "Supply a webhook_url when creating a batch.  Truelist will call the url when the batch has completed."
    },
    "safest_bet_csv_url": {
      "type": "string",
      "description": "A url to download a csv of the batch with the safest emails."
    },
    "highest_reach_csv_url": {
      "type": "string",
      "description": "A url to download a csv of the batch with the highest reach emails."
    },
    "only_invalid_csv_url": {
      "type": "string",
      "description": "A url to download a csv of the batch with only invalid emails."
    },
    "annotated_csv_url": {
      "type": "string",
      "description": "A url to download a csv of the batch with an extra column that has the email validation results."
    }
  }
}