Tokei Public API
API by Tokei · rest
The Tokei Public API lets you manage promotions, create entries programmatically, pull analytics and leaderboards, and receive webhooks when participants enter. All endpoints are versioned under /api/v1 and return JSON. API access requires an active subscription or lifetime plan — trial accounts receive 403 FORBIDDEN. Every authenticated response includes rate-limit headers in two spellings: the long-standing X-RateLimit-Limit / X-RateLimit-Remaining / X-RateLimit-Reset (Reset is an absolute Unix timestamp) and the IETF-draft RateLimit-Limit / RateLimit-Remaining / RateLimit-Reset / RateLimit-Policy (Reset is a delta in seconds). A 429 additionally carries Retry-After. A request that fails authentication (401) or the plan check (403) carries none of them, because the key is checked before the limiter. Limits are per account: Subscriber 60 read / 30 write per minute, Lifetime 120 read / 60 write per minute. Versioning and deprecation: every authenticated endpoint lives under…
Endpoint: https://tokei.io/api/v1
Verification: observed. Source: crawl.
Capabilities (20)
- Every entry-action type Tokei supports
- List all your promotions
- Retrieve a specific promotion
- Update a promotion
- Aggregated analytics for a promotion
- List entries for a promotion
- Create a new entry
- Participants ranked by entry points
- Top referrers ranked by conversions
- List survey responses for a promotion
- Selection-run history with each run's winners
- Every webhook event Tokei's delivery engine understands
- Verify API key and return account information
- Upload an image or video
- Create a promotion by cloning one you own
- List every promotion that is live right now (no auth)
- List the platform's named starting points
- List webhook subscriptions
- Create a webhook subscription
- Delete a webhook subscription