get_document
Retrieve PDF attachments from court docket entries. Checks cache for free access or offers PACER purchase with download links and cost details.
Instructions
Get a PDF attached to a docket entry. Always checks the cache first. If cached (is_cached=true), returns download_url + preview_url + ocr_link at no cost. If not cached and purchase=true, buys from PACER and returns download_url + receipt. If not cached and purchase=false (default), returns cost info so you can decide. docket_seq comes from docket entries (e.g. '42.00000'). part defaults to 1 (main doc).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | Document part, 1 = main doc | |
| purchase | No | true = buy from PACER if not cached (costs credits). Default false. | |
| court_code | Yes | Court code, e.g. 'nysbke' (NY Southern Bankruptcy), 'debke' (Delaware Bankruptcy), 'ilnbke' (IL Northern Bankruptcy). Use list_courts to find the right code. | |
| docket_seq | Yes | Docket sequence number, e.g. '42.00000' or '42' | |
| case_number | Yes | Long-form case number, e.g. '1:14-bk-10557'. Always use the long form — PACER short forms like '14-10557' will not match. Use find_cases if unsure. |