CAKE API Logs, System Status, and Lookup Tables

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.

Tip:
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.

GET /api/2/api_logs.json
ParameterTypeRequiredDescription
start_datedateNoFilter logs on or after this date (YYYY-MM-DD).
end_datedateNoFilter logs on or before this date (YYYY-MM-DD).
user_idintegerNoLimit results to logs generated by a specific user.
request_methodstringNoFilter by HTTP method: GET or POST.
start_at_rowintegerNoRow offset. Default: 0.
row_limitintegerNoMax 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=POST

Sample 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.

GET /api/2/system_status.json
ParameterTypeRequiredDescription
api_keystringYesYour CAKE API key. No other parameters required.

Sample request

GET https://your-domain.cake.com/api/2/system_status.json?api_key=YOUR_API_KEY

Sample 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

GET /api/2/payout_types.json
ParameterTypeRequiredDescription
payout_type_idintegerNoReturn 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_KEY

Sample 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

GET /api/2/timezones.json
ParameterTypeRequiredDescription
timezone_idintegerNoReturn 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_KEY

Sample 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

GET /api/2/currencies.json
ParameterTypeRequiredDescription
currency_idintegerNoReturn 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_KEY

Sample 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.


Did you find it helpful? Yes No

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