Push AI Referrals Events
Changed onPush a batch of pre-aggregated daily AI-referral events for a registered connection.
Accepts application/json (a JSON array of events) or application/x-ndjson (one event per line). The upsert key is (date, raw_referrer_value, raw_page_value) — re-sending the same tuple replaces the prior values, so backfills and corrections are safe to retry.
Limits:
- Maximum 10,000 events per batch.
- Maximum 5 MB request body.
Request
- Base URLhttps://api.scrunchai.com/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier for the brand.
The ULID of the AI Referrals connection.
Request body
Example request
[
{
"date": "2026-05-20",
"raw_referrer_value": "chatgpt.com",
"raw_page_value": "/blog/launch-notes"
}
]Response
Batch accepted.
Changes
- info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the new optional request property
/ - info
added the non-success response with the status
- info
added the non-success response with the status
- info