Conversations
Update redaction settings
Authorization
AuthorizationstringrequiredAn API token, sent as Bearer <token>.
Needs the settings:write ability
Body
application/jsoncard_numbersbooleantrue masks payment card numbers.
orderstring[] | nullEvery rule id (rxr_...) exactly once, in the order they should run.
Maximum items: 10
us_ssnbooleantrue masks US social security numbers.
Response 200
OKdataobjectrequiredShow child attributesHide child attributes
built_insobjectrequiredShow child attributesHide child attributes
card_numbersbooleanrequiredTrue when payment card numbers are redacted from messages; on by default.
us_ssnbooleanrequiredTrue when US social security numbers are redacted from messages; off by default.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
rulesobject[] | nullrequiredThe workspace's own redaction rules, in the order they apply. Empty when it has none.
Show child attributesHide child attributes
created_atstringrequiredWhen it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
enabledbooleanrequiredTrue when the rule is applied to messages before they are stored.
idstringrequiredThe id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
namestringrequiredName of the rule.
objectstringrequiredThe kind of record this is, the same for every record of its kind, such as article.
patternstringrequiredThe regular expression whose matches are replaced, up to 256 characters.
positionintegerrequiredWhere the rule comes in the order rules apply, lowest first.
Format: int32
replacementstringrequiredWhat each match becomes in the stored text, up to 80 characters, such as [redacted].
updated_atstringrequiredWhen it last changed, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.
Format: date-time
Response error
ErrorcodestringrequiredStable code for programs to tell errors apart, such as validation_failed or internal_error.
errorsobjectEach rejected field mapped to its messages. Only present when the input was invalid.
messagestringrequiredWhat went wrong, in words safe to show a person.