MaillyDocs

Reply to an email

Reply to an email with the Mailly email API for AI agents: POST /inbox/messages/{id}/reply. Parameters, request body, responses and code samples.

POST
/inbox/messages/{id}/reply

Uses the governed, billed send path; on success the reply is written to the same thread with direction=outbound. Supports the Idempotency-Key header (8-200 characters of letters, digits, . _ : -).

Authorization

bearerAuth
headerAuthorizationBearer <token>

Mailly API key(Authorization: Bearer )

Path Parameters

id*string

Email ID

Request Body

application/json
  1. body
text?string
html?string
subject?string
to?string

Override recipient

cc?|array<string>

Cc addresses: comma-separated string or array

bcc?|array<string>

Bcc addresses: comma-separated string or array

reply_all?boolean

Also Cc the original To/Cc recipients, excluding yourself. Default false

fromName?string
attachments?array<>
[key: string]?unknown

Response Body

Reply result (passed through from the send path, JSON)

curl -X POST 'https://api.mailly.site/inbox/messages/string/reply' \  -H 'Content-Type: application/json' \  -d '{  "property1": null,  "property2": null}'
Empty