Overview
GET /v1/case is the primary DocketLayer endpoint. Submit a case ID and court code, pay $0.99 in USDC via x402, and receive structured docket data with change detection built in.
Base URL: https://api.docketlayer.com
Price: $0.99 USDC per successful query
Request
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
case_id | string | Yes | Federal case number — e.g. 1:24-cv-01234 |
court_code | string | Yes | Court identifier — e.g. nysd, deb, cand |
last_checked | string | Yes | ISO 8601 timestamp of your last query for this case |
document_types | array | No | Filter by filing type — e.g. ["order", "judgment"] |
callback_url | string | No | Webhook URL for async delivery |
Example request
Response
When changed is true
When changed is false
Response fields
| Field | Type | Description |
|---|---|---|
case_id | string | The case identifier you submitted |
court_code | string | The court identifier you submitted |
queried_at | string | ISO 8601 timestamp of this query — use as last_checked in your next call |
changed | boolean | Whether any new filings were detected since last_checked |
new_filings | array | Filing objects — empty array if changed is false |
query_cost | number | Always 0.99 |
coverage_status | string | full or partial for this court |
Filing object fields
| Field | Type | Description |
|---|---|---|
filing_id | string | Unique filing identifier |
filing_type | string | Type of filing — order, motion, judgment, notice, etc. |
filed_at | string | ISO 8601 timestamp of filing |
filed_by | string | Filing party or judge name |
description | string | Docket entry description text |
document_url | string | Direct link to the document in PACER |
document_access | string | Always pacer_auth_required — PACER credentials required to retrieve the document |
Notes
last_checked management — Store the queried_at value from each response and use it as last_checked in your next call. This ensures you never miss a filing between queries.
Document access — Document URLs link directly to PACER. Retrieving the document requires valid PACER credentials on your side. DocketLayer provides the link — document access is the caller’s responsibility.
Filtering — Use document_types to reduce response size for agents that only need to act on specific filing types. Available types include: order, motion, judgment, notice, stipulation, complaint, answer, brief.