Create Client Event

POST {{baseUrl}}/client/events/?company_id={{companyId}}

Create a new event to track a profile's activity. This endpoint is specifically designed to be called from publicly-browseable, client-side environments only. To create events from server-based applications, please use POST /api/events

Rate limits:
Burst: 350/s
Steady: 3500/m

Scopes: events:write

Request Params

KeyDatatypeRequiredDescription
company_idstring(Required) Your Public API Key / Site ID. See this article for more details.

Request Body

{"data"=>{"type"=>"event", "attributes"=>{"metric"=>{"name"=>"<string>", "service"=>"<string>"}, "time"=>"<dateTime>", "value"=>"<number>", "unique_id"=>"<string>"}}}

HEADERS

KeyDatatypeRequiredDescription
revisionstring(Required) API endpoint revision (format: YYYY-MM-DD[.suffix])
Content-Typestring
Acceptstring