Redact PII
Replaces detected PII with placeholders and returns the reverse mapping needed to restore the original text.
POST
Redact PII
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Orq MCP is live: Use natural language to interrogate traces, spot regressions, and experiment your way to optimal AI configurations. Available in Claude Desktop, Claude Code, Cursor, and more. Start now →
Replaces detected PII with placeholders and returns the reverse mapping needed to restore the original text.
curl --request POST \
--url https://api.orq.ai/v2/pii/redact \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"language": "<string>",
"threshold": 123
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: '<string>', language: '<string>', threshold: 123})
};
fetch('https://api.orq.ai/v2/pii/redact', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.orq.ai/v2/pii/redact"
payload = {
"text": "<string>",
"language": "<string>",
"threshold": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"redacted_text": "<string>",
"mappings": {}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?
curl --request POST \
--url https://api.orq.ai/v2/pii/redact \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "<string>",
"language": "<string>",
"threshold": 123
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: '<string>', language: '<string>', threshold: 123})
};
fetch('https://api.orq.ai/v2/pii/redact', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.orq.ai/v2/pii/redact"
payload = {
"text": "<string>",
"language": "<string>",
"threshold": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"redacted_text": "<string>",
"mappings": {}
}