Skip to main content
The Limits API lets you evaluate policies (conditions, instructions, guardrails) and manage escalations programmatically. All endpoints require API key authentication.

Base URL

https://api.limits.dev

Authentication

All requests must include your API key in the Authorization header as a Bearer token:
Authorization: Bearer YOUR_API_KEY
Create and manage API keys in the Platform API Keys page.

Endpoints Overview

MethodEndpointDescription
POST/api/policies/{policyKey}/evaluate/conditionsEvaluate a conditions policy with structured input
POST/api/policies/{policyKey}/evaluate/instructionsEvaluate an instructions policy (prompt + input)
POST/api/policies/{policyKey}/evaluate/guardrailsEvaluate a guardrails policy with text input
GET/api/escalationsList all escalations for your organization
GET/api/escalations/{policyId}List escalations filtered by policy ID
POST/api/escalations/approveApprove a pending escalation
POST/api/escalations/declineDecline a pending escalation
Use the Policy evaluation and Escalations sections in the sidebar to open each endpoint’s reference: parameters, request/response schemas, and examples.

Policy evaluation responses

The three policy evaluation endpoints (conditions, instructions, guardrails) return the same response shape: an envelope with meta and result.
  • metacode (HTTP status), message, errors (array of validation or evaluation messages when present).
  • resultviolated (boolean), decision (ALLOW, BLOCK, or ESCALATE), reason (optional), key (policy key evaluated).
See Evaluate conditions, Evaluate instructions, or Evaluate guardrails for the full schema and examples.

SDK Reference

For a better developer experience, use our SDK instead of raw API calls. The SDK normalizes the API response to a simple result shape.