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
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://example.com/track" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'Empty