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://cpaas.zoho.com/v1.1/email Copied!

Request Parameters

- Request Headers

ApiKeyAuthAPI Key

API key of an agent. Send the header as Authorization: Zoho-enczapikey {apiKey}. The agent and account are derived from the key.

- Request Body

application/json
JSON Object
Show Sub-Attributes
ccarray[object]Optional

Array of CC recipient email addresses.

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.

bccarray[object]Optional

Array of BCC recipient email addresses.

email_addressJSON ObjectOptional
Show Sub-Attributes
addressstringOptional
namestringOptional
attachmentsarray[object]Optional

Array of file attachments.

file_cache_keystringOptional
mime_typestringOptional
namestringOptional
contentstringOptional

Base64-encoded file content.

subjectstringMandatory

Subject line of the email.

inline_imagesarray[object]Optional

Array of inline images embedded in the email body.

mime_typestringOptional
namestringOptional
contentstringOptional

Base64-encoded image content.

cidstringOptional
track_opensbooleanOptional

Enable or disable open tracking.

reply_toarray[object]Optional

Reply-to email address.

addressstringOptional
namestringOptional
mime_headersobjectOptional

Custom MIME headers to add to the email.

property name*stringOptionaladditional properties
fromobjectMandatory

The sender's email address and optional display name.

addressstringMandatory
namestringOptional
toarray[object]Mandatory

Array of recipient email addresses.

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://cpaas.zoho.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
dataarray[object]
messagestringread-only
request_idstringread-only

- HTTP code 400

Response Body - application/json
JSON Object
Show Sub-Attributes
dataJSON Object
Show Sub-Attributes
error_codestringread-only
messagestringread-only
messagestringread-only

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