bankstract
Endpoints

Redact a bank statement

Upload a PDF (or XLSX) statement and get the same document back with names, account numbers and BVN masked in place. The response body is the redacted file. The file is read in memory and never written to disk. Counts as one parse for your plan. Over a free cap it returns 402: there is no canned sample for a redacted document. Sync only: a request holds one of the worker's engine slots for the length of the redaction.

POST
/v1/redact

Header Parameters

authorization?string|null

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/redact" \  -F pdf="string"
"string"
{  "error": "string",  "error_class": "string",  "format_version": "string",  "marker_coverage": 0}
{  "error": "string",  "error_class": "string",  "format_version": "string",  "marker_coverage": 0}
{  "error": "string",  "error_class": "string",  "format_version": "string",  "marker_coverage": 0}
{  "error": "string",  "error_class": "string",  "format_version": "string",  "marker_coverage": 0}
{  "error": "string",  "error_class": "string",  "format_version": "string",  "marker_coverage": 0}