Skip to main content

The three actions

Actionprocessed_contentMeaning
PASSOriginal textAll policies passed.
MASKMasked textOne or more MASKING rules matched; detected spans replaced with mask_word.
BLOCKnullOne or more BLOCKING rules matched; content cannot be returned.

MASK example

Original: "Min-soo Kim's resident number is 850315-1234567 and his phone is 010-2543-2513."
Masked:   "[PERSON_NAME]'s resident number is [RESIDENT_NUMBER] and his phone is [PHONE_NUMBER]."

BLOCK example

TODO — show a BLOCK response where processed_content is null and detected_items explains why.

How the final action is chosen

TODO — describe the BLOCK > MASK > PASS priority across all policy types for a single request.

Response format

The full shape of a Guard API response, including action, results, and input_results.