Skip to main content
Sandbox mode lets you test your integration against real API endpoints using fixture data — correct response structure, no x402 payment required, no USDC spent.

Enabling sandbox mode

Add ?test=1 to any request URL, or send the X-DocketLayer-Test: 1 header.

Sandbox behavior

  • No x402 payment is required or processed
  • meta.query_cost_usd is always 0
  • meta.sandbox is always true
  • Response data is a fixture — the case name, parties, and filings are synthetic
  • delta.changed is always false (no new filings in sandbox)
  • All parameter validation runs normally — invalid parameters still return errors

Fixture response

All endpoints return fixture data reflecting the response structure. For GET /v2/case:

Testing with code

Batch sandbox

POST /v2/cases/batch also supports sandbox mode. All queries in the batch return fixture data regardless of the case IDs or court codes provided.

Notes

  • Sandbox and live modes share the same endpoint URLs — only the test=1 parameter or X-DocketLayer-Test header differentiates them
  • Sandbox requests are not logged against your wallet’s rate limit
  • The free /v2/status endpoint does not support sandbox mode — it always returns live data