Send product events from your server
post/analytics/events
Send product events from your server: a name, a few properties, your own id for the person (only a one-way digest of it is kept, tied to the day unless the person agreed) and whether they agreed. Values that look like an email address or a phone number are dropped.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
analytics:write- Mcp
rivier_analytics_events_send- Graphql
Mutation.analyticsEventSend- Sdk
analytics.event.send- Cli
analytics event send
Request bodyapplication/json, required
- eventslist of objectrequired
- namestringrequiredPattern: ^[A-Za-z][A-Za-z0-9_.:-]{0,59}$.
- anonymousIdstringrequiredYour own id for the person; it is never stored, only a one-way digest of it At most 120 characters.
- propertiesobject
- consentbooleanThe person agreed to be recognised from one day to the next
- atstring (date-time)When it happened; up to seven days back
- namestringrequired
Responses
- 202application/jsonSuccess
- acceptednumberrequired
- droppedlist of objectrequired
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring