Prerequisites
- An active Baselayer API key
- A completed Business Search: you will need either the
business_idorbusiness_search_idfrom that result - Familiarity with Baselayer’s Business Search API: see Business Search: API Basics if needed
Base URL & Authentication
X-API-Key header:
Step 1: Submit the Docket Search
POST /docket_searches accepts three request variants depending on what identifiers you have available.
Option A: Search by business_id
Option B: Search by business_search_id with additional_search_entities
Use the id from a Business Search response. This variant supports additional_search_entities to search linked individuals or alternate business names in the same call.
additional_search_entities, see Litigation & Bankruptcy Search: Best Practices and Litigation & Bankruptcy Search for Individuals.
Option C: Search by person_id
Scoping to Litigations, Bankruptcies, or Both
By default, Baselayer searches for both litigations and bankruptcy proceedings. Use theoptions field to scope the search if needed:
Execution Mode
Docket searches support both synchronous and asynchronous execution. Results are returned directly in the response body on synchronous requests. For async execution, consume results via webhooks (DocketSearch.completed) or by polling /docket_searches/{id}. See Synchronous & Asynchronous Request Execution for setup guidance.
Step 2: Retrieve Results
Synchronous (default): Results are returned in thePOST response body. Skip ahead to Step 3: Parse the Response.
Asynchronous: Consume results via the DocketSearch.completed webhook or poll /docket_searches/{id} until state is COMPLETED. See Synchronous & Asynchronous Request Execution for full guidance.
Step 3: Parse the Response
A completed search returns a response containing adockets array.
Example response:
For full guidance on interpreting and acting on results, see Litigation & Bankruptcy Search: Best Practices.
Step 4: Request Case Details (Optional)
Case details provide the full chronological timeline of a case: all filings, hearings, motions, and court orders.Most customers do not need case details for standard workflows. Request them selectively for cases that warrant deeper review.Request details for a specific docket:
DocketDetailsSearch.submitted and DocketDetailsSearch.completed webhook events.
Retrieve the details:
updates array: a chronological record of all case events. Some updates may reference exhibits (court documents) associated with that event.
Step 5: Retrieve Exhibits (Optional)
Exhibits are court documents referenced in case details. Availability varies by court and jurisdiction. Check availability: Each exhibit in theupdates array includes an is_available field.
Retrieve an available exhibit:
is_available is false, the document must be ordered explicitly:
Full Example: Business Docket Search (Synchronous)
Where to Go Next
- Litigation & Bankruptcy Search: Best Practices: Risk classification, match level strategy, pattern recognition, and ticket-size frameworks
- Litigation & Bankruptcy Search for Individuals: Searching litigation for sole proprietors, guarantors, and beneficial owners
- Litigation & Bankruptcy Search: Basics: Full response field reference