API ReferenceAnalytics

Count events

POST
/projects/{project_id}/analytics/count-events

Authorization

AuthorizationBearer <token>

Organization API Token (prefixed sk_) sent as Authorization: Bearer sk_.... Create one in Settings and grant it scopes. Server-side only.

In: header

Path Parameters

project_id*string

The project this request addresses. It must belong to the token's organization, or be the project of a project-scoped credential.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/projects/string/analytics/count-events" \  -H "Content-Type: application/json" \  -d '{}'
Empty