Document content
get_documentOne document of the company — a receipt, an invoice, a statement attached to a booking — as its metadata plus a way to read it: {id, name, mime, size_bytes, signed_url, base64?}. signed_url is a short-lived (about an hour) link to the file; base64 is the file itself and is only returned when inline is true AND the file is 2 MB or smaller. document_id comes from a booking's attached_document_ids (list_bookings, get_journal) or from list_unattached_documents. Only available when the connection was granted access to files; every call is logged with the document id. Never quote account numbers or IBANs you read in a document back in full.
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>",
"company_id": "<company_id>"
},
"name": "get_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | Also return the file as base64 when it is 2 MB or smaller. | |
| company_id | Yes | The company to work on — one of list_my_companies' company_id values. | |
| document_id | Yes | The document's id. |