opf.redact(text) implementation without a system prompt or websearch-specific policy.
Endpoint
POST https://pii-filter.tinfoil.sh/redact requires Authorization: Bearer <TINFOIL_API_KEY> and Content-Type: application/json.
Use a Tinfoil SDK verified HTTP client targeting enclave pii-filter.tinfoil.sh and configuration repository tinfoilsh/confidential-pii-cpu. Authentication is enforced by the enclave shim. This is a custom HTTP endpoint, not /v1/chat/completions or /v1/responses; the SDK’s chat methods do not apply.
For direct HTTP access without an SDK, manual attestation verification is required for connection-time guarantees. Ordinary HTTPS alone does not verify the enclave’s code.
Request:
schema_version, summary, the original text, detected_spans (with label, start, end, text, and placeholder), and redacted_text. It passes through the upstream library’s result. Treat the response as sensitive: it includes original text and detected values.
Requests can contain up to 4 MiB of JSON.
Web search
Enablepii_check_options to filter outgoing search queries. Websearch applies its own removal policy to detected spans rather than using the model’s placeholder-redacted text.

