DocumentsRender a PDF

Documents

Render a PDF

GET/v1/documents/{id}/pdf

Returns the document as a PDF file.

The response is application/pdf (over MCP the PDF is returned base64-encoded). The PDF uses the document's template and carries a verification QR that opens /v/[code], where anyone can check the issuer, amount and status. A voided invoice shows a VOID stamp; a credit note uses the CREDIT NOTE layout and names the original invoice. On Free, the PDF shows a small "Powered by Free Invoice Automation" line; on Team it does not.

For a sent document you can pick an earlier version; the default is the current one. See PDFs and templates and Verification codes.

Permission
documents.view
Type
Read-only. Changes nothing.
Auth
API key, MCP token or signed-in session
Capability
render_pdf
MCP tool
render_pdf
CLI
freeinvoiceautomation doc pdf
Available
At launch, 1 January 2027
render_pdf
curl --request GET \
  --url https://api.freeinvoiceautomation.com/v1/documents/<id>/pdf \
  --header 'Authorization: Bearer <api-key>'
%PDF-1.7 (binary PDF file)

Authorizations

Authorizationstringrequired
Bearer <api-key>. An API key from Settings > API keys, or an MCP token. See Authentication.

Path Parameters

idstring<uuid>required
Id of the document.

Query Parameters

versioninteger
Version of a sent document to render. Defaults to the current version.