Skip to main content

Overview

Sends a file to the contact. The content.type field is DOCUMENT. The name the customer sees is built from name and extension: "name": "invoice" with "extension": "pdf" arrives as invoice.pdf, with the PDF icon.

Request body

By URL:
By Base64, with the file type prefix in the url itself:

Attachment fields

Rules

What changes on each channel

The conditions are explained in what each channel accepts.

When the channel refuses the file

The API answers 200 with the messageId as soon as it accepts the request. If the channel later refuses the file, for example a Base64 on Telegram or a spreadsheet on Instagram, the message does not arrive, and the failure comes in the message status webhook (MESSAGE_STATUS). See channel webhooks.