Skip to main content
POST
Scan Agent Memory

Authorizations

X-API-Key
string
header
required

PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.

Headers

x-api-key
string | null

Body

application/json

Content being written to, or read back from, an agent's memory.

content
string
required

The memory chunk to scan

direction
string
default:write

'write' before persisting a chunk, 'read' when a stored chunk is retrieved. Scan both: a chunk poisoned before this endpoint existed, or written through another path, is only catchable on read.

memory_id
string | null

Your identifier for the chunk

Response

Successful Response

Verdict on one memory chunk.

decision
string
required
detected
boolean
required
event_id
string
required
reason
string
default:""
confidence
number
default:0
match_type
string | null
content_hash
string | null