Unsubscribe
Disinterested leads in your list? Never mind, all you need to do is unsubscribe them. Using this API, you can unsubscribe leads and they will be notified.
Scope required
- ZohoMarketingAutomation.lead.UPDATE
Other alternative scopes
- ZohoMarketingAutomation.lead.CREATE-UPDATE (CREATE + UPDATE)
- ZohoMarketingAutomation.lead.WRITE (CREATE + UPDATE + DELETE)
- ZohoMarketingAutomation.lead.ALL (CREATE + UPDATE + DELETE + READ)
Header:
Header-Authorization: Zoho-oauthtoken <access_token>
Content-Type: application/x-www-form-urlencoded
Request Type:
- POST
Request URL
https://marketingautomation.zoho.com/api/v1/json/listunsubscribe
API Limit
- Duration: 5 mins
- Number of Calls: 500
- Lock Period: 30 mins
You can send 500 API calls per 5 minutes. If you hit this limit, you can't use this API for the next 30 minutes due to security reasons, but you can still use other APIs if their lock period hasn’t been reached.
List of parameters
Parameter | Data type | Description |
listkey* | String | List Key of the list from which the leads should be removed. |
resfmt | String | JSON |
leadinfo* | JSON | Lead email with other fields. |
topic_id | String | Topic ID to unsubscribe topics from leads in the mailing list. You can pass comma separated topic IDs as well. |
* - Mandatory parameters
Possible error cases
Error code | Description |
2101 | Please retry after sometime. |
If your error code is not listed above, clickhere.
Sample request
Copiedhttps://marketingautomation.zoho.com/api/v1/json/listunsubscribe?resfmt=JSON&listkey=[listkey ]&leadinfo=%7BFirst+Name%3Apatricia%2CLast+Name%3ALast+Name%2CLead+Email%3Apatricia%40zoho.com%7D
Sample Response
Copied{
"message": "User successfully unsubscribed.",
"status": "success",
"code": "0",
"uri": "/api/v1/json/listunsubscribe",
"version": "1"
}