Restore redacted text
Reverses a redaction, substituting placeholders back to their original values using the mapping returned by Redact.
POST
Restore redacted text
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 →
Reverses a redaction, substituting placeholders back to their original values using the mapping returned by Redact.
curl --request POST \
--url https://api.orq.ai/v2/pii/restore \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"redacted_text": "<string>",
"mappings": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({redacted_text: '<string>', mappings: {}})
};
fetch('https://api.orq.ai/v2/pii/restore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.orq.ai/v2/pii/restore"
payload = {
"redacted_text": "<string>",
"mappings": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"original_text": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
OK
Was this page helpful?
curl --request POST \
--url https://api.orq.ai/v2/pii/restore \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"redacted_text": "<string>",
"mappings": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({redacted_text: '<string>', mappings: {}})
};
fetch('https://api.orq.ai/v2/pii/restore', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.orq.ai/v2/pii/restore"
payload = {
"redacted_text": "<string>",
"mappings": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"original_text": "<string>"
}