Shield Rest APIs

Interactive reference for the Highflame Shield REST API. Shield provides real-time AI guardrails — tiered threat detection plus Cedar policy evaluation, at sub-10ms latency.

All SDKs (Python, TypeScript, Rust) are thin clients over these endpoints.

Base URL

Environment
URL

Production

https://shield.api.highflame.ai

Self-hosted

Your deployment URL

Authentication

All requests require a Bearer token in the Authorization header. Service keys (hf_sk_...) are exchanged for short-lived JWTs via your token endpoint — the SDKs handle this automatically.

Header
Description

Authorization

Bearer <jwt>

X-Account-ID

Account identifier (multi-tenant)

X-Project-ID

Project identifier (multi-tenant)

Endpoints

POST /v1/guard

Full guard evaluation, runs the tiered detection pipeline, then Cedar policy evaluation. Returns a structured allow/deny decision.

Required fields:

  • content

  • content_type

  • action

Example response:

POST /v1/guard/stream

Same as /v1/guard but streams detector results and the final decision as Server-Sent Events.

Example event stream:

POST /v1/detect

Detection only — runs detectors without Cedar policy evaluation. Useful for observability and monitoring.

Required fields:

  • content

  • content_type

Example response:

GET /v1/detectors

List all available detectors with their status and tier information.

Example response:

GET /v1/health

Service health check.

Example response:

GET /v1/debug/policies

Returns metadata for the Cedar policies currently loaded into Shield for a product namespace.

Optional query parameter:

  • productguardrails

Example response:

Last updated