Clicks Event Report API

You can use this API to view the reports on clicks for a given time period or for a particular contact email. 

Request Type

  • GET

Request URL

https://campaigns.zoho.com/emailapi/v2/reports/event/click

Content Type

application/json

List of Request Body Attributes

Parameters

Data Type

Description

fromLongStarting time (in UTC milliseconds) for the reports. Defaults to the starting time of the last 7 days if not provided.
toLongEnding time (in UTC milliseconds) for the reports. Defaults to the ending time of the last 7 days if not provided.
emailStringEmail address for which the reports must be obtained.
start_indexIntegerStarting index of the number of objects to be obtained. Defaults to 1 if not provided.
end_indexIntegerEnding index of the number of objects to be obtained. Defaults to 100 if not provided.

List of Response Body Attributes

ParametersData TypeDescription
dataJSON ArrayContains the details of the report.
action_timeLongTime (in UTC milliseconds) at which the click event happened.
injected_timeLongTime (in UTC milliseconds) at which the transmission* was created.
rcpt_additional_dataJSON ObjectAdditional data of the recipient that was provided by you in Transmission API or Recipient List API.
transmission_idIntegerUnique, system generated ID of the transmission.
contact_idIntegerUnique, system generated ID of the contact/recipient.
click_urlStringThe link which was clicked by the contact.
transmission_nameStringName of the transmission.
zuidIntegerZoho User ID of the user who created the transmission.
contact_emailStringEmail address of the contact/recipient.
responseJSON ObjectContains the response details of the API.
codeIntegerSuccess or failure code.
messageStringSuccess or failure message returned by the API.
errorsJSON ArrayContains the error details of the API such as 'code' and 'message'.

* - transmission refers to a campaign

Possible Error Cases

Error Codes

Description

400301Date range incorrect/not provided
400302Invalid index parameter(s)
400303Date range exceeds the allowed limit
400304Invalid contact email

Sample Request Payload

Copiedhttps://campaigns.zoho.com/emailapi/v2/reports/event/click?from=1733097600000&to=1735794302000

Sample Response - Success

Copied{
  "data": [
    {
      "action_time": 1733312508000,
      "injected_time": 1733312405000,
      "rcpt_additional_data": {
        "country": "India",
        "phone": "+911234567890",
        "id": 173333220452133
      },
      "transmission_id": 214512348000002400000,
      "contact_id": 21454811000002420000,
      "click_url": "https://zylker.com",
      "transmission_name": "API CAMPAIGN 1",
      "zuid": 841951234838,
      "contact_email": "john.doe@zylker.com"
    },
    {
      "action_time": 1734409307000,
      "injected_time": 1734409209000,
      "rcpt_additional_data": {
        "country": "India",
        "Phone": "+911234567890"
      },
      "transmission_id": 214548041200002430000,
      "contact_id": 21454811000002420000,
      "click_url": "https://zylker-alt.com",
      "transmission_name": "API CAMPAIGN 2",
      "zuid": 841951234838,
      "contact_email": "john.doe@zylker.com"
    }
  ],
  "response": {
    "code": 200301,
    "message": "Successfully obtained the reports for the given criteria"
  }
}

Sample Response - Failure

Copied{
  "errors": [
    {
      "code": 400301,
      "message": "Date range incorrect/not provided"
    }
  ]
}