How to Retrieve Affiliate Data via the CAKE API

This article will cover the following:

When to use these endpoints:
Use these read-only endpoints to sync your affiliate roster into external systems, build affiliate directory views, and retrieve the reference data you need before making updates.
Authentication: All CAKE API requests require your api_key parameter. Find yours under Setup → System Access → API Keys.
Part of a series: This focused guide covers specific endpoints from the complete CAKE API — Affiliates reference, which documents all available endpoints for this feature area.

Available Endpoints

Get Affiliates

Retrieves a list of affiliate records. Use to search by name, status, account manager, or tag; pull paginated lists for bulk operations; or sync your affiliate roster into an external system.

When to use: Sync affiliates into an external CRM, build management dashboards, or identify accounts by status for bulk operations.
GET /api/2/affiliates.json
ParameterTypeRequiredDescription
api_keystringYesYour CAKE API key.
affiliate_idintegerNoFilter to a single affiliate by their unique numeric ID.
affiliate_namestringNoPartial or full name filter. Supports partial matches.
affiliate_statusstringNoactive | inactive | pending
account_manager_idintegerNoReturn only affiliates assigned to this account manager.
tag_idintegerNoFilter by a specific tag ID.
start_at_rowintegerNoPagination offset. Default 0.
row_limitintegerNoMax records to return. Default 100, max 500.
sort_fieldstringNoaffiliate_id or affiliate_name.
sort_descendingbooleanNotrue for descending sort.

Sample request

GET https://yourdomain.cakemarketing.com/api/2/affiliates.json?api_key=YOUR_API_KEY&affiliate_status=active&account_manager_id=42&row_limit=50&start_at_row=0

Sample response

{ "request_status": "Success", "response": { "affiliates": [ { "affiliate": { "affiliate_id": 67890, "affiliate_name": "MediaBridge Partners", "affiliate_status": { "id": 1, "name": "active" }, "account_manager": { "id": 42, "name": "Jordan Lee" }, "website": "https://www.mediabridgepartners.com", "billing_cycle": { "id": 3, "name": "Monthly" }, "payment_method": { "id": 2, "name": "Wire Transfer" }, "minimum_payment_threshold": "100.00", "date_created": "2023-06-15" } } ] } }


Get Affiliate Offer

Retrieves the offer access configuration for a specific affiliate-offer pairing, including custom payout overrides.

When to use: Audit which payout a specific affiliate is receiving on an offer, or verify offer access before triggering campaign workflows.
GET /api/2/affiliate_offer.json
ParameterTypeRequiredDescription
api_keystringYesYour CAKE API key.
affiliate_idintegerYesAffiliate ID.
offer_idintegerYesOffer ID.

Sample request

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

Sample response

{ "request_status": "Success", "response": { "affiliate_offer": { "affiliate_id": 67890, "offer_id": 12345, "payout": 20.00, "payout_type": "CPA", "affiliate_offer_status": "active" } } }


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.



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.