Skip to main content
POST
Push AI Referrals Events

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

brand_id
integer
required

The unique identifier for the brand.

connection_id
string
required

The ULID of the AI Referrals connection.

Body

date
string<date>
required

UTC calendar day the metrics cover.

Example:

"2026-05-20"

raw_referrer_value
string
required

Raw referrer value as emitted by the source analytics tool (e.g. 'chatgpt.com'). Normalized server-side against the AI platform allow-list.

Required string length: 1 - 512
Example:

"chatgpt.com"

raw_page_value
string
required

The landing page, as a path (e.g. '/pricing') or a full URL. Stored as sent; read by its path, without the query.

Required string length: 1 - 2048
Example:

"/blog/launch-notes"

pageviews
integer | null
Required range: x >= 0
sessions
integer | null
Required range: x >= 0
transactions
integer | null
Required range: x >= 0
purchase_revenue
number | null
Required range: x >= 0
currency_code
string | null

ISO 4217 code of purchase_revenue (e.g. USD). Required when purchase_revenue isn't 0. A connection keeps one currency.

Pattern: ^[A-Z]{3}$
users
integer | null

Users who arrived from the AI platform that day. Send all six engagement fields or none.

Required range: x >= 0
new_users
integer | null

Of those, users new to the website.

Required range: x >= 0
engaged_sessions
integer | null

Sessions with engagement, by your tool's definition.

Required range: x >= 0
engagement_seconds
number | null

Total engagement time of the row's sessions, in seconds.

Required range: x >= 0
key_events
integer | null

Conversion events in the row's sessions.

Required range: x >= 0
converted_sessions
integer | null

Sessions with at least one conversion.

Required range: x >= 0
batch_id
string | null

Optional client-supplied batch identifier for traceability.

Maximum string length: 128

Response

Batch accepted.

Outcome of a push batch submission.

accepted
integer
required

Number of events accepted into the unified referrals store.

rejected
integer
required

Number of events dropped (e.g. referrer not on the AI platform allow-list).

errors
string[]

Per-row diagnostic messages, truncated.