Get document file
get_document_fileHand back the stored file of a document — a signed download link, valid for one hour. WHY IT EXISTS: create_invoice_upload_url only puts files IN. Once a Beleg was booked there was no way to read it again: to check a payment term, a bank detail or what was actually invoiced, the PDF had to be hunted down in the mailbox it came from, which fails as soon as the mail was filed or the file came from a portal. Measured on 22.11.2026 on the NetBiz invoice — the mail was no longer findable and the stored PDF was unreachable. READ-ONLY: it signs a link, it changes nothing about the document. The link carries the file itself, so treat it like the file — it needs no further login.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"document_id": "<document_id>"
},
"name": "get_document_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The Book-AI-ze document whose stored file is wanted. | |
| valid_seconds | No | How long the link stays valid, 60 to 3600 seconds. Default 3600. |