October 22, 2026
In this article, we will cover:
- Why webhooks are powerful for Tapfiliate automations
- What you need before setting up event-driven workflows
- Step-by-step webhook trigger setup
- What your endpoint receives
- Two detailed real-world example workflows
- How to test and verify your setup
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
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 1: Create a New Trigger
- Go to Tapfiliate Dashboard → Triggers
- Click New Trigger
- 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
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

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

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-Typewith the valueapplication/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
- Save the trigger
- Use Test action to verify the webhook fires correctly. The test sends a real request: read How to Test and Verify Your Webhooks before you use it.
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 asAuthorization, 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 whoseTap-Trigger-Action-Id is not empty and has already been processed. More details are in the webhooks documentation.
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:
- Trigger Event: Affiliate created - this fires whenever an affiliate is created in the system.
- Use the Hubspot’s “create a contact” API endpoint as the url of the webhook, and add the headers and Body of the API.
- You can dynamically send data in your webhook by using the “tags” available in the webhooks URL and Body.
- 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.
- Action: Webhook (custom)
- Url:
https://api.hubapi.com/crm/v3/objects/contacts - Method: POST
- Headers:
Authorizationwith the valueBearer YOUR_PRIVATE_APP_TOKEN, andContent-Typewith the valueapplication/json - Body:
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:
- Trigger Event: Customer created — this fires whenever a customer is created in the system.
- Use Tapfiliate’s “create an affiliate prospect” API endpoint as the url of the webhook, and add the headers and Body of the API.
- You can dynamically send data in your webhook by using the “tags” available in the webhooks URL and Body.
- 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.

- 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. - Confirm the receiving system gets the payload
- Check logs or responses for errors
- 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.