DocketLayer is designed for AI agents. Every design decision reflects how agents operate: no account setup, payment-as-authentication, predictable JSON structure, and a built-in MCP server so agents can call it natively without writing HTTP client code.Documentation Index
Fetch the complete documentation index at: https://docs.docketlayer.ai/llms.txt
Use this file to discover all available pages before exploring further.
Why agents need court data
AI agents operating in legal, financial, compliance, and insurance workflows need to know what is happening in court — when a motion is filed, when a judgment is entered, when a case is closed. Human attorneys monitor court dockets manually. Agents can do this continuously, at scale, across large portfolios. DocketLayer’s change detection model maps directly to how agents work: an agent checks a case, stores a timestamp, and on its next run queries only for what changed since then.Payment as authentication
Agents need to act autonomously — they cannot be interrupted to complete a sign-up flow or wait for an API key to be provisioned. DocketLayer has no accounts and no API keys. A funded Solana wallet is the only prerequisite. The x402 protocol handles payment inline with the request. From the agent’s perspective:- Call the endpoint
- The x402 client library handles the 402 challenge and payment automatically
- Receive the data
The MCP server
For agents built on Claude, Cursor, or any MCP-compatible host, DocketLayer exposes a remote MCP server athttps://api.docketlayer.ai/v2/mcp. Connect it once and the agent can call DocketLayer tools natively in natural language — no HTTP client code required.
See the MCP server guide for configuration and the MCP endpoint reference for the full tool list.
The monitoring pattern
The canonical agent pattern for court monitoring:last_checkeduses the server’squeried_attimestamp — no clock skew, no missed filings- Failed queries (500, 503, 429) are not charged — retry safely
delta.changed: falsemeans no new cost for quiet cases beyond the $0.99 query fee
Callbacks for event-driven agents
If your agent runs on a schedule and you want to decouple monitoring from processing, usecallback_url. Your agent makes a query and your endpoint receives a signed push delivery when the result is ready. The agent does not have to wait or poll.
Batch queries for large portfolios
Agents monitoring large case portfolios should usePOST /v2/cases/batch. Up to 50 cases per call, one x402 payment covers the full batch. The payment transaction must be sized for $0.99 × N queries.
Stop conditions
An agent monitoring a closed case will keep paying $0.99 per cycle with no useful return. Build stop conditions:case.status on every query and remove resolved cases from the portfolio.