Download document attachment
download_document_attachmentGet a temporary download URL for any document attachment by supplying document type, document ID, and attachment ID. Access Moneybird files directly without storing them.
Instructions
Return a temporary download URL for one attachment of a document. Get the attachment ids from the document itself with get_purchase_invoice, get_receipt or the matching get tool.
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_type": "<document_type>",
"document_id": "<document_id>",
"attachment_id": "<attachment_id>"
},
"name": "download_document_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | ||
| attachment_id | Yes | ||
| document_type | Yes | ||
| administration_id | No | Administration to act on. Defaults to the administration this server was configured with; call list_administrations to discover the available ids. |