Skip to main content
GET
/
event-by-index
Event by Index
curl --request GET \
  --url https://tokens.shakesco.com/event-by-index \
  --header 'Authorization: Bearer <token>'
{ "event_name": "signup" }

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 the name of the event at the given index. Loop from 0 to event_count - 1 to enumerate every event you’ve configured.

Query Parameters

index
integer
required
0-based event index (less than event_count from /event-counter)

Response

event_name
string
Lowercase event identifier
for (let i = 0; i < eventCount; i++) {
  const res = await fetch(
    `https://tokens.shakesco.com/event-by-index?index=${i}`,
    { headers: { Authorization: `Bearer ${API_KEY}` } }
  );
  const { event_name } = await res.json();
}
{ "event_name": "signup" }