Mailcompose API
  1. APIs
Mailcompose API
  • πŸšΆπŸΌβ€β™‚οΈ Walk through Mailcompose
  • Receive Email Webhook
  • APIs
    • Send Email
      POST
    • Reply
      POST
    • Reply All
      POST
  1. APIs

Reply

POST
https://apis.mailcompose.com/apis/v1/reply
This API will send a reply email to only 1 email address who was the sender. You can add extra receipents by passing more emails in CC, BCC params.

Request

Header Params

Body Params application/json

Example
{
    "from": "invoices@yourcompany.com",
    "mailcomposeEmailId": "msdvwefnwodw2wdmwd",
    "cc": [
        "user@example.com"
    ],
    "bcc": [
        "user@example.com"
    ],
    "text": "string",
    "html": "string",
    "attachments": [
        {
            "filename": "att1.jpg",
            "contentType": "image/jpeg",
            "base64": "iYQ..."
        }
    ]
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apis.mailcompose.com/apis/v1/reply' \
--header 'Api-Key: xyz-xyz-xyz-xyz-xyz' \
--header 'Api-Secret: xyz-xyz-xyz-xyz-xyz' \
--header 'User-Agent: YourCompanyName' \
--header 'Content-Type: application/json' \
--data-raw '{
    "from": "invoices@yourcompany.com",
    "mailcomposeEmailId": "msdvwefnwodw2wdmwd",
    "cc": [
        "user@example.com"
    ],
    "bcc": [
        "user@example.com"
    ],
    "text": "string",
    "html": "string",
    "attachments": [
        {
            "filename": "att1.jpg",
            "contentType": "image/jpeg",
            "base64": "iYQ..."
        }
    ]
}'

Responses

🟒200Success
application/json
Body

Example
{
    "success": true,
    "payload": {
        "messageId": "snmdkm2k3em2@sub.domain.com",
        "mailcomposeEmailId": "makcwi2d2w1212e",
        "threadId": "tsdvjne12e12pkm1pk"
    }
}
🟠402Free Plan Limit Exceeded
Modified atΒ 2024-08-14 12:28:36
Previous
Send Email
Next
Reply All
Built with