Webhook Conversion Delivery
Use Webhook Conversion Delivery when a custom system should receive selected Nitoriq conversion events through an HTTP request.
Webhook destinations are different from ad-platform Conversion API destinations. There is no provider pixel, ad account, or OAuth connection to select. Instead, you tell Nitoriq which endpoint to call, which HTTP method to use, which headers to send, and what the request body should look like.
A webhook can return a successful HTTP response and still be useless if the receiving system expected a different URL, method, header, or payload shape. For the first setup, keep the receiving system’s request logs open so you can confirm the request was both accepted and understood.
Before you start
- Validate the click and conversion in Nitoriq first.
- Prepare a safe destination URL, preferably a test endpoint or test mode in the receiving system.
- Confirm the HTTP method the receiver expects, usually
POST. - Confirm required headers, such as
Content-Type, API key, bearer token, or signature headers. - Prepare the JSON body shape the receiver expects.
- Decide which Nitoriq conversion events should be sent.
- Decide which traffic sources or campaigns should be allowed to trigger the webhook.
Create a webhook conversion destination
Open Conversion API
Go to Integrations, then select the Conversion API tab.
If you already have Conversion API destinations, use this table to confirm status, edit the saved destination, or send a test event.
Choose Webhook
Click Add integration, then choose Webhook.
Name the destination
Use a name that identifies the receiving system and event purpose, such as
Webhook - CRM Conversions, Webhook - Data Warehouse Leads, or
Webhook - Internal Purchase Events.
Confirm the Workspace field before continuing.
Select event types
In Event Types, choose which Nitoriq conversions the webhook should receive.
Default Conversion is the base conversion event. Custom conversions are
specific outcomes you created in Nitoriq, usually from the ct value on the
conversion. Select only the outcomes the receiving system should process.
Enter the endpoint
On the Delivery step, enter the URL.
The URL should be the exact endpoint the receiver expects. Nitoriq treats this as the destination address; put dynamic conversion data in the body or headers, not in the base URL.
Choose the Method expected by the receiving system. Most webhook receivers
use POST. Use GET only when the receiver is explicitly designed for a
query-string style request, because Nitoriq does not send a request body with
GET.
Set Timeout (ms) high enough for the receiver to respond normally, but not so
high that delivery waits too long when the endpoint is unavailable. The default
is 10000 milliseconds.
Configure Headers (JSON)
Use Headers (JSON) for the headers the receiving system expects.
For a JSON webhook, keep the default Content-Type: application/json. If the
receiver requires authentication, add the authorization header exactly as the
receiver documents it. For example, a receiver may expect an Authorization
header, an API-key header, or a custom shared-secret header.
Headers must be a JSON object with string values. Tokens can be used inside header values when the receiver needs conversion-specific values.
Configure Body (JSON)
Use Body (JSON) to define the payload the receiving system should receive.
The default body includes the most common conversion fields: event type, Nitoriq click ID, transaction ID, conversion time, payout, payout currency, conversion type, custom event, external ID, and visitor ID.
Edit the keys to match the receiver’s expected field names. Keep the values as
Nitoriq tokens when the value should come from the conversion. For example, if
the receiver expects order_id, you can set it to {{txid}}. If the receiver
expects revenue, you can set it to {{payout}}.
Insert tokens from the picker
Use Add Token in either Headers (JSON) or Body (JSON) to insert a Nitoriq
token into the editor.
This is safer than typing placeholders manually because it keeps token names consistent with the values Nitoriq can render at delivery time.
Save and attach traffic sources
Save the destination, then select the Traffic Sources or Campaigns that are
allowed to send webhook events.
Start with one controlled test scope. Expand the scope only after the receiving system confirms the payload is usable.
Send a test webhook
Use the row action to send a test webhook, or trigger a known click and conversion in Nitoriq.
Compare Nitoriq delivery status with the receiving system’s logs. Confirm the request was received, the headers are correct, the payload fields are named correctly, and the payload values match the original Nitoriq conversion.
What Nitoriq Sends
When the destination runs, Nitoriq builds an HTTP request from the saved webhook configuration.
URL: the endpoint entered in the webhook formMethod:POST,GET,PUT, orPATCHTimeout (ms): how long Nitoriq waits for the receiver to respondHeaders (JSON): rendered with Nitoriq tokens before sendingBody (JSON): rendered with Nitoriq tokens before sending
For POST, PUT, and PATCH, Nitoriq sends the rendered body. For GET,
Nitoriq does not send a request body.
If the endpoint returns a 2xx response, Nitoriq records the webhook delivery as successful. If the endpoint returns a non-2xx response, Nitoriq records it as failed with the HTTP status. If the endpoint times out, Nitoriq records a timeout failure. For a transient network failure, Nitoriq retries once before recording the final result.
Nitoriq stores the rendered request and parsed response in delivery status, so you can compare what Nitoriq sent with what the receiver logged.
Body And Header Tokens
Tokens are placeholders that Nitoriq replaces with values from the conversion.
Use tokens in Body (JSON) and header values when the receiver needs dynamic
data.
The default webhook body uses these rows:
| Payload key | Default token | Meaning |
|---|---|---|
event_type | {{event_type}} | The Nitoriq event type, normally conversion. |
click_id | {{niq_click_id}} | The Nitoriq click ID tied to the conversion. |
txid | {{txid}} | The transaction or conversion ID captured by Nitoriq. |
conversion_time | {{conversion_time}} | The conversion timestamp in ISO format. |
payout | {{payout}} | The conversion payout or revenue value. |
payout_currency | {{payout_currency}} | The currency code for the payout value. |
conversion_type | {{ct}} | The conversion type value captured by Nitoriq. |
custom_event | {{custom_event}} | The custom conversion name or event label when available. |
external_id | {{external_id}} | The external click ID or provider click ID, when captured. |
visitor_id | {{visitor_id}} | The Nitoriq visitor ID tied to the click or conversion. |
Common additional tokens include:
| Token | Use it when |
|---|---|
{{traffic_source_id}} | The receiver needs the Nitoriq traffic source ID. |
{{campaign_id}} | The receiver needs the Nitoriq campaign ID. |
{{offer_id}} | The receiver needs the offer or product identifier. |
{{landing_id}} | The receiver needs the lander identifier. |
{{page_url}} | The receiver needs the page URL associated with the conversion. |
{{referrer}} | The receiver needs the referring page URL. |
{{ip}} | The receiver needs visitor IP address. |
{{user_agent}} | The receiver needs browser or device user-agent. |
{{country_code}} | The receiver needs country-level context. |
{{region}} | The receiver needs region or state context. |
{{city}} | The receiver needs city context. |
{{trackingField1}} | The receiver needs a custom tracking field captured by the traffic source. |
Only use tokens that Nitoriq actually captures for the event. If a token is not available, the receiving system may get an empty or unresolved value.
JSON Shape
Headers (JSON) must be a JSON object with string values.
{
"Content-Type": "application/json",
"Authorization": "Bearer your-token"
}Body (JSON) should usually be a JSON object. Nitoriq renders each token before
sending the webhook.
{
"event": "{{event_type}}",
"click_id": "{{niq_click_id}}",
"order_id": "{{txid}}",
"value": "{{payout}}",
"currency": "{{payout_currency}}"
}If the receiver expects a raw body instead of JSON, the body editor can store a raw template string. Most webhook receivers should use JSON because it is easier to validate and inspect.
Testing Webhooks
A webhook test is successful only when both sides agree:
- Nitoriq shows a successful delivery result.
- The receiving system logs the request.
- The receiver can parse the headers and body.
- The field names match what the receiver expects.
- The dynamic values are populated correctly.
- The original conversion still appears in Nitoriq reports.
If Nitoriq shows success but the receiver does not process the event, compare the rendered request in Nitoriq with the receiver’s expected payload shape. The most common issues are wrong field names, missing authorization headers, a wrong content type, or using a token that was not captured for that conversion.
Webhook fields in Nitoriq
URL
The HTTP endpoint that receives conversion requests.
A wrong URL can still accept traffic while sending data to the wrong system.Method
The HTTP method used for delivery: POST, GET, PUT, or PATCH.
Receivers often reject or ignore requests sent with the wrong method.Timeout (ms)
How long Nitoriq waits for the receiver to respond.
A short timeout can fail slow receivers, while a long timeout delays error feedback.Headers (JSON)
Headers sent with the request after token rendering.
Content type and authorization headers usually decide whether the receiver accepts the request.Body (JSON)
The request payload sent to the receiver after token rendering.
The receiver can only use fields that are included with the expected names and formats.Event Types
The Nitoriq conversion events allowed to trigger the webhook.
This prevents the custom system from receiving unrelated events.Delivery Scope
The traffic sources or campaigns allowed to trigger this webhook.
Scope keeps the webhook from firing for traffic that the receiving system should not process.Webhook delivery is working when
- the URL, method, timeout, headers, and body are saved
- the receiving endpoint accepts the test request
- the receiver’s logs show the webhook arrived
- the payload contains the expected field names and values
- event type selection is intentional
- the traffic source or campaign scope is attached
- the original conversion remains visible in Nitoriq reports
Was this page helpful?