Skip to content

Reply to an email

POST
/api/emails/{emailId}/reply

Create and queue a reply to an inbound email. Mailisk derives the reply recipient, sender namespace, and threading headers from the source email, defaults the subject to Re: {original subject}, and requires either html or text content. Attachments can be included by passing base64 encoded file bytes in attachments[].content_base64; use application/octet-stream when the file should be preserved as a downloadable attachment. Replies sent only to same-namespace recipients do not consume outbound usage because they are counted as inbound email when delivered.

Authorizations

ApiKey
Type
API Key (header: X-Api-Key)

Parameters

Path Parameters

emailId*
Type
string
Required

Request Body

application/json
JSON
{
  
"cc": [
  
  
"optional@example.com"
  
],
  
"bcc": [
  
  
"optional-bcc@example.com"
  
],
  
"subject": "string",
  
"attachments": [
  
  
{
  
  
  
"filename": "invoice.pdf",
  
  
  
"content_type": "application/octet-stream",
  
  
  
"content_base64": "SGVsbG8sIE1haWxpc2sh",
  
  
  
"content_id": "logo",
  
  
  
"disposition": "string"
  
  
}
  
],
  
"from": {
  
  
"email": "support@mynamespace.mailisk.net",
  
  
"name": "Support"
  
},
  
"html": "string",
  
"text": "string"
}

Responses

application/json
JSON
{
  
"id": "string",
  
"organisation_id": "string",
  
"type": "string",
  
"status": "string",
  
"from": {
  
  
"email": "support@mynamespace.mailisk.net",
  
  
"name": "Support"
  
},
  
"reply_to": {
  
  
"email": "support@mynamespace.mailisk.net",
  
  
"name": "Support"
  
},
  
"subject": "string",
  
"recipient_count": 0,
  
"attachment_count": 0,
  
"message_id": "string",
  
"provider": "string",
  
"provider_message_id": "string",
  
"failure_reason": "string",
  
"queued_at": "string",
  
"sending_at": "string",
  
"sent_at": "string",
  
"failed_at": "string",
  
"created_at": "string",
  
"updated_at": "string"
}

Playground

Server
Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI