API ReferenceEvents
Track an event
Ingest a single analytics event. Authenticate with the project public key (x-logspot-pk, browser/SDK) or, server-to-server, a project-scoped API token (Authorization: Bearer sk_...; the legacy x-logspot-sk secret still works). The credential names the project, so no project id is passed.
x-logspot-pk<token>
Project public key (prefixed pk_). Safe to expose in client-side code.
In: header
namestring
Length
length <= 100notify?boolean|null
message?string|null
user_id?string|null
anonymous_id?string|null
referrer?string|null
screen?string|null
language?string|null
url?string|null
hostname?string|null
metadata?|null
channel?string|null
value?number|null
currency?string|null
external_id?string|null
group_id?string|null
group_type?string|null
privacy_categories?string|null
pc?string|null
privacy_signals?string|null
ps?string|null
consent_source?string|null
_acOverrides?|null
Response Body
curl -X POST "https://api.logspot.io/v1/track" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'Empty
Empty
Empty