Forward a message
Requires scope: send. Forwards a sent or received message to new recipients with a quoted body and Fwd: subject. Always sends immediately. Both parts carry the forwarded message: the HTML part is the covering note (body_html, else body_text), the forwarded header and the original (its own HTML, or its text), sent whenever there is HTML to carry. A received message's files go with it, up to the limits of any send (10 files, 25 MB in all), one shown inside its HTML keeping its content_id; they are listed in attachments. Files that cannot go are named in both parts under Not attached:: a sent message's (only their names are kept), a received file that was too large to keep, and any past the limits. A forward cannot add files of its own: attachments in the request answers 422 invalid_field (param attachments); send files with POST /v1/messages.
Request
- Base URL: https://api.mails.ai
- URL: https://api.mails.ai/v1/messages/{id}/forward
- Auth: HTTP bearer
Path parameters
The message being forwarded (msg_… or rcv_…).
Headers
Replays the stored response for a repeated key (kept 24 hours), so a retried request never double-sends; the replay carries Idempotent-Replay: true. An error is kept on the key only once the mail has gone out, so a replayed error means it was sent. Once a scheduled send is stored, a failure after that keeps the message's answer on the key instead: the retry answers with the message (201) and raises its message.scheduled if the first request did not. After a failure before either, the same key sends again, as it does after a batch that stored no message and sent no mail.
Request body
Response
The forwarded message.
Changes
No recorded changes to this operation across all 1 revision of this API.