Skip to main content
POST
Record an affiliate conversion

Authorizations

x-api-key
string
header
required

Introw API key shown once when the credential is created.

Body

application/json
clickId
string
required

Signed affiliate click token captured at click time. In the browser this is the value of the first-party _introw_aff cookie set by affiliate.js (read it with window.introw.affiliate.getClickId()). A missing, malformed, expired, or forged token causes the conversion to be safely ignored (HTTP 200) rather than rejected.

Required string length: 1 - 256
publishableKey
string

Campaign publishable key, used only on the browser (client-side) path. Safe to expose publicly. Prefer sending it via the x-introw-publishable-key header; this body field is an alternative. Ignored on the server-to-server path, which authenticates with the secret x-api-key header and the affiliate:write scope.

Required string length: 1 - 128
email

Email of the converting customer, when known. Used to enrich the resulting form submission and CRM record. Send an empty string or omit when unavailable.

Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
properties
object

Conversion metadata for the campaign's conversion form. Each key is a form field id (see the campaign's "View form fields" dialog); the value is written to that field on the headless submission. Keys that don't match a form field are ignored. A campaign may optionally define a field mapping to alias a payload key to a different field id.

Response

Conversion was a duplicate or had no valid/unexpired click token, so nothing new was recorded.

status
enum<string>
required

Outcome of the conversion. recorded (HTTP 201): a new conversion was attributed and a form submission was created. duplicate (HTTP 200): this click was already converted, so nothing new was recorded. ignored (HTTP 200): the click token was missing, invalid, or expired, so no attribution was made.

Available options:
recorded,
duplicate,
ignored
conversionId
string | null
required

Affiliate conversion id, when a new conversion was recorded; otherwise null.

formSubmissionId
string | null
required

Form submission id created from the conversion, when available; otherwise null.