Reply to a message
cooper_reply_messageUse this when you need to answer a message already in a Cooper inbox, with recipients and threading filled in for you. Requires auth. Sends real email and stores the copy on the same thread. Inputs: inbox_id (required; inbox id, username, or email), message_id (required), text and/or html (one is required), reply_all (optional; default false; when true, also include the other original To and Cc addresses, merge cc, drop this inbox, and dedupe), cc, bcc, attachments, labels, client_id (optional idempotency key; a retry returns the original message and does not send again). An inbound reply goes to Reply-To or From. A reply to mail you sent goes to the original To. The subject gains Re: unless it already starts with re:. Returns the stored message. Fails with 400 missing_body, 400 missing_to, 403 recipient_blocked, 403 recipient_suppressed, 403 inbox_paused, 404 message_not_found, 404 inbox_not_found, or 402 when the monthly send limit is reached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cc | No | Extra Cc addresses, merged on reply-all | |
| bcc | No | Bcc addresses | |
| html | No | HTML body. Provide text or html. | |
| text | No | Plain-text body. Provide text or html. | |
| labels | No | Labels stored on the reply. Defaults to ["sent"]. | |
| inbox_id | Yes | Inbox id (inb_…), username, or full email address | |
| client_id | No | Optional idempotency key. Reuse it to get the original reply instead of sending twice. | |
| reply_all | No | When true, also address the other original recipients, drop this inbox, and dedupe. Default false. | |
| message_id | Yes | Message id (msg_…) to answer | |
| attachments | No | Optional files, base64-encoded |