Skip to main content
GET
/
event-allocation
Event Allocation
curl --request GET \
  --url https://tokens.shakesco.com/event-allocation \
  --header 'Authorization: Bearer <token>'
{ "total_allocation": "15.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 many tokens you’ve distributed for a given event since launch. Useful for usage analytics.

Query Parameters

event_name
string
required
The event identifier

Response

total_allocation
string
Sum of tokens awarded for this event across every customer
const res = await fetch(
  "https://tokens.shakesco.com/event-allocation?event_name=purchase",
  { headers: { Authorization: `Bearer ${API_KEY}` } }
);
const { total_allocation } = await res.json();
{ "total_allocation": "15.0" }