{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pricklymails-com/json-schema/pricklymails-com-list-batch-results-response-schema.json",
  "title": "ListBatchResultsResponse",
  "description": "`GET /api/batches/{uuid}/results` 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/ListBatchResultsResponse",
  "type": "object",
  "required": [
    "results",
    "limit",
    "offset"
  ],
  "properties": {
    "limit": {
      "type": "integer",
      "format": "int64",
      "description": "Pagination limit used for this page (effective after clamping)."
    },
    "offset": {
      "type": "integer",
      "format": "int64",
      "description": "Pagination offset used for this page."
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchResultItem"
      },
      "description": "Per-email results for the batch, submission order first."
    }
  },
  "$defs": {
    "BatchResultItem": {
      "type": "object",
      "description": "One per-email row in a batch's results listing.",
      "required": [
        "uuid",
        "status"
      ],
      "properties": {
        "custom_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The client reference supplied at submit for this email, if any."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ],
          "description": "Stable verdict reason string (e.g. `\"accept_all_provider\"`), populated once available.\nLets a caller distinguish a mainstream accept-all provider's capped-but-`\"valid\"` verdict from a genuinely\nconfirmed one without parsing the score."
        },
        "recommendation": {
          "type": [
            "string",
            "null"
          ],
          "description": "Deterministic list-cleaning action (`\"remove\"`, `\"send\"`, or `\"review\"`), derived from the verdict, reason, and\ntypo flag. Populated under the same condition as `verdict`."
        },
        "score": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "Quality score (0-100), populated once the job's result is available.",
          "minimum": 0
        },
        "status": {
          "type": "string",
          "description": "Current lifecycle status (e.g. `\"queued\"`, `\"completed\"`)."
        },
        "uuid": {
          "type": "string",
          "description": "Public UUID of the job."
        },
        "verdict": {
          "type": [
            "string",
            "null"
          ],
          "description": "Deliverability verdict (e.g. `\"valid\"`, `\"risky\"`), populated once available."
        }
      }
    }
  }
}