This article will cover the following:
Overview
These endpoints give you programmatic access to platform-level diagnostics and reference data. Use them to monitor API activity, confirm platform availability, and retrieve the lookup table values that power other API calls. Because lookup tables rarely change, responses are safe to cache locally and refresh on a schedule.
Cache lookup table responses (payout types, timezones, currencies) locally and refresh them once daily or when you detect a change. This reduces your API request volume significantly.
Retrieve API Logs
Returns a paginated list of API request log entries. Filter by date range, calling user, or HTTP method to isolate activity from a specific integration.
| Parameter | Type | Required | Description |
|---|---|---|---|
| start_date | date | No | Filter logs on or after this date (YYYY-MM-DD). |
| end_date | date | No | Filter logs on or before this date (YYYY-MM-DD). |
| user_id | integer | No | Limit results to logs generated by a specific user. |
| request_method | string | No | Filter by HTTP method: GET or POST. |
| start_at_row | integer | No | Row offset. Default: 0. |
| row_limit | integer | No | Max log entries. Default: 25; max: 500. |
Sample request
GET https://your-domain.cake.com/api/2/api_logs.json
?api_key=YOUR_API_KEY
&start_date=2024-01-01
&end_date=2024-01-31
&request_method=POSTSample response
{
"request_status": "Success",
"api_logs": [
{"log_id": 9841, "username": "integrations@example.com", "request_method": "GET", "request_url": "/api/2/offers.json", "response_status": "Success", "created": "2024-01-15 08:42:11"},
{"log_id": 9842, "username": "integrations@example.com", "request_method": "POST", "request_url": "/api/2/offer.json", "response_status": "Success", "created": "2024-01-15 08:43:05"}
],
"total_rows": 418
}Get System Status
Returns the current operational status of the CAKE platform. This endpoint accepts only your api_key and is designed to be polled by uptime monitors or health-check scripts.
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your CAKE API key. No other parameters required. |
Sample request
GET https://your-domain.cake.com/api/2/system_status.json?api_key=YOUR_API_KEYSample response
{
"request_status": "Success",
"system_status": {
"status": "Operational",
"message": "All systems are running normally.",
"checked_at": "2024-01-15 09:00:00"
}
}Get Payout Types
| Parameter | Type | Required | Description |
|---|---|---|---|
| payout_type_id | integer | No | Return a single payout type by ID. Omit to return all types. |
Sample request
GET https://your-domain.cake.com/api/2/payout_types.json?api_key=YOUR_API_KEYSample response
{
"request_status": "Success",
"payout_types": [
{"payout_type_id": 1, "payout_type_name": "CPA"},
{"payout_type_id": 2, "payout_type_name": "CPC"},
{"payout_type_id": 3, "payout_type_name": "CPM"},
{"payout_type_id": 4, "payout_type_name": "CPS"}
]
}Get Timezones
| Parameter | Type | Required | Description |
|---|---|---|---|
| timezone_id | integer | No | Return a single timezone by ID. Omit to return all timezones. |
Sample request
GET https://your-domain.cake.com/api/2/timezones.json?api_key=YOUR_API_KEYSample response
{
"request_status": "Success",
"timezones": [
{"timezone_id": 1, "timezone_name": "Eastern Time (US & Canada)"},
{"timezone_id": 2, "timezone_name": "Central Time (US & Canada)"},
{"timezone_id": 3, "timezone_name": "Pacific Time (US & Canada)"}
]
}Get Currencies
| Parameter | Type | Required | Description |
|---|---|---|---|
| currency_id | integer | No | Return a single currency by ID. Omit to return all currencies. |
Sample request
GET https://your-domain.cake.com/api/2/currencies.json?api_key=YOUR_API_KEYSample response
{
"request_status": "Success",
"currencies": [
{"currency_id": 1, "currency_symbol": "USD", "currency_name": "US Dollar"},
{"currency_id": 2, "currency_symbol": "EUR", "currency_name": "Euro"},
{"currency_id": 3, "currency_symbol": "GBP", "currency_name": "British Pound"}
]
}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.