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.

Scopes

openid

Issue an OIDC ID token identifying the caller.

profile

Read the caller's basic profile claims.

email

Read the caller's email address.

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