cURL
curl --request POST \ --url https://api.thehaystack.ai/v2/haystack/logging/page-views \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "origin": "<string>", "path": "<string>", "surface": "embed", "search": "<string>", "embedToken": "<string>", "referrerUrl": "<string>" } '
{ "pageViewId": "<string>" }
Record a frontend page view. Used by the embed/Connect frontend — most API consumers do not need to call this.
Enter your API token from the Haystack dashboard
The page origin (e.g. https://pinelake.org)
embed
connect
console
Query string portion of the URL
Event logged