Event - Outgoing Webhook

Last Updated: 3/12/2026     Tags: webhook, Integrations, Endpoint, https, event
  • Switch Version
  • V5
  • V4

Taguchi provides an event-based webhook integration that supports sending of data to external endpoints and providers once triggered by an event. This allows for actions to be taken after an event has been triggered.

Use-cases include sending the outcome of a form submission to your own API service for marketing purposes.

Credentials

Credentials are not mandatory; please check with the API provider you are using if authentication is required.

Create Your Event: Outgoing Webhook Integration

New Integration

To create a new integration, ensure that you have the required User Type integration role privileges assigned to you.

  1. Navigate to Settings > Integrations.

integrations

  1. Select ‘New Integration’ and a new screen will popup.

new integration

Details

  1. Set the name of the integration.

  2. Under 'Type', select 'Event: Outgoing Webhook'.

outgoing webhook details

Configuration

outgoing webhook configuration

  1. Credential to use: This is set under Credentials on the settings page. You can leave this empty if no authentication is required. Otherwise please select a valid credential.
  2. Endpoint URL: The endpoint URL is the endpoint where the webhook sends HTTP requests to when a specified event occurs. You can input your endpoint URL here.
  3. HTTP method: The HTTP method that will be used when sending to the endpoint provided.
  4. URL parameters: This is used to provide any parameters to the endpoint URL as needed. Values are '&' separated. E.g. pageNo=1&email=john@test.com
  5. Event type: Select one event type to listen for. Create a separate integration for each event type you need to send to your endpoint.
  6. Only push events for subscribers matching: This field is optional. You can use this to only trigger API calls for subscribers that match certain conditions on top of the event type that is matched.

Event Types

The following event types can be used in the webhook integration:

Note: Sent (s) and Viewed (v) events are not supported in the Event: Outgoing Webhook integration.

Event Event Name Description
b Bounced A message delivery attempt failed due to the address being invalid.
c Clicked A subscriber visited a URL contained within an email, SMS or web page.
o Opened A subscriber loaded images within an email.
u Unsubscribed A subscriber opted out of further communications from a particular list.
x Blocked A subscriber opted out of all further communications.
sb Subscribed A subscriber submitted contact details or other information.
a Annotated Additional data was saved for an event.
up Updated A subscriber submitted contact details or other information.
r Replied A subscriber replied to a message.
t Throttled A message delivery attempt failed due to network congestion.
p Converted A conversion was received.
e Entered A subscriber entered a competition or other promotion.
wa Analytics A web analytics request was received.
ab Abandoned A purchase was abandoned.
of Offer A subscriber was issued an offer or redeemed one, in the form of a coupon or voucher.
asc Created Subscriber A subscriber profile was created.
asu Updated Subscriber A profile update was submitted; the submitted values may be unchanged.
asa Anonymized Subscriber A subscriber profile was anonymised.

API profile events

For V5 API profile actions, use the following event types:

Profile action Event
Create a subscriber profile asc — Created Subscriber
Submit an update to an existing profile asu — Updated Subscriber, when profile update logging is enabled
Anonymise a subscriber profile asa — Anonymized Subscriber

Profile update logging is enabled by default. An existing-profile submission can generate asu even when no values change.

List-subscription and global-unsubscribe changes included in a profile POST generate the same profile event. They do not automatically generate separate sb, up, u or x events. Test profile actions do not generate these profile events.

See the V5 API Subscriber POST requests for request and response examples.

Map Data

Choose how Taguchi should map the subscriber and event data before sending it to your endpoint. Use Data mapping type to select one of two methods:

  • JSON mapping
  • JavaScript mapping

JSON mapping

Use JSON mapping to build the outgoing payload using values from the subscriber and the event that triggered the webhook.

Subscriber data can be referenced using $.subscriber.[field]. For example, use $.subscriber.phone to include the subscriber’s phone number.

Event data can be referenced using $.event.[field]. For example, use $.event.campaignId to include the ID of the campaign associated with the event.

Sample mapping

{
    "id": "$.subscriber.id",
    "ref": "$.subscriber.ref",
    "email": "$.subscriber.email",
    "phone": "$.subscriber.phone",
    "firstname": "$.subscriber.firstname",
    "lastname": "$.subscriber.lastname",
    "unsubscribedAt": "$.event.loggedTimestamp",
    "invalidAt": null,
    "organizationId": "$.subscriber.organizationId",
    "campaignId": "$.event.campaignId",
    "listId": "61330"
}

The listId value 61330 in this example is a fixed value. It is not read from the event. There is no $.event.listId field. Only use a fixed list ID when the integration is reliably restricted to events for that list; subscriber membership alone does not establish which list an unsubscribe event concerns.

JavaScript mapping

Use JavaScript mapping when the outgoing payload requires transformations or conditional logic that cannot be achieved with the standard JSON mapping.

A developer or someone familiar with JavaScript should create the mapping. Define a synchronous function with the following signature:

function main(subscriber, event) {
    if (!subscriber.email) {
        return null; // skip this event
    }
    return {
        email: subscriber.email,
        campaignId: event.campaignId
    };
}

The function receives:

  • subscriber: the subscriber associated with the event.
  • event: the event that triggered the webhook.

The function must return:

  • A JSON object containing the data to send to the receiving endpoint; or
  • null when the webhook should be skipped for that event.

JavaScript mapping prepares the payload for the receiving system. It does not provide the profile-update or activity-send commands available in an Event: Trigger (JavaScript) integration.

Before saving, check the Webhook payload preview, which runs your script against the test profile and a sample event. If no test profile is configured, the script is validated with an empty subscriber record.

Mapping data

Usage

Data can be retrieved from the event that this API call was triggered from as well as the subscriber linked to that event.

To get data related to the subscriber profile, use “$.subscriber.[field]”. This would translate to “$.subscriber.phone” for their phone number.

Event data and fields can be retrieved via “$.event.[field]”. “$.event.campaignId” would translate to the ID of the campaign the event’s activity originated from.

Event fields

The event context provides these fields for mapping:

Field Value
$.event.id Event ID
$.event.eventRef Event type code, such as u or asu
$.event.loggedTimestamp Recorded event timestamp
$.event.data Event data; its structure depends on how the event was generated
$.event.parentId Parent event ID, if present
$.event.activityRevisionConfigurationId Related activity revision configuration ID, if present
$.event.trackurlId Related tracked URL ID, if present
$.event.campaignId Related campaign ID, if present
$.event.isTest Whether the event is a test event

An unsubscribe event's data may contain list information, but there is no single list-ID format shared by every source. Check the actual event data before using it in a mapping.

Viewing Integration Schedules and Next Run Details

The Integration UI provides visibility into integration schedules by displaying the scheduled frequency and the time of the next run when hovering over the status icon. Adding to that, the integration UI supports list view with sortable columns so you can see the next run timestamp and frequency there too.. This helps users quickly check when integrations are scheduled to execute and manage them more efficiently.

Integration View Integration View

Save Changes and Activate

save changes

Once you have added your Details, Configuration and Target Expression, you will be able to save changes (1) and activate (2) the integration. You can only activate once you have saved changes.

Deactivate

decativate

To stop the integration, click on Deactivate. This will stop Taguchi from exporting data via the webhook.

Active Integration

Active integration

Once the integration has been saved and activated, the on/off icon of the integration card will change from yellow (Off) to green (On) which indicates that it is now activated.

Update Integration

Update Integration Update Integration Active

If you want to update your Integration, you will be able to make the changes while it is activated or deactivated. Once the changes have been made, you will be able to update the integration by clicking on 'Save changes'. The Integration will be updated immediately.

Viewing Logs in the UI

Users can now view detailed integration logs directly in the Taguchi UI to troubleshoot issues.

To access logs:

  1. Navigate to Settings > Integrations.
  2. Select the integration you want to review.
  3. Click on View Status in the top right hand corner to see recent activity, including timestamps, status updates, and error messages (if any).

Integration_Logs

If an integration fails, checking the logs can help identify issues such as incorrect credentials, invalid audience configurations, or query timeouts.

If you are having trouble with this integration, please contact Taguchi Support for assistance.