Public WebsiteRecord Reader Events

Record Reader Events

First-party audience events from the public site, batched up to 20 per request. Only send these for readers who consented to tracking, and only when the workspace's audience_tracking_enabled is true — events are dropped otherwise. Always returns 204. Rate limited to 60 requests per minute per IP.

curl -X POST "https://app.nashra.ai/api/v1/tenants/example_string/events" \
  -H "Content-Type: application/json" \
  -d '{
  "visitor_id": "123e4567-e89b-12d3-a456-426614174000",
  "events": [
    {
      "name": "page_view",
      "properties": {}
    }
  ]
}'
{}
POST
/tenants/{slug}/events
POST
Base URLstring

Target server for requests. Edit to use your own host.

path
slugstring
Required

Tenant's subdomain slug, or its verified custom domain

Content-Typestring
Required

The media type of the request body

Options: application/json
visitor_idstring
Required

The visitor ID set after the reader consents to tracking

Format: uuid
Request Preview
Response

Response will appear here after sending the request

Path Parameters

slugstring
Required

Tenant's subdomain slug, or its verified custom domain

Body

application/json
visitor_idstring
Required

The visitor ID set after the reader consents to tracking

Responses