Skip to content

Quick Start

Get your first Tolinku API call working in under 5 minutes.

  • A Tolinku account (sign up free)
  • An Appspace with at least one route configured
  • An API key (create one in API Keys in the sidebar)

Go to API Keys in your Appspace dashboard and create a key:

  • Publishable key (tolk_pub_): Use in client-side code (browser, mobile app)
  • Secret key (tolk_sec_): Use in server-side code only

For this quick start, create a secret key so you can access all endpoints.

Fetch your app’s analytics overview:

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

Response:

{
"total_clicks": 10041,
"total_installs": 1401,
"conversion_rate": 14.0,
"days": 30
}

Send a custom event from your app or server:

Terminal window
curl -X POST https://your-app.tolinku.com/v1/api/analytics/track \
-H "X-API-Key: tolk_pub_your_publishable_key" \
-H "Content-Type: application/json" \
-d '{"event_type": "custom.signup_complete", "properties": {"user_id": "user_123"}}'

Response:

{ "ok": true }

For client-side integration, install the SDK for your platform:

Terminal window
npm install @tolinku/web-sdk
import { Tolinku } from '@tolinku/web-sdk';
const tolinku = new Tolinku({ apiKey: 'tolk_pub_your_key' });
tolinku.track('custom.page_view');