---
title: "Connectors: integrations and webhooks"
description: "Connect 2way to your CRM or chat. Select events and contact fields, test your webhook and review deliveries."
url: https://help.2way.app/en/articles/11-connectors-integrations-and-webhooks
collection: "Settings and integrations"
updated: 2026-11-26
language: en
alternates: [pl, es]
---

# Connectors: integrations and webhooks

Connect 2way to your CRM or chat. Select events and contact fields, test your webhook and review deliveries.

## Integrations

![Connectors › Integrations: information 2way requests from your other systems when someone signs up.](https://staticfiles.gleap.io/p6aeaff9cfdf256b4eeb25124/iFY5u2Eev6GhyIDGcsQOuaoif0yvtUI3Hyfqnp38WjemZKAPJ1S8CQWQwBV6AgblJh2PXn3XKeb.jpg)

_Connectors › Integrations: information 2way requests from your other systems when someone signs up._

Integrations let 2way get information from your shop or customer database when someone signs up:

-   **Retrieve a Coupon**
    
    Get a fresh discount code from your shop instead of a pre-loaded pool.
    
-   **Check Contact Existence**
    
    Ask your CRM whether the person is already a customer, and optionally whether they already have the benefit (for example a loyalty level).
    

Ask your IT team or the person who manages your online shop to set up the connection. They can use **Request preview** to check the information 2way will send.

## Webhooks

![Connectors › Webhooks: events 2way sends to your systems.](https://staticfiles.gleap.io/p6aeaff9cfdf256b4eeb25124/PrOOJ3gAeaTBHkOaYXsfLoVZHDqCRFwvG2xkSWeBnIWN8rXR5dE3VNAKpuL01gWy384Pfho6eWC.jpg)

_Connectors › Webhooks: events 2way sends to your systems._

Webhooks automatically notify your other systems when something happens in 2way. For example, they can add a new subscriber to your customer database, record an unsubscribe request or update a message’s delivery status.

In Connectors → Webhooks, select Add endpoint, enter a public HTTPS URL, choose an event and save. Send a test event and check the server response. Each endpoint handles one event type. Additional endpoints can share the same URL.

<table style="min-width: 50px;"><colgroup><col style="min-width: 25px;"><col style="min-width: 25px;"></colgroup><tbody><tr><th colspan="1" rowspan="1"><p>Event</p></th><th colspan="1" rowspan="1"><p>Sent when</p></th></tr><tr><td colspan="1" rowspan="1"><p>New newsletter lead</p></td><td colspan="1" rowspan="1"><p>A contact signs up via a form, QR code or keyword.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Keyword</p></td><td colspan="1" rowspan="1"><p>Someone signs up by texting a keyword.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Newsletter unsubscribe</p></td><td colspan="1" rowspan="1"><p>A contact opts out.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Incoming message / Outgoing message</p></td><td colspan="1" rowspan="1"><p>A message is received or sent.</p></td></tr><tr><td colspan="1" rowspan="1"><p>Message status</p></td><td colspan="1" rowspan="1"><p>A delivery status changes.</p></td></tr><tr><td colspan="1" rowspan="1"><p>CDR</p></td><td colspan="1" rowspan="1"><p>A billing record of a message is created.</p></td></tr></tbody></table>

### Send a new subscriber’s details to your CRM

Choose the new newsletter lead event. It fires on sign-up through a form, QR code or keyword. Open Field names, enable custom field names and open Contact data.

Select the fields you need, such as first name, last name, email or an imported loyalty tier. Enter the key your CRM expects for each field, such as loyalty\_tier. In the JSON preview, contact fields appear at the same level as the phone number and campaign.

Select up to 50 contact fields per endpoint. These fields are sent only in JSON with custom field names enabled. Missing contact values are omitted. A test event puts the value “test” in each selected contact field.

### Map fields and authenticate requests

Include at least one event field. Give each key a unique name of up to 64 characters, starting with a letter or underscore. Letters, digits, underscores and hyphens are allowed. Turning off custom field names restores the default keys and keeps your mapping for later.

Every HTTPS POST includes X-Signature. To verify it, compute HMAC-SHA256 over the raw request body before parsing JSON, using your account API key as the secret. The header contains sha256= followed by the hexadecimal digest. X-2way-Event identifies the event type.

If your server requires a token, select Bearer token or a custom header such as X-Api-Key. Tokens accept up to 2,048 characters without line breaks. Choose a header name outside those reserved by 2way. The full saved token is hidden. Selecting None and saving removes it.

### Send notifications to a chat

Enter an incoming webhook URL for Slack, Microsoft Teams (Workflows), Discord, Google Chat, Lark, Pumble or Webex. Keep formatting enabled for readable messages or Teams cards. Turn it off when your own workflow expects raw JSON. Chat messages use the default 2way labels and omit additional contact fields.

### Investigate a failed delivery

Your server must return a 2xx status within 10 seconds. On failure or timeout, 2way automatically retries. Open the endpoint, filter for failed deliveries and expand a row to inspect the request, response code and error.

After fixing the cause, resend one event or retry up to 100 failed events from the last seven days at once. X-2way-Transaction-Id stays the same across retries and manual resends. Use it to avoid processing an event twice.
