palbaseDocs

Palbase Campaigns API · API

POST/campaigns/onsite/impressions

Record on-site impression

Records a campaign showing while enforcing frequency caps.

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.

Request body

campaign_idstring (uuid) · required
installation_idstring · optional
session_idstring · required
curl
curl -X POST "https://<your-ref>.palbase.studio/campaigns/onsite/impressions" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"campaign_id":"00000000-0000-0000-0000-000000000000","session_id":"string"}'

Responses

201Impression

400Invalid request payload or parameter

401Missing or invalid credentials

403Caller lacks permission for this operation

404Resource not found

409Resource state conflict or frequency cap

429Rate limit exceeded

503Service temporarily unavailable

defaultUnexpected error

Operation CreateOnSiteImpression of campaigns's contract.