palbaseDocs

Palbase Campaigns API · API

POST/campaigns/onsite/impressions/{id}/events

Record 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 UUID

Request body

actionstring · optional
type"clicked" | "dismissed" | "converted" · required
curl
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.