Data Transform
Redact JSON paths API
Replaces the values at the listed dot-paths with a placeholder (default [REDACTED]) and reports which paths were redacted. Answers 'How do I redact sensitive fields by path?', 'How do I scrub PII out of a JSON payload?'.
Price$0.02per request
MethodPOST
Route/v1/data-transform/redact-paths
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
data-transformredactpiiprivacymaskscrubjsonwrangle
API URL
Integration docshttps://x402.hexl.dev/v1/data-transform/redact-pathsExample request
{
"object": {
"user": {
"ssn": "123",
"name": "Ada"
}
},
"paths": [
"user.ssn"
]
}Example response
{
"result": {
"user": {
"ssn": "[REDACTED]",
"name": "Ada"
}
},
"redacted": [
"user.ssn"
]
}Input schema
{
"type": "object",
"required": [
"object",
"paths"
],
"properties": {
"object": {
"type": "object",
"examples": [
{
"user": {
"ssn": "123",
"name": "Ada"
}
}
]
},
"paths": {
"type": "array",
"examples": [
[
"user.ssn"
]
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}