Skip to main content
GET
/
daily-earnings
Daily Earnings
curl --request GET \
  --url https://tokens.shakesco.com/daily-earnings \
  --header 'Authorization: Bearer <token>'
{
  "earned_today": "12.0",
  "last_reset_time": "1715000000",
  "cap": "50.0"
}

Documentation Index

Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt

Use this file to discover all available pages before exploring further.

For the complete documentation index, see llms.txt. Returns how much of the daily cap a customer has used up in their current rolling 24-hour window. Use this to show “you’ve earned X / Y today” in your UI, or to predict when a customer will hit the cap.

Query Parameters

customer_ref
string
required
Your unique identifier for this customer

Response

earned_today
string
Tokens this customer has earned since their window started
last_reset_time
string
Unix timestamp (seconds) when the current 24-hour window started. Add 86400 to know when it resets.
cap
string
Current per-day cap (same value as daily-cap-settings.cap)
const res = await fetch(
  "https://tokens.shakesco.com/daily-earnings?customer_ref=customer-123",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { earned_today, last_reset_time, cap } = await res.json();
{
  "earned_today": "12.0",
  "last_reset_time": "1715000000",
  "cap": "50.0"
}