Skip to main content
POST
Run a sample through the organization's live DLP pipeline

Authorizations

Authorization
string
header
required

A Barndoor API key, sent as Authorization: Bearer <key>. Keys are prefixed bdai_ and are opaque — do not attempt to decode one. Interchangeable with an OAuth 2.0 access token.

Body

application/json
plaintext
string
required
runtime_stage
string
required
agent_id
string<uuid> | null

Test as this AI agent. Omitted = no agent.

scope
object
structured_payload_json
string | null
tool_name
string | null
user_groups
string[]
user_roles
string[]

Response

The verdict, findings and resolved policy for the sample

duration_ms
integer<int64>
required
Required range: x >= 0
findings
object[]
required
processed_text
string
required
resolved_policy
object
required
verdict
string
required
block_reason
string | null
processed_structured_payload_json
string | null