Every way of getting data into a Project ends at the same small set of HTTP routes. The SDKs, the Mixpanel-compatible shim and the connectors are all clients of these. If you are writing an integration in a language we do not ship a client for, this is the whole contract.
At a glance
A Project token is rejected on every route that returns data. There is no exception and no setting that changes it.
POST /v1/ingest
Writes a batch of events. This is the route the web client, the mobile SDKs and the connectors all use.
POST /v1/ingest HTTP/1.1 Host: t.intelligent.page Content-Type: application/json x-analytics-token: ipa_pub_REPLACE_ME
{
"v": 1,
"sentAt": "2026-09-28T09:15:01.000Z",
"events": [
{
"id": "b0e1d2c3-4a5b-4c6d-8e9f-0a1b2c3d4e5f",
"ts": "2026-09-28T09:15:00.000Z",
"event": "Order Paid",
"uid": "user_1024",
"aid": "anon_9f2c41",
"sid": "sess_51ab",
"url": "https://shop.example.com/checkout/thanks",
"path": "/checkout/thanks",
"ref": "https://news.example.com/",
"tz": "Europe/London",
"loc": "en-GB",
"props": { "revenue": 42.5, "currency": "GBP", "items": 3 },
"sp": { "utm_source": "newsletter", "utm_campaign": "autumn" }
}
]
}
Answer: 204 and no body.
The event object
At least one of did, uid, aid must be present, or the event is dropped: there is nobody to attribute it to.
v must be 1. A bare array of events is also accepted in place of the wrapper object.
Answers
Browsers of our own app, recognised by their Origin rather than a key, always get 204 so a misconfiguration never surfaces in a visitor's console. A keyed writer always gets the real status: you are integrating, and silence would be worse than an error.
POST /v1/import
History. Same event shape, bigger ceilings, and original timestamps survive.
- Server key only. A Project token gets
401 {"error":"server_key_required"}. - Up to 2 000 events and 10 MB per request. The service slices your list into batches of 50 internally.
- Anything past 2 000 is counted in
rejected, never silently discarded.
curl -X POST https://t.intelligent.page/v1/import \
-H 'content-type: application/json' \
-H 'Authorization: Bearer ipa_sec_REPLACE_ME' \
-d '{
"events": [
{ "id": "order-8821", "ts": "2024-03-02T11:04:00.000Z", "event": "Order Paid",
"did": "user_88", "props": { "revenue": 19.99, "currency": "GBP" } }
]
}'
{ "accepted": 1, "rejected": 0 }
/v1/import keeps every event's ts exactly as sent; the service marks imported ids internally so they are never clamped. Use your own stable id per row (an order id, a row key) so a re-run after a failure is idempotent. Only /v1/ingest clamps timestamps to the last 24 hours.
A rate limit or quota wall stops the run and tells you where it stopped:
{ "accepted": 1500, "rejected": 500, "quota": { "exceeded": true }, "error": "quota_exceeded" }
with status 429. The accepted head is already written; resume from the event after it.
Identity routes
Three conveniences over the reserved events. Each builds the event and sends it down the same path as /v1/ingest, so they share its guards and quota. A Project token may call all three.
POST /v1/identify
{ "distinctId": "anon_9f2c41", "userId": "user_1024", "traits": { "email": "ada@example.com" } }
{ "accepted": 2, "events": ["$identify", "$set"] }
Two events when traits are present: the merge, and a profile update. distinct_id and user_id are also accepted as field names, and anonymousId for distinctId.
POST /v1/alias
{ "distinctId": "user_1024", "alias": "ada@example.com" }
{ "accepted": 1, "events": ["$alias"] }
alias must differ from distinctId.
POST /v1/group
{ "distinctId": "user_1024", "groupKey": "shop", "groupId": "acme.myshopify.com", "traits": { "plan": "plus" } }
{ "accepted": 1, "events": ["$group"] }
Shared rules
- Ids are 1 to 64 characters after trimming. A missing or over-long id is
400with the field named:{"error":"invalid_request","field":"userId","message":"userId is required (1-64 chars)"}. traitsare scalars only, at most 40 of them.tsortimemay be supplied; otherwise now is used.429propagates from the shared guards with the usualrate_limitedorquota_exceededbody.
The same operations can ride a normal batch instead, as $identify, $alias, $group and $set events. That is what the Mixpanel shim and the importers do, and it is the better choice when you are already sending a batch. See Reserved events.
GET /v1/live
A Server-Sent Events stream of every event accepted for the Project, pushed as it is accepted. Needs a read credential: a Server key or a read token. A Project token gets 401.
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-…","ts":"2026-09-28T09:15:00.000Z","event":"Order Paid","did":"user_1024","uid":"user_1024","aid":"anon_9f2c41","path":"/checkout/thanks","url":"https://shop.example.com/checkout/thanks","source":"web","props":{"revenue":42.5,"currency":"GBP","items":3}}
- One
readyframe, then ananalyticsframe per accepted event. : keep-alivecomment lines every 25 seconds so a proxy does not close an idle stream.- At most 50 concurrent subscribers per Project. Over that,
503 {"error":"live_subscribers_exhausted","limit":50}. - The stream is fed at acceptance, before the event is committed, so a frame can arrive a moment before the event is queryable. Nothing is buffered: a subscriber sees what arrives after it connects, never history.
This is the verification tool. An event on the stream proves the credential, the Project and the event shape; an event missing from a report after that is a reporting question.
Reading data
Reports, the event catalog, people, sessions and everything else under /v1/* need a read credential. A Server key reads only its own Project; a read token carries the Project it was minted for, and a x-analytics-project header that disagrees with it is 403.
curl -s https://t.intelligent.page/v1/catalog \ -H 'Authorization: Bearer ipa_sec_REPLACE_ME'
Every route, request body and response schema is in the API reference, generated from the service's own OpenAPI description.
Client-side notes
- Headers or body.
navigator.sendBeaconcannot set headers, so the token may travel astokenin the body or?token=in the query string.text/plainbodies are parsed as JSON for the same reason. - Origin pinning. A Project can list allowed origins in its settings. Once the list is non-empty, a browser request from another Origin is refused. Leave it empty and the token is the only credential, which is the usual choice for a public site.
- CORS.
/v1/ingest,/v1/import,/v1/flags/evaluateand the Mixpanel routes reflect any Origin. The headers you may send arecontent-type,authorization,x-analytics-env,x-analytics-project,x-analytics-keyandx-analytics-token. - Chunking. Keep batches at 50 events. Beyond that the extra events are counted as dropped rather than queued.