Skip to main content

Overview

POST /v2/cases/batch runs up to 50 case queries in a single HTTP call. One x402 payment covers the entire batch. The payment transaction must be sized for the full batch: $0.99 \u00d7 N queries. Base URL: https://api.docketlayer.ai Price: $0.99 \u00d7 number of queries in the batch Sandbox: Add ?test=1 or X-DocketLayer-Test: 1 \u2014 returns fixture data for all queries, no charge

Request

Content-Type: application/json

Query object fields

Maximum batch size: 50 queries. Requests exceeding 50 return 413.

Response

Meta fields

Result object

Each entry in results has:

Error result

Notes

Payment \u2014 A single x402 payment covers the batch. The payment transaction must be sized for the full batch (batch_size \u00d7 $0.99). If all cases fail, no payment is settled. If some cases fail, the full batch amount is still settled \u2014 x402 payments are atomic and cannot be partially refunded. Ordering \u2014 Results are returned in the same order as your queries array. Callbacks \u2014 The batch endpoint does not support callback_url per-query. Callers needing async callback delivery should use GET /v2/case directly. Rate limiting \u2014 Rate limit is checked once at the batch level. A single batch counts as one request against the per-minute limit, but each successful case counts toward the per-day limit.