Skip to main content
October 22, 2026
In this article, we will cover:
  1. Why webhooks are powerful for Tapfiliate automations
  2. What you need before setting up event-driven workflows
  3. Step-by-step webhook trigger setup
  4. What your endpoint receives
  5. Two detailed real-world example workflows
  6. How to test and verify your setup

Webhooks & Event-Driven Workflows Overview

Tapfiliate’s Triggers & Webhooks feature allows you to automatically react when something happens in your affiliate program, such as a conversion being created or an affiliate signing up.
Instead of manually exporting data or polling the API, Tapfiliate can push event data instantly to:
  • External systems (CRMs, Slack, analytics tools, etc.)
  • Internal workflows using Tapfiliate’s own REST API
This enables fully automated, event-driven affiliate operations.

Why Use Webhooks and Event-Driven Workflows

Pros
  • Real-time automation: Events like conversions or affiliate sign-ups propagate immediately to other systems or workflows.
  • Internal event chaining: One event can natively initiate another (e.g., create a commission after an affiliate is added)
  • External integrations: Sync Tapfiliate events with CRMs, support tools, internal dashboards, and more
Use Cases
  • Automatically add new affiliates to an external CRM
  • Create affiliate prospects when a customer is created.
  • Trigger Slack or email alerts for large conversions
  • Sync commission updates to accounting tools.

Prerequisites for Using Webhooks

Before setting up webhooks, make sure you have:
  • A Tapfiliate account with access to Triggers
  • Your Tapfiliate API key (Profile → API key)
  • An endpoint URL that can receive HTTP requests
  • (Optional) A tool like Zapier, Make, or a custom backend

Step-by-Step: Creating a Webhook Trigger

Step 1: Create a New Trigger

  1. Go to Tapfiliate Dashboard → Triggers
  2. Click New Trigger
  3. Enter a title and description for your workflow

Step 2: Choose the Trigger Event

Select when the trigger should fire, for example:
  • Conversion created
  • Affiliate created
  • Commission updated
This determines what event starts your workflow.

Step 3: Apply Filters (Optional)

You can limit when the trigger fires, such as:
  • Only for a specific program
  • Only if commission value is above a certain amount
New Filters Webhooks Filters help avoid unnecessary webhook calls.

Step 4: Choose the Webhook Action

Under Do the following…, choose one of the following:
  • Webhook - sends a predefined payload
  • Webhook (custom) - lets you define headers and payload structure
Use Webhook (custom) when you need authentication headers or a specific JSON format.

Step 5: Configure the Webhook

  • Enter the destination URL (a public http:// or https:// address; requests to private or internal network addresses are blocked)
  • (Optional) Add headers like Authorization or Content-Type. If the receiving system expects JSON, add Content-Type with the value application/json: Webhook (custom) does not send it on its own.
  • Use merge tags to include dynamic Tapfiliate data in the payload

Step 6: Save and Test

Note: the current test limit is set to 20 test requests per 5 minutes.

What Your Endpoint Receives

Webhook sends a POST request with a JSON body: the object of the event in the same format as the API reference (API version 1.6). For example, Conversion created sends the conversion. Affiliate events such as Affiliate created send the affiliate, including their address with the country as a separate field. On conversion, commission and customer events the affiliate comes with their ID and name only, without an address. Webhook (custom) sends only what you put in the URL, headers and body, using the merge tags from the {…} menu. The tags depend on the event. There is no separate tag for the affiliate’s country: the affiliate’s address comes as one tag, company_address, with the country on its last line if the affiliate has filled it in. The tag can be empty even if the affiliate has entered an address, for example for an affiliate added through the API without company details. On affiliate events, Webhook gives the country as its own field. Both actions add two headers to every request: Tap-Trigger-Event (the event, for example conversion-created) and Tap-Trigger-Action-Id (the ID of this delivery, the same on every attempt). A test request sent with Test action has no delivery ID: its Tap-Trigger-Action-Id is empty.

Security

Tapfiliate webhooks are not signed. To check that a request really comes from Tapfiliate, use Webhook (custom), add your own secret header such as Authorization, and make your endpoint reject requests without it. Use an https:// URL.

Delivery and Retries

A delivery succeeds when your endpoint answers with a 2xx status. Tapfiliate waits up to 20 seconds for the answer, or 10 seconds for Webhook (custom). Any other status, or no answer in time, is a failure. After a failure, Tapfiliate tries again about 5 minutes, 1 hour, 12 hours and 24 hours after the first attempt. If the last attempt fails too, the delivery is dropped. A test request sent with Test action is not retried. The same request can reach your endpoint more than once, so make your endpoint skip requests whose Tap-Trigger-Action-Id is not empty and has already been processed. More details are in the webhooks documentation.

Two detailed real-world example workflows

Using triggers to sync registered affiliates to external CRM platform (Hubspot):

Use case: Immediately add every newly created affiliate as a contact in HubSpot CRM. This is used to directly sync anyone signing up to your affiliate program directly to your CRM without any manual intervention.
Setup:
  1. Trigger Event: Affiliate created - this fires whenever an affiliate is created in the system.
  2. Use the Hubspot’s “create a contact” API endpoint as the url of the webhook, and add the headers and Body of the API.
  3. You can dynamically send data in your webhook by using the “tags” available in the webhooks URL and Body.
  4. Complete the setup and hit “test action” to test your webhook. The test sends a real request: read How to Test and Verify Your Webhooks first.
The action in this example is set up like this:
  • Action: Webhook (custom)
  • Url: https://api.hubapi.com/crm/v3/objects/contacts
  • Method: POST
  • Headers: Authorization with the value Bearer YOUR_PRIVATE_APP_TOKEN, and Content-Type with the value application/json
  • Body:
The values in this body are fixed examples; step 3 is how to send each affiliate’s own details instead.

Using triggers to automate affiliate prospect creation when a customer is created (Internal API):

Use case: Immediately add or update every newly created customer as an affiliate prospect in Tapfiliate account. This adds each customer as an affiliate prospect and triggers a mail to refer their peers to become affiliates in Tapfiliate. This feature can help automate your referral process which can be used to promote your program via your customers.
Setup:
  1. Trigger Event: Customer created — this fires whenever a customer is created in the system.
  2. Use Tapfiliate’s “create an affiliate prospect” API endpoint as the url of the webhook, and add the headers and Body of the API.
  3. You can dynamically send data in your webhook by using the “tags” available in the webhooks URL and Body.
  4. Complete the setup and hit “test action” to test your webhook. The test sends a real request: read How to Test and Verify Your Webhooks first.

How to Test and Verify Your Webhooks

  1. Use the Test action button in Triggers. The test builds the request from the most recent item of the kind the event is about that already exists in your account — an affiliate or prospect, an affiliate in a program, a conversion, a commission, a payment or a customer — whatever filters the trigger has. If you have no such item yet, the test fails; test again once you have one. The request is real: it goes to your URL in the same form as a live delivery, only with an empty Tap-Trigger-Action-Id, and Tapfiliate sends it again every time you click Test action, up to 20 test requests per 5 minutes. Before you click, check what your endpoint does with such a request.
  2. Confirm the receiving system gets the payload
  3. Check logs or responses for errors
  4. Verify the expected action occurred (CRM entry created, prospect added, message sent, etc.)

Need More Help?
If you have questions about building advanced event-driven workflows, chaining internal triggers, or connecting Tapfiliate to third-party tools, contact us at support@tapfiliate.com, we’re happy to help.