Send Email

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Send a transactional email to one or more recipients.

Endpoint

post /email

Request URL

https://api.zeptomail.com/v1.1/email Copied!

Request Parameters

- Request Headers

SendMailTokenAPI Key

Send Mail Token. Pass it with the prefix: Zoho-enczapikey

- Request Body

application/json
JSON Object
Show Sub-Attributes
ccJSON ArrayOptional

Array of CC recipient email addresses.

Show Sub-Attributes
email_addressJSON ObjectOptional
Show Sub-Attributes
addressstringOptional
namestringOptional
htmlbodystringOptional

HTML content of the email body.

client_referencestringOptional

A custom reference string to identify the email in your system.

bccJSON ArrayOptional

Array of BCC recipient email addresses.

Show Sub-Attributes
email_addressJSON ObjectOptional
Show Sub-Attributes
addressstringOptional
namestringOptional
attachmentsJSON ArrayOptional

Array of file attachments.

Show Sub-Attributes
file_cache_keystringOptional
mime_typestringOptional
namestringOptional
contentstringOptional

Base64-encoded file content.

subjectstringMandatory

Subject line of the email.

inline_imagesJSON ArrayOptional

Array of inline images embedded in the email body.

Show Sub-Attributes
mime_typestringOptional
namestringOptional
contentstringOptional

Base64-encoded image content.

cidstringOptional
track_opensbooleanOptional

Enable or disable open tracking.

reply_toJSON ArrayOptional

Reply-to email address.

Show Sub-Attributes
addressstringOptional
namestringOptional
mime_headersJSON ObjectOptional

Custom MIME headers to add to the email.

Show Sub-Attributes
fromJSON ObjectMandatory

The sender's email address and optional display name.

Show Sub-Attributes
addressstringMandatory
namestringOptional
toJSON ArrayMandatory

Array of recipient email addresses.

Show Sub-Attributes
email_addressJSON ObjectOptional
Show Sub-Attributes
addressstringOptional
namestringOptional
textbodystringOptional

Plain text content of the email body.

track_clicksbooleanOptional

Enable or disable click tracking.

Sample Request

Curl
Java
Python
Deluge
Copied!
curl --request POST \
  --url https://api.zeptomail.com/v1.1/email \
  --header 'Authorization: REPLACE_KEY_VALUE' \
  --header 'content-type: application/json' \
  --data '{"cc":[{"email_address":{"address":"manager@zylker.com","name":"Manager"}}],"htmlbody":"<div><b>Kindly click on Verify Account to confirm your account.</b></div>","client_reference":"order-12345","bcc":[{"email_address":{"address":"archive@zylker.com","name":"Archive"}}],"attachments":[{"file_cache_key":"fc-xxxx-xxxx","mime_type":"application/pdf","name":"invoice.pdf","content":"string"}],"subject":"Account Confirmation","inline_images":[{"mime_type":"image/png","name":"logo.png","content":"string","cid":"logo"}],"track_opens":true,"reply_to":[{"address":"support@zylker.com","name":"Support"}],"mime_headers":{"property1":"string","property2":"string"},"from":{"address":"accounts@info.zylker.com","name":"Paula"},"to":[{"email_address":{"address":"rudra.d@zylker.com","name":"Rudra"}}],"textbody":"Kindly click on Verify Account to confirm your account.","track_clicks":true}'

Sample Request Body

Copied!
  {
    "cc": [
      {
        "email_address": {
          "address": "manager@zylker.com",
          "name": "Manager"
        }
      }
    ],
    "htmlbody": "<div><b>Kindly click on Verify Account to confirm your account.</b></div>",
    "client_reference": "order-12345",
    "bcc": [
      {
        "email_address": {
          "address": "archive@zylker.com",
          "name": "Archive"
        }
      }
    ],
    "attachments": [
      {
        "file_cache_key": "fc-xxxx-xxxx",
        "mime_type": "application/pdf",
        "name": "invoice.pdf",
        "content": "string"
      }
    ],
    "subject": "Account Confirmation",
    "inline_images": [
      {
        "mime_type": "image/png",
        "name": "logo.png",
        "content": "string",
        "cid": "logo"
      }
    ],
    "track_opens": true,
    "reply_to": [
      {
        "address": "support@zylker.com",
        "name": "Support"
      }
    ],
    "mime_headers": {
      "property1": "string",
      "property2": "string"
    },
    "from": {
      "address": "accounts@info.zylker.com",
      "name": "Paula"
    },
    "to": [
      {
        "email_address": {
          "address": "rudra.d@zylker.com",
          "name": "Rudra"
        }
      }
    ],
    "textbody": "Kindly click on Verify Account to confirm your account.",
    "track_clicks": true
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Show Sub-Attributes
dataJSON Array
Show Sub-Attributes
codestring
additional_infoJSON Array
Show Sub-Attributes
toJSON Object
Show Sub-Attributes
email_addressJSON Object
Show Sub-Attributes
addressstring
namestring
messagestring
messagestring
request_idstring

- HTTP code 400

Response Body - application/json
JSON Object
Show Sub-Attributes
dataJSON Object
Show Sub-Attributes
error_codestring
messagestring
messagestring

Possible Response Codes

200HTTP code

Email sent successfully.

400HTTP code

Bad Request

Sample Response: HTTP 200

Copied!
  {
    "data": [
      {
        "code": "EM_104",
        "additional_info": [
          {
            "to": {
              "email_address": {}
            }
          }
        ],
        "message": "OK"
      }
    ],
    "message": "OK",
    "request_id": "req-xxxx"
  }
                
Show full

Sample Response: HTTP 400

Copied!
  {
    "data": {
      "error_code": "TM_3004",
      "message": "Invalid request"
    },
    "message": "error"
  }
                
Show full