Support: support@tinplate.dev · Zero-Retention Edge Security Support Trust Center DPA GitHub Issues
AI Data Prep Live on Hub

Tabular CSV/JSON RAG Sanitizer & Spreadsheet Formula-Injection Firewall API

Neutralize CSV formula injection, redact cell-level PII, and convert tables into RAG-ready Markdown & row chunks. Clean CSV/TSV strings or JSON row arrays for RAG ingestion and safe spreadsheet export. Neutralizes =CMD|... formula injection, scans cells for indirect prompt injection, redacts PII, and emits LLM-ready Markdown tables.

Interactive Sandbox · No API Key Required 200 OK · Ready
POST /v1/tabular-rag-cleanerinput
200 OK sample / live responsejson
{
  "ok": true,
  "data": {
    "safe": true,
    "verdict": "sanitized",
    "headers": [
      "customer",
      "email",
      "balance",
      "note"
    ],
    "row_count": 1,
    "column_count": 4,
    "clean_markdown_table": "| customer | email | balance | note |\n| --- | --- | --- | --- |\n| Acme Corp | [PII_EMAIL_1] | -120.50 | '=HYPERLINK(\"http://evil.example/leak\", \"Click\") |",
    "row_chunks": [
      "Row 1: customer: Acme Corp | email: [PII_EMAIL_1] | balance: -120.50 | note: '=HYPERLINK(\"http://evil.example/leak\", \"Click\")"
    ],
    "clean_rows": [
      {
        "customer": "Acme Corp",
        "email": "[PII_EMAIL_1]",
        "balance": "-120.50",
        "note": "'=HYPERLINK(\"http://evil.example/leak\", \"Click\")"
      }
    ],
    "stats": {
      "formulas_neutralized": 1,
      "pii_cells_redacted": 1,
      "injection_cells_flagged": 0
    },
    "findings": [
      {
        "row_index": 0,
        "column": "note",
        "kind": "formula_injection",
        "severity": "critical",
        "detail": "Neutralized spreadsheet formula payload (=HYPERLINK(\"http://evil.example/) in column 'note'."
      },
      {
        "row_index": 0,
        "column": "email",
        "kind": "pii_redacted",
        "severity": "medium",
        "detail": "Redacted 1 PII item(s) in column 'email'."
      }
    ],
    "warnings": [
      "1 data row(s) had column count != header column count (4)."
    ]
  },
  "meta": {
    "request_id": "req_tab_01",
    "ms": 2
  }
}
OpenAPI 3.0.3 Get All-Access Key ($29/mo) No signup. No payload storage.
Quickstart Code Examples
curl -X POST "https://api.tinplate.dev/v1/tabular-rag-cleaner" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $TINPLATE_KEY" \
  -d '{"csv":"customer,email,balance,note\nAcme Corp,billing@acme.eu,-120.50,=HYPERLINK(\"http://evil.example/leak\", \"Click\")","delimiter":"auto","sanitize_formulas":true,"redact_pii":true,"check_prompt_injection":true}'
import { TinplateClient } from "@tinplate/sdk";

const tinplate = new TinplateClient({
  apiKey: process.env.TINPLATE_API_KEY!,
});

const { data, meta } = await tinplate.call("/v1/tabular-rag-cleaner", {
  "csv": "customer,email,balance,note\nAcme Corp,billing@acme.eu,-120.50,=HYPERLINK(\"http://evil.example/leak\", \"Click\")",
  "delimiter": "auto",
  "sanitize_formulas": true,
  "redact_pii": true,
  "check_prompt_injection": true
});
console.log(`[${meta.ms} ms]`, data);
import requests

response = requests.post(
    "https://api.tinplate.dev/v1/tabular-rag-cleaner",
    headers={
        "Content-Type": "application/json",
        "Authorization": "Bearer YOUR_TINPLATE_KEY",
    },
    json={
  "csv": "customer,email,balance,note\nAcme Corp,billing@acme.eu,-120.50,=HYPERLINK(\"http://evil.example/leak\", \"Click\")",
  "delimiter": "auto",
  "sanitize_formulas": true,
  "redact_pii": true,
  "check_prompt_injection": true
}
)
print(response.json())
const response = await fetch("https://api.tinplate.dev/v1/tabular-rag-cleaner", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer YOUR_TINPLATE_KEY",
  },
  body: JSON.stringify({
  "csv": "customer,email,balance,note\nAcme Corp,billing@acme.eu,-120.50,=HYPERLINK(\"http://evil.example/leak\", \"Click\")",
  "delimiter": "auto",
  "sanitize_formulas": true,
  "redact_pii": true,
  "check_prompt_injection": true
}),
});
const result = await response.json();
console.log(result);
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "tinplate_tabular_rag_cleaner",
    "arguments": {
      "csv": "customer,email,balance,note\nAcme Corp,billing@acme.eu,-120.50,=HYPERLINK(\"http://evil.example/leak\", \"Click\")",
      "delimiter": "auto",
      "sanitize_formulas": true,
      "redact_pii": true,
      "check_prompt_injection": true
    }
  }
}
OpenAPI 3.0.3 Schema Contract

Request Parameters & Response Schema Reference

Request Body Parameters (POST /v1/tabular-rag-cleaner)

ParameterType & ConstraintsDescription
csv optional string
minLen: 1, maxLen: 262144
Raw CSV, TSV, or semicolon-delimited table text.
rows optional object[] Optional structured JSON array of row objects instead of raw CSV text.
delimiter optional "auto" | "," | ";" | "\t" | "|"
default: "auto"
Column delimiter for raw text input (default 'auto').
sanitize_formulas optional boolean
default: true
Neutralize CSV/spreadsheet formula injection payloads (=, +, -, @, DDE commands) by prefixing an apostrophe.
redact_pii optional boolean
default: true
Redact PII (emails, phones, IBANs, credit cards, national IDs) inside cells.
check_prompt_injection optional boolean
default: true
Scan cells for indirect prompt-injection instructions hidden in table data.
normalize_decimals optional boolean When delimiter is ';' (or auto-detected ';'), normalize standalone European decimal commas (e.g. '1,5') to dots ('1.5').

Response data Object Fields (200 OK)

FieldTypeDescription
safe boolean Field 'safe'
verdict "clean" | "sanitized" | "block" Field 'verdict'
headers string[] Field 'headers'
row_count integer Field 'row_count'
column_count integer Field 'column_count'
clean_markdown_table string Field 'clean_markdown_table'
row_chunks string[] Field 'row_chunks'
clean_rows object[] Field 'clean_rows'
stats object Field 'stats'
findings object[] Field 'findings'
warnings string[] Field 'warnings'

What Tabular CSV/JSON RAG Sanitizer & Formula-Injection Firewall API Detects & Validates

  • OWASP CSV/Spreadsheet formula injection (=, +, -, @, DDE, HYPERLINK, IMPORTXML, WEBSERVICE) while preserving signed negative numbers (-120.50) and E.164 phone numbers
  • Cell-level indirect prompt injection hidden inside customer notes or imported CRM fields
  • Consistent cross-row PII token redaction with clean GFM Markdown table and row-level RAG chunk generation
Honest Engineering Boundaries

Known Limitations & Test Verification

Release: v1.0.39 · Verified: 16 November 2026 · Portfolio Median: 0.318 ms in-Worker V8 compute (add 15–65 ms HTTPS RTT) · See Full Portfolio Benchmarks →

  • Processes up to 500 rows per call in synchronous edge execution; chunk larger CSV files into 500-row batches.
  • Tested v1.0.6 (14 November 2026).

Direct All-Access & Marketplace Plans

Direct Polar All-Access Keys unlock all 42 APIs (49 endpoints), /v1/pipeline, and /mcp on api.tinplate.dev: Pro ($29/mo · 120 req/min · 100k/mo · 128 KB) or Team ($79/mo · 300 req/min · 500k/mo · 256 KB).

PlanMonthly PriceIncluded RequestsRate LimitMax PayloadBest For
BASIC$0.00 / mo500 / month10 req / min64 KBEvaluation & CI smoke tests
PRO$9.99 / mo15,000 / month60 req / min128 KBSolo devs & production apps
ULTRA$29.99 / mo100,000 / month300 req / min256 KBGrowing SaaS & multi-agent pipelines
MEGA$79.99 / mo500,000 / month1,000 req / min256 KBHigh-volume enterprise workloads

Frequently Asked Questions

Does it corrupt negative numbers like -42.50 when neutralizing formula prefixes?

No—the formula firewall distinguishes numeric literals and international phone numbers from executable spreadsheet formulas.

Why emit both a Markdown table and row_chunks?

Small tables fit in a single prompt as a GFM Markdown table, whereas wide or multi-hundred-row tables retrieve more accurately in vector search when each row chunk embeds its own column headers.

Zero Payload Logging

Data Handling, Privacy & Proxy Disclosure

Tabular payloads are parsed and sanitized in memory with zero persistence.

Worker Zero-Logging Guarantee: Cloudflare Workers Observability and invocation logging are disabled (observability.enabled = false, head_sampling_rate = 0, invocation_logs = false). Requests via RapidAPI or Zyla traverse marketplace proxies; use a Direct Bearer Key for zero-intermediary routing.

Related Tinplate APIs

POST /v1/rag-chunker Developer Utilities

Markdown & Code Aware Smart RAG Document Chunker API

Split Markdown into token-budgeted RAG chunks with heading breadcrumbs and intact code/tables.

POST /v1/pii-redactor Live

PII Redactor API

Mask emails, phones, IBANs, cards, and EU IDs with reversible tokens before LLM calls.

POST /v1/prompt-guard Live

Prompt Injection Detection API

Catch prompt injections, role hijacks, and encoded jailbreaks in user inputs and RAG chunks.