Send document

Email a finalised invoice or quote to the customer with its PDF attached.

POST https://cotlet.dev/api/v1/lexware-office/documents/{document_id}

write Confirm

Sends the finalised document from your own sender address with your email text template, to the email address saved on the contact or the one you pass. A draft cannot be sent. The customer receives it at once. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: send_document
NameTypeDescription
document_id string required string Document ID from list_documents or create_invoice.
to string string Recipient email. Default: the email saved on the contact.
message string string Email text. Default: your saved email text template.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/lexware-office/documents/document_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("lexware-office", "send_document", {"document_id":"document_8c41d2"})
Node.js
const result = await cotlet.call('lexware-office', 'send_document', {"document_id":"document_8c41d2"});
CLI
cotlet call lexware-office send_document --data '{"document_id":"document_8c41d2"}'

Example response

JSON

{
  "document_id": "d_c44e19",
  "number": "RE1043",
  "sent_to": "buchhaltung@nordlicht.example",
  "sent_at": "2026-10-14T09:12:00+02:00"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.