This will allow you to unsubscribe a lead from any specific mailing list. Note that you must have previously created your list within your Kartra account (https://app.kartra.com/communication/lists). The API will fail if it doesn’t find the list within your Kartra account. Moreover, if the lead had not been previously subscribed to that list, the API will take no action.
Type | Parameters | Values |
POST | cmd* | unsubscribe_lead_from_list |
POST | list_name* | string |
* Required fields Here is an example:
'lead' => [ 'email' => '[email protected]' ], 'actions' => [ '0' => [ 'cmd' => 'unsubscribe_lead_from_list', 'list_name' => 'List name' ] ]
Success message:
{
"status": "Success",
"message": "Lead unsubscribed from list",
"type": "101"
}
Error Cases:
Type Number | Message | Cause |
208 | List cannot be empty |
|
209 | List does not exist |
|
{
"status": "Error",
"message": "List does not exist",
"type": "209"
}