ai-referrals

Register AI Referrals Connection

Changed on

Register one of the brand's websites to send AI referral rows for. Rows can only be sent once a connection exists.

A website reads from one source at a time: one with Google Analytics connected, or an active connection already, returns 409.

Use provider custom for any analytics tool; adobe_analytics is also accepted.

post/{brand_id}/ai-referrals/connections

Request

Path parameters

brand_idinteger required

The unique identifier for the brand.

Request body

websitestring required

Hostname or URL of the website whose referrals will be pushed.

provider'custom' | 'adobe_analytics' required

Where the data comes from: "custom" for any analytics tool, or "adobe_analytics". Both are read the same way.

Example request

{
  "website": "example.com",
  "provider": "custom"
}

Response

Connection registered.

idstring required

ULID identifier for the connection.

brand_idinteger required
websitestring required

Hostname or URL of the website whose referrals are pushed against this connection.

provider'custom' | 'adobe_analytics' required

Where the data comes from: "custom" for any analytics tool, or "adobe_analytics". Both are read the same way.

status'active' | 'disabled' required
created_atstring date-time required
last_pushed_atstring date-time nullable
last_push_errorstring nullable
sends_engagementboolean

Whether the connection's rows carry users, engagement and key events. Set by its first push.

Example response

{
  "provider": "custom"
}

Changes

    • breaking

      request property was restricted to a list of enum values

    • warning

      added the new adobe_analytics enum value to the response property for the response status

    • warning

      added the new custom enum value to the response property for the response status

    • info

      added the new adobe_analytics enum value to the request property

    • info

      added the new custom enum value to the request property

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status