Upload a file as a canonical Attachment. Multipart only. Per-file size cap: 25 MB. Optionally attach to a parent record via related_object_type + related_object_id.
Documentation Index
Fetch the complete documentation index at: https://docs.routemcp.io/llms.txt
Use this file to discover all available pages before exploring further.
Enter your API key with the Bearer prefix — e.g. Bearer sk_live_xxx (production) or Bearer sk_test_xxx (sandbox)
"xero"
Multipart form body. file carries the binary content; all other fields are optional metadata.
Multipart write body for POST /accounting/attachment. Send the binary file content in the file part. Per-file size cap: 25 MB. Content replacement is not supported on Update/Patch — DELETE and POST a new file to replace an existing one.
Binary file content. Use a file form field in the multipart body — every modern OpenAPI tool (Mintlify, Scalar, Postman, Swagger) renders a native file-picker for this.
Optional override for the on-disk filename. Falls back to the uploaded file's own name if omitted.
"team-lunch-receipt.pdf"
Optional MIME type override. Falls back to the multipart part's Content-Type if omitted.
"application/pdf"
Optional canonical type of a parent record to attach to. Provider support varies — Xero's Files API uploads to the library by default; QBO attaches to the referenced record.
INVOICE, BILL, EXPENSE, PURCHASE_ORDER, JOURNAL_ENTRY, CONTACT, ITEM Optional id of the parent record (in URN or raw form). Required when related_object_type is set.
"019d04a5-invoice-uuid"
Provider-specific passthrough fields. Encoded as a JSON-stringified value when sent over multipart.
Attachment uploaded.