This article will cover the following:
When to use these endpoints:
Use these endpoints to manage creative assets and landing pages at scale — create banners and text links programmatically, rotate landing pages for A/B testing, and sync creative updates.
Use these endpoints to manage creative assets and landing pages at scale — create banners and text links programmatically, rotate landing pages for A/B testing, and sync creative 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 — Campaigns & Creatives reference, which documents all available endpoints for this feature area.
Available Endpoints
Get Creatives
Retrieves creative assets associated with an offer. Use to enumerate available creatives before assigning to a campaign.
When to use: Retrieve all banner/text link options for an offer before creating or updating a campaign.
GET /api/2/creatives.json| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your CAKE API key. |
| creative_id | integer | No | Filter to a specific creative. |
| offer_id | integer | No | Filter creatives for a specific offer. |
| creative_type_id | integer | No | Filter by creative type (1=Banner, 2=Text Link, 3=Email, 4=HTML). |
| creative_status | string | No | active | paused | deleted |
Sample request
GET https://yourdomain.cakemarketing.com/api/2/creatives.json?api_key=YOUR_API_KEY&offer_id=12345&creative_status=activeSample response
{
"request_status": "Success",
"creatives": [
{
"creative_id": 4421,
"creative_name": "Banner 300x250",
"creative_type": "Banner",
"offer_id": 12345,
"creative_status": "active",
"width": 300,
"height": 250
}
]
}Get Landing Pages
Retrieves landing pages associated with an offer. An offer can have multiple landing pages enabling A/B testing and geo-targeted routing.
When to use: Enumerate landing page options for an offer before creating a campaign or setting up A/B testing.
GET /api/2/landing_pages.json| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your CAKE API key. |
| landing_page_id | integer | No | Filter to a specific landing page. |
| offer_id | integer | No | Filter landing pages for a specific offer. |
| landing_page_status | string | No | active | paused | deleted |
Sample request
GET https://yourdomain.cakemarketing.com/api/2/landing_pages.json?api_key=YOUR_API_KEY&offer_id=12345&landing_page_status=activeSample response
{
"request_status": "Success",
"landing_pages": [
{
"landing_page_id": 881,
"landing_page_name": "Main LP - US",
"offer_id": 12345,
"url": "https://safedrive.example.com/quote",
"landing_page_status": "active"
}
]
}You may also be interested in:
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.
You may also be interested in:
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.