{"version":"1.0","name":"Redact and contract a supplied CSV","description":"For CSV text up to 500,000 characters, decode a caller-supplied file, remove five common personal-data patterns, profile only the redacted records, and infer a Draft 2020-12 JSON Schema. Pattern redaction supports review but is not a compliance guarantee.","network":"eip155:8453","asset":"USDC","paymentProtocol":"x402 v2 exact","buyerGuideUrl":"https://apiacre.com/buyers","catalogUrl":"https://apiacre.com/workflows.json","workflow":{"id":"csv-pii-contract","title":"Redact and contract a supplied CSV","description":"For CSV text up to 500,000 characters, decode a caller-supplied file, remove five common personal-data patterns, profile only the redacted records, and infer a Draft 2020-12 JSON Schema. Pattern redaction supports review but is not a compliance guarantee.","documentationUrl":"https://apiacre.com/workflows/csv-pii-contract","machineReadableUrl":"https://apiacre.com/workflows/csv-pii-contract.json","totalPrice":"$0.07","totalAtomicUsdc":70000,"stepCount":4,"steps":[{"order":1,"service":"document.extract","title":"Document extraction","purpose":"Decode the CSV and retain source-size and SHA-256 evidence.","method":"POST","url":"https://apiacre.com/v1/document/extract","price":"$0.01","documentationUrl":"https://apiacre.com/services/document.extract","checkoutUrl":"https://apiacre.com/try/document.extract","workflowStartUrl":"https://apiacre.com/workflows/csv-pii-contract/start/1","sampleUrl":"https://apiacre.com/samples/document.extract","inputTemplate":{"filename":"$csvFilename","content_base64":"$contentBase64"},"useOutput":"Verify result.data.metadata.sha256, then pass result.data.text to the redaction step."},{"order":2,"service":"document.redact","title":"PII and personal-data redaction","purpose":"Replace common email, phone, IPv4, payment-card, and US SSN patterns.","method":"POST","url":"https://apiacre.com/v1/document/redact","price":"$0.01","documentationUrl":"https://apiacre.com/services/document.redact","checkoutUrl":"https://apiacre.com/try/document.redact","workflowStartUrl":"https://apiacre.com/workflows/csv-pii-contract/start/2","sampleUrl":"https://apiacre.com/samples/document.redact","inputTemplate":{"text":"$step1.result.data.text","types":["email","phone","ipv4","credit_card","ssn"]},"useOutput":"Inspect result.data.counts and review result.data.text for false positives or missed sensitive values before reuse."},{"order":3,"service":"data.profile","title":"Dataset profile","purpose":"Profile fields, nulls, uniqueness, and observed types after redaction.","method":"POST","url":"https://apiacre.com/v1/data/profile","price":"$0.025","documentationUrl":"https://apiacre.com/services/data.profile","checkoutUrl":"https://apiacre.com/try/data.profile","workflowStartUrl":"https://apiacre.com/workflows/csv-pii-contract/start/3","sampleUrl":"https://apiacre.com/samples/data.profile","inputTemplate":{"content":"$step2.result.data.text","format":"csv"},"useOutput":"Use result.data.profile to assess the sanitized records."},{"order":4,"service":"data.schema","title":"Schema inference","purpose":"Infer a reusable JSON Schema from the same redacted CSV records.","method":"POST","url":"https://apiacre.com/v1/data/schema","price":"$0.025","documentationUrl":"https://apiacre.com/services/data.schema","checkoutUrl":"https://apiacre.com/try/data.schema","workflowStartUrl":"https://apiacre.com/workflows/csv-pii-contract/start/4","sampleUrl":"https://apiacre.com/samples/data.schema","inputTemplate":{"content":"$step2.result.data.text","format":"csv","root_mode":"records"},"useOutput":"Persist result.data.schema as an observed contract; validate policy-required constraints separately."}]}}