Skip to main content
curl cannot handle the x402 payment flow automatically — it does not have an x402 client library. However, you can use sandbox mode to test DocketLayer’s response structure from the command line without spending USDC.

Check coverage (free, no payment)

Find the court_code for the court you want to query in the courts array.

Query in sandbox mode

Sandbox mode returns fixture data with no payment required. Add ?test=1 to any endpoint.

Batch in sandbox mode

For live paid queries, use the Python or JavaScript x402 client library — they handle the 402 challenge, transaction signing, and retry automatically. curl cannot replicate this flow without manual construction of the x402-payment header. See the Python quickstart or JavaScript quickstart for live query examples.

Pretty-printing responses

Pipe responses through jq for readable output: