Configure Redaction
Learn how to define and publish a BrainEngine project.
Create Project
To protect sensitive data, a project needs to be configured in order to redact the defined entities for a given audio file.
For this example, we will redact the following entities:
Person
{
"sid": "NER000",
"name": "ner",
"active": true,
"agent_location": "left",
"inbound": true,
"scrubaudio": true,
"scrubtext": true,
"rules": [
{
"name": "Person",
"active": true,
"mask_type": "Placeholder",
"setting": "[NAME]",
"real_time": true
}
]
}Publish Redaction Project
Publish the configuration.
POST /system/cache/v2/publish
Sets the system cache
Request Body
data*
String
Project configuration
The example below use cURL, a command line utility that sends HTTP client requests. The cURLapplication is freely available for Linux, Windows, and macOS operating systems.
Expected Response
Confirm Project Configuration
Open your browser and make a call to the following endpoint using the project sid below to retrieve the published configuration.
The character string that uniquely identifies the project.
The type of project. Options: 'realtime' or 'batch'
realtimeReturns the project cache information
Unable to return cache for the selected project
Internal server error
No content
Expected Response
Resubmit Sample Call
The example below submits a transcription request to BrainEngine for redaction.
Expected Response
Last updated