How to Manage Suppression Lists via the CAKE API

This article will cover the following:


Overview

The Suppression & Compliance API gives you programmatic control over suppression lists — use it to sync opt-out data in real time, honor deletion requests automatically, or integrate CAKE suppression with your CRM or marketing platform.


List Suppression Lists

GET /api/2/suppression_lists.json
ParameterTypeRequiredDescription
suppression_list_idintegerNoFilter by a specific suppression list ID.
offer_idintegerNoFilter lists associated with a specific offer.
suppression_type_idintegerNoFilter by type (1=email, 2=phone, 3=IP).

Sample request

GET https://yourplatform.cakemarketing.com/api/2/suppression_lists.json ?api_key=YOUR_API_KEY &offer_id=12345

Sample response

{ "request_status": "Success", "suppression_lists": [ {"suppression_list_id": 3, "suppression_list_name": "TCPA Do Not Call", "suppression_type_name": "Phone", "entry_count": 1482}, {"suppression_list_id": 7, "suppression_list_name": "Global Email Optouts", "suppression_type_name": "Email", "entry_count": 8754} ] }

Add Suppression Entry

Adds a single value to a suppression list. Use this to honor real-time opt-out requests or sync suppression data from an external source.

POST /api/2/suppression_entry.json
ParameterTypeRequiredDescription
suppression_list_idintegerYesID of the suppression list to add the entry to.
entry_valuestringYesThe value to suppress (email address, phone number, or IP).

Sample request

POST https://yourplatform.cakemarketing.com/api/2/suppression_entry.json { "api_key": "YOUR_API_KEY", "suppression_list_id": 3, "entry_value": "5551234567" }

Sample response

{ "request_status": "Success", "suppression_entry": { "suppression_entry_id": 90421, "suppression_list_id": 3, "entry_value": "5551234567", "date_added": "2024-06-20" } }

Check Suppression Status

Performs a real-time lookup to determine whether a specific value is on a suppression list. Ideal for pre-flight checks before sending traffic.

GET /api/2/suppression_check.json
ParameterTypeRequiredDescription
offer_idintegerYesThe offer to check suppression against.
valuestringYesThe value to look up.
suppression_type_idintegerYesThe suppression type: 1=email, 2=phone, 3=IP.

Sample request

GET https://yourplatform.cakemarketing.com/api/2/suppression_check.json ?api_key=YOUR_API_KEY &offer_id=12345 &value=user%40example.com &suppression_type_id=1

Sample response

{ "request_status": "Success", "suppression_check": { "is_suppressed": true, "suppression_list_id": 7, "suppression_list_name": "Global Email Optouts", "value": "user@example.com" } }

Get and Update Scrub Rates

Returns the current scrub rate configuration for a given offer and optionally a specific affiliate.

GET /api/2/scrub_rates.json
ParameterTypeRequiredDescription
offer_idintegerYesThe offer whose scrub rate configuration should be returned.
affiliate_idintegerNoLimit to a specific affiliate. Omit to return all affiliates on the offer.

Sample request

GET https://yourplatform.cakemarketing.com/api/2/scrub_rates.json ?api_key=YOUR_API_KEY &offer_id=12345 &affiliate_id=67890

Sample response

{ "request_status": "Success", "scrub_rates": [{ "offer_id": 12345, "affiliate_id": 67890, "scrub_rate": 10, "scrub_type": "percent" }] }
POST /api/2/update_scrub_rate.json
ParameterTypeRequiredDescription
offer_idintegerYesID of the offer to update the scrub rate for.
affiliate_idintegerYesID of the affiliate to apply the scrub rate to.
scrub_rateintegerYesPercentage of conversions to withhold from payout (0–100).
scrub_typestringYesType of scrub: percent.

Sample request

POST https://yourplatform.cakemarketing.com/api/2/update_scrub_rate.json { "api_key": "YOUR_API_KEY", "offer_id": 12345, "affiliate_id": 67890, "scrub_rate": 15, "scrub_type": "percent" }

Sample response

{ "request_status": "Success", "scrub_rate": {"offer_id": 12345, "affiliate_id": 67890, "scrub_rate": 15} }

If you have any questions, please reach out to your dedicated CAKE Client Success Manager/Account Manager or contact the CAKE Support Team at support@getCAKE.com.


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.