Skip to main content
Base URL: https://api.courtrules.app The REST API covers court rules (compliance checks, judge rules, document classification). Enforcement data is available through the MCP server at mcp.courtrules.app, which also exposes court rules tools.

Endpoints

Authentication

All endpoints require a Bearer token in the Authorization header:
See Authentication for details on obtaining and using API keys.

Interactive playground

Each endpoint page in this section includes a live request builder. Select an endpoint from the sidebar, fill in parameters, and send real requests against https://api.courtrules.app. You’ll need your API key from console.courtrules.app.

OpenAPI specification

The complete OpenAPI 3.1 spec is available as a public endpoint (no authentication required):
Use this with Postman, code generators, or AI agents. See Building with AI Agents for integration examples.

Content type

All POST requests must use Content-Type: application/json. Most responses are application/json. Document PDF endpoints (/documents/{id}/pdf) return application/pdf.

Error responses

Error responses follow a consistent format with actionable guidance:
Validation errors include field-level details:
District access errors include structured context and a contact email:

Rate limits

All endpoints are rate-limited per API key using a sliding window: Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers. When exceeded, the API returns 429 with a Retry-After header. See Rate Limits for retry guidance and common mistakes.

HTTP status codes