Request access
DocsSDK & ExamplesAPI Reference
Documentation

API reference overview

Use current tRPC router types and explicitly mounted compatibility endpoints; do not copy invented REST routes from old docs.

Default local API origin: http://localhost:3000.

Health

GET /api/health
GET /api/health/ready

Application API

The main application API is tRPC. Current procedure names live in apps/api/api/*.ts and the application router types; use those types rather than a stale copied endpoint list.

Gateway compatibility

The enforcement gateway supports OpenAI (default), Azure OpenAI (x-rakshex-provider: azure_openai), OpenRouter (x-rakshex-provider: openrouter), Anthropic Messages (/v1/messages), and ElevenLabs TTS (/v1/text-to-speech/:voiceId). Routes require RaksHex workspace authentication and apply kill switches, policy, budget reservation, credential mediation, and usage settlement. Arbitrary openai_compatible upstreams remain fail-closed.

Telemetry

AgentGuard uses the implemented telemetry ingest path described by the SDK/API source. This page intentionally does not claim old /v1/telemetry or /v1/findings REST routes unless the current server actually mounts them.