Skip to content
Logo

HTTP API

Every SDK sends to one endpoint: POST https://api.flarepanel.dev/track.

curl -X POST https://api.flarepanel.dev/track \
  -H "Content-Type: application/json" \
  -H "openpanel-client-id: YOUR_CLIENT_ID" \
  -H "openpanel-client-secret: YOUR_CLIENT_SECRET" \
  -d '{"type":"track","payload":{"name":"invoice_paid","properties":{"amount":49}}}'

Authentication

HeaderWhen
openpanel-client-idAlways
openpanel-client-secretServer-side requests. Browser requests are allowed without it when the request's Origin matches one of the project's domains.

Request types

The body is { "type": ..., "payload": ... }:

typepayload
trackname, properties, optional profileId
identifyprofileId, firstName, lastName, email, avatar, properties
increment / decrementprofileId, property, optional value (default 1)

Successful requests answer 200 with the visitor's deviceId and sessionId. A request repeated within one second is dropped as a duplicate.

Limits

  • 600 tracking requests per minute per IP address; above that, 429.
  • Identical request bodies inside one second count once.