Skip to main content
Endpoint: POST /api/v1/guard Purpose: Analyze messages and return whether any enabled policies are triggered.

Request

  • messages (required) — array of chat turns to scan. Each item has role and content.
  • app_uuid (optional) — UUID of the application whose assigned policy should be enforced. If omitted, the default template policy will be used.
  • payload (optional, default false) — include detailed match spans and labels.
  • breakdown (optional, default false) — include per-rule diagnostics.
  • dev_info (optional, default false) — include timing + rule metadata for debugging.
  • project_id (optional) — attribute scans to a project for later retrieval.

Response

cURL

Python

JavaScript

TypeScript

Java

C#

C++

PHP

Go

Rust