Reply from an address
Auth: Bearer live key scoped to the address's domain.
Sends from the address to the message's Reply-To, or its sender, with In-Reply-To and References set from it. Every rule of POST /v1/emails applies, Idempotency-Key included. The address has to be active.
bearerAuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
application/json- body
message_id*stringThe inbound message to answer, prefixed inb_. It has to have been delivered to this address.
1 <= lengthsubject?stringSubject line. "Re: " and the original subject when omitted.
^[^\x00-\x1F\x7F\u0085\u2028\u2029]*$1 <= length <= 998html?stringHTML body. At least one of html or text is required.
text?stringPlain-text body. At least one of html or text is required.
cc?array<string>Carbon-copy addresses. The reply itself goes to the message's Reply-To, or its sender.
items <= 50attachments?array<>Files to attach, base64-encoded.
items <= 20tags?array<>Free-form tags, filterable in the dashboard.
items <= 20The queued reply. A Location header points at its url.
application/json- response
id?stringOpaque id, prefixed msg_.
url?stringWhere this message can be read at.
status?stringLifecycle status.
"queued""sent""delivered""deferred""bounced""complained""failed"from?stringSender, as Name when a name was given.
to?array<string>Recipient addresses.
cc?array<string>Carbon-copy addresses.
bcc?array<string>Blind carbon-copy addresses.
reply_to?array<string>Reply-to addresses.
subject?stringSubject line.
tags?array<string>Tags as sent.
headers?Custom headers as accepted. Empty when the send had none.
layout?|As the send asked for it: false, true for the domain's layout as configured, or the fields it overrode for this send.
key_id?|The key that sent it, prefixed key_. Null for mail sent without a key, from the dashboard or by the service itself.
batch_id?|The batch it was sent in, prefixed bat_. Null for a single send.
test_mode?booleanWhether the sending key was test-mode.
sensitive?booleanWhether the body is withheld from every read: the send set sensitive, or the message carried a credential.
warnings?array<>Hints from the recipient's send history, as they stood when this message was accepted. Empty when there's nothing worth flagging. Never changes whether the message was accepted.
provider_message_id?|The provider's own id for the message, once sent.
reason?|The provider's reason for the current status, when there is one.
attempts?integerDelivery attempts made so far.
next_attempt_at?|When the service next tries to send it, as an ISO 8601 timestamp. Null unless status is queued. A time in the past means it's due now.
created_at?stringISO 8601 timestamp.
sent_at?|ISO 8601 timestamp, or null.
delivered_at?|ISO 8601 timestamp, or null.
abandoned_at?|When the service stopped waiting on a sent message the provider never reported back on. status stays sent. Null otherwise.
size?Bytes as accepted. body_bytes is the UTF-8 size of the html and text parts before the domain's layout, attachment_bytes the decoded size of the attachments, 0 with none. Each is null on a message accepted before sizes were recorded.
resent_from?|The message this one was resent from, prefixed msg_. Null for an original send.
curl -X POST 'https://pouch.example.com/v1/addresses/string/reply' \ -H 'Content-Type: application/json' \ -d '{ "message_id": "string"}'{ "id": "string", "url": "string", "status": "queued", "from": "string", "to": [ "string" ], "cc": [ "string" ], "bcc": [ "string" ], "reply_to": [ "string" ], "subject": "string", "tags": [ "string" ], "headers": {}, "layout": true, "key_id": "string", "batch_id": "string", "test_mode": true, "sensitive": true, "warnings": [ { "code": "previously_bounced", "address": "string", "message": "string", "detail": {} } ], "provider_message_id": "string", "reason": "string", "attempts": 0, "next_attempt_at": "string", "created_at": "string", "sent_at": "string", "delivered_at": "string", "abandoned_at": "string", "size": { "body_bytes": 0, "attachment_bytes": 0 }, "resent_from": "string"}Add a forward target POST
Auth: Bearer live key scoped to the address's domain. Mails a confirmation link to the mailbox from the system from address. Nothing forwards until the mailbox confirms. A forward comes from the address, with Reply-To set to the original sender. Spam, DMARC failures and viruses never forward.
Create an address POST
Auth: Bearer live key scoped to the domain. The domain needs inbound enabled. Mail to the address emits address.received to the creating key's endpoints. After expiry or revocation, mail is dropped silently and counted; nothing is refused or bounced.