> For the complete documentation index, see [llms.txt](https://threadly.gitbook.io/threadly/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://threadly.gitbook.io/threadly/integrations/zapier.md). Agents can also search and read this documentation through its [MCP server](https://threadly.gitbook.io/threadly/~gitbook/mcp).

# Zapier & Webhooks

Connect Threadly to Zapier and your own systems with webhooks. Trigger Threadly workflows from thousands of apps or a signed request from your backend, and send workflow and form data out.

Threadly supports automation in both directions, with Zapier and plain HTTP webhooks. This is a **Pro** feature.

{% hint style="info" %}
The **Zapier Webhook** and **Inbound Webhook** triggers are rolling out gradually. If you don't see them, email <support@trythreadly.com> for early access.
{% endhint %}

***

## Trigger Threadly from a Zap

Set this up once per workflow:

1. Create a [workflow](https://threadly.gitbook.io/threadly/workflows/creating-your-first-workflow.md) with the **Zapier Webhook (External)** trigger.
2. Click **Edit Trigger** and copy the **Webhook URL**.
3. In your Zap, add a **Webhooks by Zapier → POST** action and paste the URL.
4. Map your Zap's data into the payload (see [What to send](#what-to-send)).
5. Activate the workflow.

### Security

In **Settings → Integrations → Zapier**, click **Set Secret** to add a secret token (optional, but recommended). Zapier sends it as `Authorization: Bearer <secret>` on every request, and Threadly rejects requests without it.

The Zapier screen also lists **Recent Triggers**, so you can confirm your Zap is reaching Threadly.

***

## Trigger Threadly from your own system (Inbound Webhook)

Use the **Inbound Webhook** trigger to start a workflow from your backend, Make, n8n, Retool or any tool that can send HTTP requests. Requests are signed, so only your systems can trigger your workflows.

1. Create a workflow with the **Inbound Webhook (External)** trigger.
2. Click **Edit Trigger** to copy the workflow's **Webhook URL** and your team's **signing secret**.
3. Activate the workflow, then send signed `POST` requests.

### Signing requests

Sign `<unix_timestamp>.<raw_request_body>` with HMAC-SHA256 using your signing secret, and send:

* `X-Threadly-Timestamp: <unix_timestamp>`
* `X-Threadly-Signature: sha256=<hex_digest>`
* `Content-Type: application/json`

Requests with a missing or wrong signature, or a timestamp more than 5 minutes old, are rejected.

```python
import hashlib, hmac, json, time, requests

secret = "YOUR_SIGNING_SECRET"
url = "YOUR_WORKFLOW_WEBHOOK_URL"
body = json.dumps({"user_email": "jane@company.com", "account_name": "Acme Corp"})
ts = str(int(time.time()))
sig = hmac.new(secret.encode(), f"{ts}.{body}".encode(), hashlib.sha256).hexdigest()

requests.post(url, data=body, headers={
    "Content-Type": "application/json",
    "X-Threadly-Timestamp": ts,
    "X-Threadly-Signature": f"sha256={sig}",
})
```

### Responses

| Response                        | Meaning                                                       |
| ------------------------------- | ------------------------------------------------------------- |
| `200` `{"status": "queued"}`    | Accepted. The workflow will run.                              |
| `200` `{"status": "duplicate"}` | Already received, so it wasn't run again                      |
| `400`                           | Invalid request, or the workflow is inactive or misconfigured |
| `401`                           | Signature missing, invalid or stale                           |
| `404`                           | Team or workflow not found                                    |
| `429`                           | Too many requests. Slow down and retry.                       |

Keep your signing secret private. If it's ever exposed, contact <support@trythreadly.com> to rotate it.

***

## What to send

Both Zapier and Inbound Webhook payloads need at least one targeting field:

* **For a person:** `user_email` (Threadly finds their Slack account) or `user_slack_id`
* **For a channel:** `channel_name` (for example `general` or `#cs-team`) or `channel_id`

Every other top-level field becomes a variable:

```json
{
  "user_email": "jane@company.com",
  "account_name": "Acme Corp",
  "renewal_date": "2026-06-01"
}
```

Use `{{webhook.account_name}}` and `{{webhook.renewal_date}}` in your workflow messages, and `{{user}}` for the person found from the payload.

***

## Send data out of Threadly

* **Send Webhook step:** in any workflow (except On Schedule), `POST` the workflow's data to your URL, with optional custom headers.
* **Send to Zapier step:** paste a **Webhooks by Zapier → Catch Hook** URL to start a Zap.
* **Form webhooks:** send every form submission to your URL. See [Setting Up Form Webhooks](https://threadly.gitbook.io/threadly/actions/form-ctas/setting-up-form-webhooks.md).

See [Workflow Steps](https://threadly.gitbook.io/threadly/workflows/workflow-steps.md) for details.

***

## Common use cases

| Trigger                             | What Threadly does                                       |
| ----------------------------------- | -------------------------------------------------------- |
| Deal closes in HubSpot (via Zapier) | Posts a congrats message in the customer's Slack channel |
| New row in Google Sheets            | Broadcasts an update to a channel                        |
| Trial ending (your backend)         | DMs the account's CSM with the details                   |
| Threadly form submitted             | Creates a row in Airtable or a HubSpot ticket via Zapier |
