Documents
Preview a send
Shows exactly what sending would do: sender, recipients, subject, message and quota use. Nothing is sent.
Call this before Send a document, and show the result to a person when an AI or integration prepared the send. The sender is chosen in this order: document override, client preference, business default, then the platform mailer, which is used only when the account still has platform emails left this month.
The preview reports problems the send would hit, such as an unverified email address or a used-up allowance, so you can fix them first. It changes nothing and uses no quota. See Send a document.
- Permission
documents.view- Type
- Read-only. Changes nothing.
- Auth
- API key, MCP token or signed-in session
- Capability
preview_send- MCP tool
- preview_send
- CLI
freeinvoiceautomation doc send --preview- Available
- At launch, 1 January 2027
curl --request POST \
--url https://api.freeinvoiceautomation.com/v1/documents/<id>/send-preview \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"channel": "email"
}'{
"data": {
"document_id": "0193f2b4-2d1e-7a6b-9c80-1f2e3d4c5b6a",
"number": null,
"channel": "email",
"sender": "platform_mail",
"connection_id": null,
"to": [
"[email protected]",
"[email protected]"
],
"reply_to": "[email protected]",
"subject": "Invoice from Northwind Studio",
"body": "Hello Amira, please find your invoice for 1,200.00 USD, due on 15 February 2027. You can view and pay it here: {pay link}",
"attach_pdf": true,
"counts_against_quota": true,
"warnings": []
}
}Authorizations
Bearer <api-key>. An API key from Settings > API keys, or an MCP token. See Authentication.Path Parameters
Body
application/jsonemail at launch.Available options: email
Response
200 - application/jsonnull for a draft: a draft takes the next number of its sequence when it is actually sent.email at launch.Available options: email
Available options: smtp, platform_mail
null for the platform mailer.true when the platform mailer would be used, so the send uses one platform email of your monthly allowance.Errors
Plus the common errors every call can return. See Errors.