Skip to content

API Reference

This reference covers every endpoint in the Tolinku REST API. All endpoints are JSON-based unless otherwise noted.

https://your-app.tolinku.com/v1/api

Replace your-app.tolinku.com with your Appspace’s domain (subdomain or custom domain).

Include your API key in every request via the X-API-Key header:

Terminal window
curl -H "X-API-Key: tolk_sec_your_secret_key" \
https://your-app.tolinku.com/v1/api/analytics/overview

See Authentication for details on key types and scopes.

  • All request bodies must be JSON with Content-Type: application/json.
  • Query parameters use standard URL encoding.
  • Dates use ISO 8601 format (e.g. 2026-01-15).

All successful responses return JSON. The shape varies by endpoint but follows consistent patterns:

// Single resource
{ "referral_code": "ABC123", "status": "pending" }
// Collection
{ "banners": [ ... ] }
// Action confirmation
{ "ok": true }

All errors return a JSON object with an error field:

{
"error": "Human-readable error message"
}

Plan enforcement errors include a code field:

{
"error": "This feature requires a paid plan",
"code": "FEATURE_GATED"
}
CodeMeaning
FEATURE_GATEDThe feature is not available on the free tier
USAGE_EXCEEDEDThe Appspace has exceeded its plan’s usage limits
APPSPACE_FROZENThe Appspace is frozen (billing issue)

All /v1/api/ endpoints share a rate limit of 1,000 requests per minute per IP address. Exceeding this limit returns HTTP 429:

{ "error": "Too many requests. Please slow down." }

Standard RateLimit-* headers are included in every response.

When your Appspace reaches 80% of its plan’s click or API call limit, responses include an X-Usage-Warning header with the current usage percentage.