{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pricklymails-com/json-schema/pricklymails-com-submit-batch-response-schema.json",
  "title": "SubmitBatchResponse",
  "description": "`POST /api/batches` response body.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pricklymails-com-batches-api-openapi.yml#/components/schemas/SubmitBatchResponse",
  "type": "object",
  "required": [
    "batch_uuid",
    "status",
    "total_jobs",
    "syntax_errors",
    "duplicates",
    "estimated_cost"
  ],
  "properties": {
    "batch_uuid": {
      "type": "string",
      "description": "Public UUID of the batch. Use it with `GET /api/batches/{uuid}` to poll status."
    },
    "duplicates": {
      "type": "integer",
      "format": "int64",
      "description": "Number of submitted addresses that were exact duplicates of an already-accepted one.",
      "minimum": 0
    },
    "estimated_cost": {
      "type": "integer",
      "format": "int32",
      "description": "Total tokens reserved for the batch.",
      "minimum": 0
    },
    "status": {
      "type": "string",
      "description": "Status of the batch right after submit (always `\"processing\"`)."
    },
    "syntax_errors": {
      "type": "integer",
      "format": "int64",
      "description": "Number of submitted addresses that failed syntax validation.",
      "minimum": 0
    },
    "total_jobs": {
      "type": "integer",
      "format": "int64",
      "description": "Number of unique valid emails queued as jobs.",
      "minimum": 0
    }
  }
}