These endpoints manage Profanity Filters: reusable word-to-substitution tied to a base_model, which you assign to a LEXI Live instance via
profanity_filter_id(see Instances in the LEXI Live API documentation). The list format is the same idea as Topic Model substitutions: each entry maps a phrase in recognition output to replacement text (and optional case sensitivity). Additionally, there is a set of Default Profanity Filters provided for various languages, which are not editable, but can be used or duplicated as a base.
- Profanity Filters — create, list, read, update metadata, duplicate, and delete filters
- Profanity Filter list entries — download, CSV upload, and JSON patch of word substitutions
Denotes an optional parameter.
Default Profanity Filters: The list returned byGET /profanity-filterswill always include EEG-provided Default Profanity Filters. You may read and duplicate defaults;PUT,DELETE, and any list changes (POST/PATCHunder/profanity-filters/:pf_id/profanity) are rejected for Default Profanity Filters with a403error.
Denotes an optional parameter.
Retrieving, bulk-uploading (CSV), and patching Profanity List entries for a Profanity Filter. This mirrors LEXI Topic Models substitutions: each row is a phrase to match in recognition output and the text to show instead.POSTandPATCHare blocked for Default Profanity Filters.
| Resource | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| GET /profanity-filters/:pf_id/profanity |
Action
Returns the Profanity List as JSON. Unlike
Parameters (Path)
Parameters (Query)
|
||||||||||
| POST /profanity-filters/:pf_id/profanity |
ActionUpload a CSV file to add or replace list entries (multipart form-data). Disallowed for Default Profanity Filters,
resulting in
a Parameters (Path)
Parameters (Query)
Parameters (form-data)
CSV formatNo header row. Exactly three columns per row (same idea as substitution CSV):
LimitsUp to 10,000 entries per list; each word and substitution up to 50 characters (enforced on upload and patch). HTTP 409 (Conflict)
If this Profanity Filter is assigned to a LEXI Instance that currently has an active captioning job, the request fails
with |
||||||||||
| PATCH /profanity-filters/:pf_id/profanity |
ActionApplies a list of entry updates in one request (JSON body). Disallowed for Default Profanity Filters, resulting in a
Parameters (Path)
Parameters (JSON)
ExampleThis payload adds or updates one phrase and removes another:
{
"profanity_list": [
{ "word": "BadWord", "substitution": "****", "caseSensitive": false },
{ "word": "BadWord2", "substitution": "", "caseSensitive": true },
{ "word": "OldWord", "substitution": null }
]
}
HTTP 409 (Conflict)
If this Profanity Filter is assigned to a LEXI Instance that currently has an active captioning job, the request fails
with |
||||||||||
Denotes an optional parameter.