Palbase Campaigns API · API
POST
/campaigns/onsite/impressions/{id}/eventsRecord on-site interaction
Records clicked, dismissed, or converted for an impression.
Called by your app, with the publishable key; or a signed-in user of your app, with their token and the publishable key; or your server, with the project's secret key.
Path
idstring (uuid) · requiredResource UUIDRequest body
actionstring · optionaltype"clicked" | "dismissed" | "converted" · requiredcurl
curl -X POST "https://<your-ref>.palbase.studio/campaigns/onsite/impressions/<id>/events" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"type":"clicked"}'Responses
204Recorded
400Invalid request payload or parameter
401Missing or invalid credentials
403Caller lacks permission for this operation
404Resource not found
429Rate limit exceeded
503Service temporarily unavailable
defaultUnexpected error
Operation RecordOnSiteEvent of campaigns's contract.