1. Get an API key
API keys belong to a Guardian in an API project. In the Console, open your Guardian → API Keys → Add API Key, then copy the key (it is shown only once and starts withsf_). See Manage API keys.
Your endpoint and a ready-made example are on the Guardian’s How to use tab.
2. Send a request
processType is a label the Guardian declares (commonly input for requests on the way in and output for model responses on the way out). It must be one the Guardian supports — see Request format.
3. Read the action
A benign request passes through:action: forward processed_content on MASK, and refuse the request on BLOCK. A Topic policy can also return CHECK (a controversial topic flagged for review) — API callers receive CHECK directly. See Actions.
A request the Guardian can’t analyze returns an HTTP error, never a PASS with empty detections — so an error is never mistaken for “nothing detected”. See Errors & states.