Authorization header.
Request format
Getting an API key
API keys are issued through the console dashboard at console.courtrules.app. Sign in with your organization account to view and manage your keys. Keys follow the formatcrm_<env>_<random> (e.g. crm_prod_...).
Example request
Error responses
401: Missing or malformed header
Returned when theAuthorization header is missing or doesn’t use the Bearer scheme.
403: Invalid key
Returned when the key is present and well-formed but not recognized.MCP authentication
The MCP server uses OAuth 2.1 instead of API keys. Sample data works immediately with no auth. Full access requires OAuth, which your MCP client handles automatically.How OAuth works with MCP clients
When you first call a tool that requires full access, your MCP client opens a browser window toconsole.courtrules.app where you approve the connection. After that, the client manages tokens automatically. You don’t handle tokens yourself.
Claude Code
Codex CLI
Claude Desktop / Cursor / VS Code / Windsurf
These clients handle OAuth automatically. On the first tool call requiring full access, a browser window opens to approve the connection. No config changes needed beyond the initial setup in MCP: Enforcement Data or MCP: Court Rules.Getting full access
Full access requires an account on console.courtrules.app. Contact api@courtrules.app if your organization needs access provisioned.Security notes
- API keys are sensitive credentials. Do not commit them to version control or expose them in client-side code.
- Use environment variables to store keys in your application: