Skip to content
AgentIDDocs

Type at least two characters to search titles, headings and content.

↑ ↓ to navigate↵ to open
AgentID Docs

Getting started

How AgentID works

A protected prompt goes through a guard check, an optional masked model call, an activity log entry and, if allowed, restoration on the user's side.

The request flow

User or application
   │  prompt, pasted text, files, tool results
   ▼
AgentID integration (browser extension, Claude plugin or companion, SDK, or your own HTTP call)
   │  sends the text to the Guard API
   ▼
Guard check ──► verdict
   │   • allowed            → continue with the text unchanged
   │   • allowed + masked   → continue with placeholders instead of sensitive values
   │   • blocked            → stop; the reason is shown or returned
   ▼
AI provider (receives the text the verdict released)
   │  answer, still containing placeholders
   ▼
AgentID integration
   │  logs the answer (Ingest API) and, if allowed, restores originals locally
   ▼
User sees the answer with the original values

1. The guard check

The integration sends the prompt to the Guard API together with optional context and up to four attachments. AgentID authenticates the API key, loads the AI system's guardrails and runs its detectors:

  • personal data and secrets (see PII detection),
  • prompt injection and jailbreak attempts (SDK / API systems),
  • toxicity,
  • your content policies,
  • rate limits and token caps.

Which findings mask, block or only get recorded depends on the switches in the system's Guardrails.

2. The verdict

The response says whether the call may continue (allowed), why not (reason), and the text to send (transformed_input). When masking is on, every detected value is replaced with a typed placeholder:

Original:   Send the contract to Jana Nováková, jana.novakova@example.com.
To the AI:  Send the contract to <PERSON_NAME_1>, <EMAIL_1>.

What happens with detected personal data depends on your settings: Mask replaces it, Block stops the whole request. See masking settings.

3. The model call

The integration sends the text from the verdict to the AI provider. With masking, the provider answers with the same placeholders, for example "Dear <PERSON_NAME_1>, ...".

Masking applies where the integration can rewrite the outgoing content, masking is switched on and the system is not in Shadow Mode. What the AI receives and what is stored lists the conditions per integration.

4. Logging

The integration records the answer through the Ingest API. The activity log links the guard check and the answer into one row, so you can see what was checked, masked or blocked. The stored text is a redacted record; originals are kept only with encrypted storage. See What is logged.

5. Restoration

If Restore masked values for the end user is enabled, the integration puts the original values back into the answer for the user:

  • the browser extension and Claude integrations restore them on the user's device,
  • the SDKs restore them in the response your application receives.

The AI provider and AgentID's logs keep the placeholders. See Restoration.

When AgentID cannot check

If AgentID is unreachable or a dependency fails, the system's failure mode decides: fail-open lets the request continue, fail-closed (Strict Security) blocks it. See Failure modes.