Record an analytics event
A demand event a page observed, forwarded by the site's server. Uses the read rate limit, since events arrive in volume.
/api/sites/v1/eventsA demand event a page observed, forwarded by the site's server. Uses the read rate limit, since events arrive in volume.
Authorization
websiteToken A Sanctum token scoped to one website.
In: header
Header Parameters
Website id. Overrides Host resolution for builds running where Host is meaningless. The token must still be scoped to this website.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/sites/v1/events" \ -H "Content-Type: application/json" \ -d '{ "event_type": "string", "property": "string" }'{ "data": { "id": "string", "event_type": "string", "status": "recorded" }, "meta": {}}Reserve a tour POST
Books a tour with the provider and creates the lead. `fields` is validated against the connection's tour schema for the tour type, the same schema GET /integrations publishes. Call from the site's own server. Send an `Idempotency-Key`: a retry after a timeout then returns the original booking instead of booking the slot twice with the provider.
Record a source observation POST
What a site saw about where a visit came from. Resolved against the property's attribution rules, then stored with personal and credential-shaped values stripped. The result says which source matched.