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');
Section titled “5. Claim the deferred link on first launch”

If someone taps one of your links, installs the app, and opens it, the app has to ask which link brought them in. That is one call, and the same call on every platform:

const link = await tolinku.deferred.claimDeferredLink({
appspaceId: '64f0a1b2c3d4e5f60718',
});
if (link) {
// Route to link.deep_link_path
}

Call it once, on the first launch after install. Skipping it is the most common reason a working setup reports no installs: the links resolve, the clicks are counted, and nothing ever connects an install back to the click that caused it.

See deferred deep linking for how the matching works and why it must happen on first launch.