Protect data

Sensitive data & redaction

Every message is scanned before it leaves. What happens to each kind of data is set by the key's governance profile.

What's detected

ClassExamples
PHIDiagnoses, medications, medical record numbers, health context around names.
PIINames, emails, phone numbers, addresses, national IDs.
PCICard numbers (checked with Luhn), IBANs, bank account numbers.
SecretsAPI keys, passwords, private keys, tokens. Always blocked by built-in profiles.
CUIControlled unclassified information, criminal justice information.
ConfidentialFinancials, contracts, legal matters, source code.

Detection uses patterns, checksums and clinical context, and runs on every request.

Allow, redact or block

  • Allow: sent as is (routing rules still decide where it may go).
  • Redact: values are replaced with placeholders such as [REDACTED:EMAIL] before the text leaves. Redaction can be skipped when the destination is on-prem.
  • Block: the request is refused with data_blocked.

Declaring data from your app

If your app knows a request contains sensitive data, say so. The header can raise the class but never lower it.

Header
X-AIGov-Sensitivity: phi,pii

Treat every request as sensitive

A workload's data types describe what it may handle. For apps that always handle a type, such as a clinical tool, turn on Treat every request as containing this data (in the Connect wizard, or on the workload). Every request is then handled as if that data were present, even when detection finds nothing.

Attachments
Data scanning reads text. Images, audio, video and files are not scanned, so profiles can block attachments under Content limits (attachments_blocked).

Try it

Paste a message into the Playground (opens in a new tab) to see what's detected and what would be sent. Or call the inspect endpoint:

Terminal
curl https://gateway.agentkeyroute.com/v1/inspect \
  -H "Authorization: Bearer <your API key>" \
  -H "Content-Type: application/json" \
  -d '{"destination":"chatgpt.com","text":"Patient John Carter, MRN 00482913"}'