# Process private data

Source: https://docs.recoupable.dev/api-reference/ingestion/operate

Submit a versioned import, read private artifacts, browse organization datasets, or explicitly deliver one ready output.

> **Info**
> Data ingestion is available on the Recoup production API. Use an existing authenticated account. The standard authenticated MCP tool `ingestion` accepts the same action bodies. Delegated OAuth connections do not expose this tool.

## Submit an import

Supply original bytes as base64 or name a source connector configured for your scope. Give the transformation contract a version. Declare the fields to map, types, business keys and any independent checks. The request example imports two inventory rows. It preserves SKU `001` as text and checks that the two quantities sum to five.

Create returns HTTP 202 with a job ID. Repeating the same request with the same idempotency key recovers its existing job. Use a new key for different bytes or mapping rules. Private source bytes are limited to 2 MiB, JSON request bodies to 3 MiB, and data to 10,000 rows and 100 columns.

CSV, TSV, JSON and JSONL accept explicit mappings. XLSX supports sheet selection. Native-text PDFs need a reviewed text layout and its literal separator. Read the resulting issues to identify files that need a different layout or exceed a reader’s limits.

## Account for a whole workbook

The workbook option assigns every sheet its own role. Data sheets may rename headings into the common field vocabulary. Control sheets supply independently reported totals. Document the reason for ignoring an instructions sheet. This example checks a workbook whose East and West warehouses both contribute to the quantity in Summary cell B2.

```json
{
  "version": "warehouse-inventory-1",
  "fields": [
    { "name": "sku", "source": "SKU", "type": "string" },
    { "name": "quantity", "source": "Qty", "type": "integer" }
  ],
  "workbook": {
    "sheets": [
      { "name": "East", "role": "data", "columns": { "Units shipped": "Qty" } },
      { "name": "West", "role": "data" },
      { "name": "Summary", "role": "control", "checks": [{ "cell": "B2", "field": "quantity" }] },
      { "name": "Instructions", "role": "ignore", "reason": "Operator instructions only" }
    ]
  }
}
```

Use workbook mode with an XLSX source. A single-sheet contract can continue selecting one worksheet by name. Use a literal numeric total for each control. A formula cell requires review. If a control filters by a unit or currency, it checks only the rows that match. Declare a check for every population whose total you need to verify. An import with an unresolved control difference has no deliverable output.

## Review and deliver

The `read` action returns the job state. `ready` means the declared checks passed. Choose controls appropriate to the business decision. A correct sum alone cannot verify the account or the underlying metric. Download large artifacts over authenticated HTTP.

Deliver a ready job by passing the configured `destination_id`, `job_id` and the exact `gold_sha256` you reviewed. A destination write and its receipt commit together. For organization jobs pass the same `organization_id` on every action. Authorized members can browse the organization’s versioned datasets and records through [read an ingestion result](https://docs.recoupable.dev/api-reference/ingestion/read).

## POST /api/ingestion

Full OpenAPI specification: https://docs.recoupable.dev/spec/ingestion.json

## Authentication

This operation requires one of the security alternatives in the specification below. Security scheme definitions are included where present in the published specification.

[Authentication guide](https://docs.recoupable.dev/authentication)

## Operation and referenced schemas

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Recoup API - Data ingestion",
    "version": "1.0.0",
    "description": "Private, versioned data ingestion."
  },
  "servers": [
    {
      "url": "https://api.recoupable.dev"
    }
  ],
  "paths": {
    "/api/ingestion": {
      "post": {
        "summary": "Process private data",
        "operationId": "operateIngestion",
        "description": "Submit a versioned import, read private artifacts, browse organization datasets, or explicitly deliver one ready output. Standard authenticated MCP uses the same operations. Delegated OAuth excludes this tool.",
        "security": [
          {
            "apiKeyAuth": []
          },
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/Create"
                  },
                  {
                    "$ref": "#/components/schemas/Read"
                  },
                  {
                    "$ref": "#/components/schemas/Artifact"
                  },
                  {
                    "$ref": "#/components/schemas/Deliver"
                  },
                  {
                    "$ref": "#/components/schemas/Datasets"
                  },
                  {
                    "$ref": "#/components/schemas/Imports"
                  },
                  {
                    "$ref": "#/components/schemas/Records"
                  }
                ]
              },
              "example": {
                "action": "create",
                "idempotency_key": "inventory-2026-12-v1",
                "source": {
                  "kind": "inline",
                  "format": "csv",
                  "filename": "inventory.csv",
                  "content_base64": "U0tVLFF0eQowMDEsMgowMDIsMwo="
                },
                "contract": {
                  "version": "inventory-1",
                  "fields": [
                    {
                      "name": "sku",
                      "source": "SKU",
                      "type": "string"
                    },
                    {
                      "name": "quantity",
                      "source": "Qty",
                      "type": "integer"
                    }
                  ],
                  "business_keys": [
                    "sku"
                  ],
                  "controls": [
                    {
                      "field": "quantity",
                      "expected": "5"
                    }
                  ]
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The selected read, catalog query or delivery completed.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/Job"
                    },
                    {
                      "$ref": "#/components/schemas/ArtifactResult"
                    },
                    {
                      "$ref": "#/components/schemas/CatalogPage"
                    },
                    {
                      "$ref": "#/components/schemas/DeliveryResult"
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "Create accepted. An identical replay can return an already completed result.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input, query, or source encoding.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "A valid credential is required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Access to the selected scope was denied.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "The scoped job or artifact could not be found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "The selected version, idempotency key, or artifact conflicts with stored state.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "The request, source, or record exceeds its size limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "The caller reached the operation rate limit.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "The operation or its configured infrastructure is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Create": {
        "type": "object",
        "properties": {
          "action": {
            "const": "create"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "dataset_id": {
            "type": "string",
            "format": "uuid"
          },
          "idempotency_key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "source": {
            "$ref": "#/components/schemas/Source"
          },
          "contract": {
            "$ref": "#/components/schemas/Contract"
          }
        },
        "required": [
          "action",
          "idempotency_key",
          "source",
          "contract"
        ],
        "additionalProperties": false,
        "dependentRequired": {
          "dataset_id": [
            "organization_id"
          ]
        },
        "description": "Describes an admitted job. The worker checks source compatibility after submission. Workbook mode requires an XLSX source and the PDF reader requires text_table. An incompatible source can receive a job ID and then a rejected result."
      },
      "Read": {
        "type": "object",
        "properties": {
          "action": {
            "const": "read"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "job_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "action",
          "job_id"
        ],
        "additionalProperties": false
      },
      "Artifact": {
        "type": "object",
        "properties": {
          "action": {
            "const": "artifact"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "job_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "stage": {
            "type": "string",
            "enum": [
              "bronze",
              "silver",
              "gold"
            ]
          }
        },
        "required": [
          "action",
          "job_id",
          "stage"
        ],
        "additionalProperties": false
      },
      "Deliver": {
        "type": "object",
        "properties": {
          "action": {
            "const": "deliver"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "job_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "destination_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9._:-]+$"
          },
          "gold_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "action",
          "job_id",
          "destination_id",
          "gold_sha256"
        ],
        "additionalProperties": false
      },
      "Datasets": {
        "type": "object",
        "properties": {
          "action": {
            "const": "datasets"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "after": {
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "action",
          "organization_id"
        ],
        "additionalProperties": false
      },
      "Imports": {
        "type": "object",
        "properties": {
          "action": {
            "const": "imports"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "dataset_id": {
            "type": "string",
            "format": "uuid"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "after": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          }
        },
        "required": [
          "action",
          "organization_id",
          "dataset_id"
        ],
        "additionalProperties": false
      },
      "Records": {
        "type": "object",
        "properties": {
          "action": {
            "const": "records"
          },
          "organization_id": {
            "type": "string",
            "format": "uuid"
          },
          "dataset_id": {
            "type": "string",
            "format": "uuid"
          },
          "job_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "after_row": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "action",
          "organization_id",
          "dataset_id",
          "job_id"
        ],
        "additionalProperties": false
      },
      "Job": {
        "type": "object",
        "required": [
          "job_id",
          "status"
        ],
        "properties": {
          "job_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "dataset_id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "held",
              "ready",
              "rejected"
            ]
          },
          "engine_version": {
            "type": "string"
          },
          "source_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "contract_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$",
            "description": "SHA-256 of the validated, canonical contract including defaults. Version 2 workbook completion receipts include this field."
          },
          "silver_sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "gold_sha256": {
            "type": [
              "string",
              "null"
            ],
            "pattern": "^[a-f0-9]{64}$"
          },
          "issue_count": {
            "type": "integer"
          },
          "issues_truncated": {
            "type": "integer"
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "code"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "row": {
                  "type": "integer"
                },
                "field": {
                  "type": "string"
                },
                "source_sheet": {
                  "type": "string"
                }
              }
            }
          },
          "controls": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "expected",
                "actual",
                "passed"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "expected": {
                  "type": "string"
                },
                "actual": {
                  "type": "string"
                },
                "passed": {
                  "type": "boolean"
                },
                "source_sheet": {
                  "type": "string"
                },
                "source_cell": {
                  "type": "string"
                }
              }
            }
          },
          "rows_read": {
            "type": "integer"
          },
          "rows_output": {
            "type": "integer"
          }
        },
        "allOf": [
          {
            "if": {
              "properties": {
                "engine_version": {
                  "const": "2"
                },
                "status": {
                  "enum": [
                    "ready",
                    "held",
                    "rejected"
                  ]
                }
              },
              "required": [
                "engine_version",
                "status"
              ]
            },
            "then": {
              "required": [
                "contract_sha256"
              ]
            }
          }
        ]
      },
      "ArtifactResult": {
        "type": "object",
        "properties": {
          "job_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "stage": {
            "type": "string",
            "enum": [
              "bronze",
              "silver",
              "gold"
            ]
          },
          "artifact": {
            "type": "object",
            "description": "Bronze contains filename, format, source_sha256, and content_base64. Silver contains source-grain records. Gold contains the ready records and field types."
          }
        },
        "required": [
          "job_id",
          "stage",
          "artifact"
        ],
        "additionalProperties": false
      },
      "CatalogPage": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "datasets",
              "next_after"
            ],
            "properties": {
              "datasets": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "next_after": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "imports",
              "next_after"
            ],
            "properties": {
              "imports": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "next_after": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "records",
              "next_after"
            ],
            "properties": {
              "records": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "next_after": {
                "type": [
                  "integer",
                  "null"
                ]
              }
            }
          }
        ]
      },
      "DeliveryResult": {
        "type": "object",
        "properties": {
          "job_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "delivery_id": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "receipt": {
            "type": "object",
            "properties": {
              "committed": {
                "const": true
              },
              "rows": {
                "type": "integer"
              }
            },
            "required": [
              "committed",
              "rows"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "job_id",
          "delivery_id",
          "receipt"
        ],
        "additionalProperties": false
      },
      "Error": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "string"
          }
        }
      },
      "Source": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "inline"
              },
              "filename": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "format": {
                "$ref": "#/components/schemas/SourceFormat"
              },
              "content_base64": {
                "type": "string",
                "contentEncoding": "base64",
                "minLength": 4,
                "maxLength": 2796204
              }
            },
            "required": [
              "kind",
              "filename",
              "format",
              "content_base64"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "const": "connector"
              },
              "connector_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128,
                "pattern": "^[A-Za-z0-9._:-]+$"
              }
            },
            "required": [
              "kind",
              "connector_id"
            ],
            "additionalProperties": false
          }
        ]
      },
      "Contract": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Field"
            },
            "minItems": 1,
            "maxItems": 100
          },
          "business_keys": {
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,62}$"
            },
            "maxItems": 20
          },
          "ignored_columns": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "maxItems": 100
          },
          "controls": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TotalCheck"
            },
            "maxItems": 100
          },
          "aggregate": {
            "type": "object",
            "properties": {
              "group_by": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_]{0,62}$"
                },
                "maxItems": 20
              },
              "sums": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_]{0,62}$"
                },
                "minItems": 1,
                "maxItems": 20
              }
            },
            "required": [
              "group_by",
              "sums"
            ],
            "additionalProperties": false
          },
          "header_row": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000
          },
          "sheet": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "workbook": {
            "type": "object",
            "properties": {
              "sheets": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WorkbookSheet"
                },
                "minItems": 1,
                "maxItems": 100,
                "description": "The engine checks unique sheet names and enforces a combined maximum of 100 inline and cell-based checks across the contract.",
                "contains": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "const": "data"
                    }
                  },
                  "required": [
                    "role"
                  ]
                }
              }
            },
            "required": [
              "sheets"
            ],
            "additionalProperties": false,
            "description": "Workbook package mode for XLSX. Assign each actual sheet an explicit role, with at least one data sheet. Use either this option or sheet."
          },
          "records_path": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "maxItems": 10
          },
          "delimiter": {
            "type": "string",
            "enum": [
              ",",
              ";",
              "\t",
              "|"
            ]
          },
          "text_table": {
            "type": "object",
            "properties": {
              "review_ref": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "separator": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10
              }
            },
            "required": [
              "review_ref",
              "separator"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "version",
          "fields"
        ],
        "additionalProperties": false,
        "description": "Versioned mapping contract. Keys, filters, and sums reference declared output fields. Preserve IDs as strings and exact amounts as decimal strings.",
        "allOf": [
          {
            "if": {
              "required": [
                "workbook"
              ]
            },
            "then": {
              "properties": {
                "header_row": {
                  "const": 1
                },
                "records_path": {
                  "maxItems": 0
                },
                "delimiter": {
                  "const": ","
                }
              },
              "not": {
                "anyOf": [
                  {
                    "required": [
                      "sheet"
                    ]
                  },
                  {
                    "required": [
                      "text_table"
                    ]
                  }
                ]
              }
            }
          }
        ]
      },
      "SourceFormat": {
        "type": "string",
        "enum": [
          "csv",
          "tsv",
          "json",
          "jsonl",
          "xlsx",
          "pdf"
        ]
      },
      "Field": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,62}$"
          },
          "type": {
            "type": "string",
            "enum": [
              "string",
              "integer",
              "decimal",
              "date",
              "boolean"
            ]
          },
          "source": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "constant": {
            "type": "string",
            "maxLength": 2000
          },
          "nullable": {
            "type": "boolean"
          },
          "trim": {
            "type": "boolean"
          },
          "decimal_separator": {
            "type": "string",
            "enum": [
              ".",
              ","
            ]
          },
          "thousands_separator": {
            "type": "string",
            "enum": [
              "",
              ",",
              ".",
              " "
            ]
          }
        },
        "required": [
          "name",
          "type"
        ],
        "additionalProperties": false,
        "oneOf": [
          {
            "required": [
              "source"
            ]
          },
          {
            "required": [
              "constant"
            ]
          }
        ],
        "description": "Select exactly one source heading or literal constant. Field names and mapped source headings are unique. Decimal and thousands separators must differ.",
        "allOf": [
          {
            "if": {
              "properties": {
                "thousands_separator": {
                  "const": "."
                }
              },
              "required": [
                "thousands_separator"
              ]
            },
            "then": {
              "properties": {
                "decimal_separator": {
                  "const": ","
                }
              },
              "required": [
                "decimal_separator"
              ]
            }
          },
          {
            "if": {
              "properties": {
                "thousands_separator": {
                  "const": ","
                }
              },
              "required": [
                "thousands_separator"
              ]
            },
            "then": {
              "properties": {
                "decimal_separator": {
                  "const": "."
                }
              }
            }
          }
        ]
      },
      "TotalCheck": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,62}$"
          },
          "expected": {
            "type": "string",
            "pattern": "^[+-]?\\d+(?:\\.\\d+)?$",
            "maxLength": 100
          },
          "where": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 2000
            },
            "propertyNames": {
              "pattern": "^[a-z][a-z0-9_]{0,62}$"
            }
          },
          "tolerance": {
            "type": "string",
            "pattern": "^\\+?\\d+(?:\\.\\d+)?$",
            "maxLength": 100
          }
        },
        "required": [
          "field",
          "expected"
        ],
        "additionalProperties": false,
        "description": "Sum a numeric field on all rows that match the optional string filters. Tolerance is nonnegative and defaults to zero."
      },
      "WorkbookSheet": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "role": {
                "const": "data"
              },
              "header_row": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000
              },
              "columns": {
                "type": "object",
                "additionalProperties": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "maxProperties": 100,
                "propertyNames": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                }
              }
            },
            "required": [
              "name",
              "role"
            ],
            "additionalProperties": false,
            "description": "Map physical headings on this sheet to the common input headings used by the fields."
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "role": {
                "const": "control"
              },
              "checks": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CellCheck"
                },
                "minItems": 1,
                "maxItems": 100
              }
            },
            "required": [
              "name",
              "role",
              "checks"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "role": {
                "const": "ignore"
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              }
            },
            "required": [
              "name",
              "role",
              "reason"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CellCheck": {
        "type": "object",
        "properties": {
          "cell": {
            "type": "string",
            "description": "A literal workbook cell address within the first 100 columns (A through CV) and rows 1 through 1048576.",
            "pattern": "^(?:[A-Z]|[AB][A-Z]|C[A-V])(?:[1-9][0-9]{0,5}|10(?:[0-3][0-9]{4}|4(?:[0-7][0-9]{3}|8(?:[0-4][0-9]{2}|5(?:[0-6][0-9]|7[0-6])))))$"
          },
          "field": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]{0,62}$"
          },
          "where": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "maxLength": 2000
            },
            "propertyNames": {
              "pattern": "^[a-z][a-z0-9_]{0,62}$"
            }
          },
          "tolerance": {
            "type": "string",
            "pattern": "^\\+?\\d+(?:\\.\\d+)?$",
            "maxLength": 100
          }
        },
        "required": [
          "cell",
          "field"
        ],
        "additionalProperties": false,
        "description": "Compare the independent total in this cell with the sum of the mapped numeric field. A failed check holds the output."
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
```
