Analytics collects events for a Project: one isolated event space with its own database, its own credentials and its own quota. This page takes a Project from nothing to a first verified event. It assumes you have a Project and its Project token; if you do not, ask the Project owner, or create one from the Analytics settings in the admin app.
Everything below is a real call against the live service at https://t.intelligent.page.
At a glance
1. Pick the right credential
Two credentials, and the difference matters before you paste either one anywhere:
A Project token is write-only by construction: it is rejected on every read route, so shipping it in a bundle exposes nothing but the ability to send events. A Server key can read every report in the Project and change its settings, so it stays on your servers.
Both are shown once, at creation, and stored only as a hash. See Tokens and keys.
2. Send one event
curl -i -X POST https://t.intelligent.page/v1/ingest \
-H 'content-type: application/json' \
-H 'x-analytics-token: ipa_pub_REPLACE_ME' \
-d '{
"v": 1,
"events": [
{
"id": "b0e1d2c3-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
"ts": "2026-09-28T09:15:00.000Z",
"event": "Signed Up",
"uid": "user_1024",
"props": { "plan": "free", "source": "pricing page" }
}
]
}'
HTTP/1.1 204 No Content means the batch was accepted, validated and handed to the durable log. There is no body to read.
Three fields are required on every event:
id: your idempotency key. Send the same id twice and the second one is dropped, so a retry is free. A UUID is the easy choice.ts: an ISO 8601 timestamp. An untrusted writer's timestamp is clamped to the last 24 hours, so it cannot backfill history. See Import history.event: the event name, 1 to 96 characters. Interior spaces are fine, soSigned Upandorder.paidare both valid names.
At least one identifier is also required, or the event is dropped without a word: uid for a known person, aid for an anonymous visitor, or both. A Project token may not set did (the explicit distinct id); that field is reserved for trusted writers and is stripped from untrusted batches.
The token can also travel in the request body as token, or in the query string as ?token=. That exists for navigator.sendBeacon, which cannot set headers. Prefer the header everywhere else.
3. Watch it arrive
GET /v1/live is a Server-Sent Events stream of everything accepted for the Project, pushed as it is accepted. It needs a read credential, so use the Server key, not the Project token:
curl -N https://t.intelligent.page/v1/live \ -H 'Authorization: Bearer ipa_sec_REPLACE_ME'
retry: 3000
event: ready
data: {"project":"acme-shop"}
event: analytics
data: {"at":"2026-09-28T09:15:00.412Z","project":"acme-shop","id":"b0e1d2c3-4a5b-4c6d-8e9f-0a1b2c3d4e5f","ts":"2026-09-28T09:15:00.000Z","event":"Signed Up","did":"user_1024","uid":"user_1024","aid":null,"path":null,"url":null,"source":"web","props":{"plan":"free","source":"pricing page"}}
Send the curl from step 2 again in a second terminal and the frame appears immediately. Lines beginning with : are keep-alives, every 25 seconds, so a proxy does not close an idle stream.
The same stream is what the Live view in the admin app renders. If an event reaches the stream, the credential, the Project and the event shape are all correct, and anything still missing from a report is a reporting question rather than an ingest one.
4. Say who did it
The anonymous visitor you tracked before sign-in and the person you know afterwards are two ids. POST /v1/identify merges them:
curl -X POST https://t.intelligent.page/v1/identify \
-H 'content-type: application/json' \
-H 'x-analytics-token: ipa_pub_REPLACE_ME' \
-d '{
"distinctId": "anon_9f2c41",
"userId": "user_1024",
"traits": { "email": "ada@example.com", "plan": "free" }
}'
{ "accepted": 2, "events": ["$identify", "$set"] }
Two events, because traits also update the person's profile. The merge rewrites the last 30 days of that anonymous id's events and sessions onto the person, and folds the anonymous profile's counters into theirs. Read Identity and merge before you rely on the exact semantics: what identify does and what alias deliberately does not do are different answers.
5. Install a real client
Hand-rolled curl is for the first event only. Install one of our SDKs next; each one wraps the ids, the batching, the retries and the unload flush you would otherwise write yourself.
Moving rather than starting? An app already instrumented for Mixpanel can keep reporting from day one while you swap its SDK out: Migrating from Mixpanel.
Answers you will see
A 204 with nothing in the Live view means the batch validated to zero events: usually a missing identifier, a name the validator rejected, or a duplicate id. Limits and validation lists every silent drop.