Buyer-controlled x402 recipeRedact and contract a supplied CSV
For CSV text up to 500,000 characters, decode a caller-supplied file, remove seven common personal-data pattern classes, profile only the redacted records, and infer a Draft 2020-12 JSON Schema. Pattern redaction supports review but is not a compliance guarantee.
4separately authorized steps
$0.07maximum listed total · USDC
eip155:8453 + solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdppayment networks
1$0.01 USDC · separate authorization
Document extraction
Decode the CSV and retain source-size and SHA-256 evidence.
POSThttps://apiacre.com/v1/document/extract
Input template
{
"filename": "$csvFilename",
"content_base64": "$contentBase64"
}
Use this resultVerify result.data.metadata.sha256, then pass result.data.text to the redaction step.
2$0.01 USDC · separate authorization
PII and personal-data redaction
Replace common email, phone, validated IP, payment-card, IBAN, and US SSN patterns.
POSThttps://apiacre.com/v1/document/redact
Input template
{
"text": "$step1.result.data.text",
"types": [
"email",
"phone",
"ipv4",
"ipv6",
"credit_card",
"ssn",
"iban"
]
}
Use this resultVerify the input and output hashes, inspect result.data.counts and findings, then review result.data.text for false positives or missed sensitive values.
3$0.025 USDC · separate authorization
Dataset profile
Profile fields, nulls, uniqueness, and observed types after redaction.
POSThttps://apiacre.com/v1/data/profile
Input template
{
"content": "$step2.result.data.text",
"format": "csv"
}
Use this resultUse result.data.profile to assess the sanitized records.
4$0.025 USDC · separate authorization
JSON Schema generator
Infer a reusable JSON Schema from the same redacted CSV records.
POSThttps://apiacre.com/v1/data/schema
Input template
{
"content": "$step2.result.data.text",
"format": "csv",
"root_mode": "records"
}
Use this resultPersist result.data.schema as an observed contract; validate policy-required constraints separately.
You stay in control. Each step is an independent API call. Inspect its HTTP 402 challenge, authorize no more than the displayed price, verify the result, and continue only when the output is suitable. The listed total is not a bundle charge.