Reply to a message
Requires scope: send. Replies in-thread to a sent or received message. Sets In-Reply-To, References, and a Re: subject server-side. A reply cannot carry attachments (422 invalid_field, param attachments): to reply with files, send with POST /v1/messages and in_reply_to_message_id. A live key cannot reply to test mail (403 test_mode_required): its people are whatever addresses a test gave, so a live reply would send them real mail. A reply to test mail goes as a test send when it is made with a test key, or from a signed-in dashboard session that sends the header X-Mails-Mode: test. That header does not change an API key's mode, so a live key that sends it gets the same 403.
Request
- Base URL: https://api.mails.ai
- URL: https://api.mails.ai/v1/messages/{id}/reply
- Auth: HTTP bearer
Path parameters
The message being replied to (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 reply message.
Changes
No recorded changes to this operation across all 1 revision of this API.