---
title: Webhooks API · Tallyfy Pro
description: Tallyfy's webhooks API lets administrators list every webhook in an organization, add organization-wide webhooks, choose which events step and template webhooks send, read 90 days of delivery history, send a test delivery, and get the secret that signs every webhook.
lastUpdated: 2026-12-02T00:00:00.000Z
source_url:
  html: https://tallyfy.com/products/pro/integrations/webhooks/webhooks-api/
  md: https://tallyfy.com/products/pro/integrations/webhooks/webhooks-api/index.md
---

## How do I manage webhooks through the API?

Tallyfy’s webhooks API lets an administrator see every webhook in the organization, add webhooks that cover the whole organization, choose which events each webhook sends, check whether each delivery worked, and send a test. There’s no screen for any of this yet, so the API is how you do it for now.

Step and template webhook addresses are still set in the template editor, as [Set up webhooks](https://tallyfy.com/products/pro/integrations/webhooks/how-to-set-up-webhooks-in-tallyfy/) explains. This page covers everything around them.

## Which calls are there, and who can make them?

Every path below starts with `https://go.tallyfy.com/api/organizations/{org_id}/`.

| Method and path | Who can call it | What it does |
| - | - | - |
| `GET webhooks/events` | Any member | Lists every event and which kinds of webhook may choose it |
| `GET webhooks` | Administrators | Lists every webhook in the organization, with its last delivery |
| `POST webhooks` | Administrators | Adds an organization-wide webhook |
| `PUT webhooks/{webhook_id}` | Administrators | Changes an organization-wide webhook |
| `DELETE webhooks/{webhook_id}` | Administrators | Removes an organization-wide webhook |
| `GET webhooks/deliveries` | Administrators | Lists delivery attempts from the last 90 days |
| `POST webhooks/test` | Administrators | Sends a test event to any address |
| `POST webhooks/{webhook_id}/test` | Administrators | Sends a test event to one webhook |
| `PUT checklists/{checklist_id}/steps/{step_id}/webhook-events` | Anyone who can edit the template | Chooses the events and form fields for a step webhook |
| `PUT checklists/{checklist_id}/webhook-events` | Anyone who can edit the template | Chooses the events for a template webhook |
| `GET webhook-signing-secret` | Administrators | Gets the secret that signs every webhook |
| `POST webhook-signing-secret/rotate` | Administrators | Replaces that secret with a new one |

A member who isn’t an administrator gets `403` from the administrator calls, and so does a token from an AI app connected to Tallyfy through MCP. A wrong or expired token gets `401`. A field Tallyfy doesn’t accept gets `422`.

### Required headers

Every request needs these three headers:

```plaintext
Authorization: Bearer YOUR_ACCESS_TOKEN
Accept: application/json
X-Tallyfy-Client: APIClient
```

Add `Content-Type: application/json` to any `POST` or `PUT` that sends a body. Replace `{org_id}` with your [organization ID](https://tallyfy.com/products/pro/miscellaneous/how-to-find-your-tallyfy-ids/). [Get & use a personal access token](https://tallyfy.com/products/pro/integrations/open-api/code-samples/authentication/personal-access-token/) shows where the token comes from.

## Which events can a webhook send?

Ask the catalogue. Each entry gives the event’s name, a short label, the group it belongs to, and the kinds of webhook that may choose it.

```bash
curl "https://go.tallyfy.com/api/organizations/{org_id}/webhooks/events" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient"
```

```json
{
  "data": [
    {
      "name": "task.deadline_changed",
      "label": "A task deadline changed",
      "group": "task",
      "sources": ["step", "template", "watch", "organization"]
    }
  ],
  "meta": {
    "defaults": {
      "step": ["task.completed"],
      "template": ["process.launched", "process.completed", "task.completed"]
    }
  }
}
```

The real answer lists every event, and `defaults` also covers `watch` and `organization`. It shows what each kind sends when nobody has chosen. A step webhook may choose any task event. Template and organization-wide webhooks may choose process events too. A watch may choose process and task events, but not the comment and issue ones. Three events have no `sources`, because nobody chooses them: `webhook.test`, which the test calls send, `automation.webhook`, which an automation’s own rule sends, and `template.changed`, which a watch on a template sends.

[Webhook payload structure](https://tallyfy.com/products/pro/integrations/webhooks/webhook-payload-structure/#the-event-field) describes each event and shows an example body for it.

## How do I see every webhook in the organization?

Call `GET webhooks`. It lists every webhook the organization has, wherever it was set up, leaving out archived templates. The `source` of each one says what kind it is:

| `source` | What it is | What its ID is |
| - | - | - |
| `organization` | An organization-wide webhook | A watch ID, which is a number |
| `template` | A template webhook | The template ID |
| `step` | A step webhook | The step ID |
| `automation` | The [webhook action](https://tallyfy.com/products/pro/documenting/templates/automations/actions/#webhook-actions) of an automation | The action’s ID |
| `task_watch`, `process_watch`, `user_watch`, `template_watch` | A watch on a task, a process, a member or a template that sends to a web address instead of email | A watch ID |

```bash
curl "https://go.tallyfy.com/api/organizations/{org_id}/webhooks?failing=true" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient"
```

```json
{
  "data": [
    {
      "id": "step:step456def789",
      "source": "step",
      "source_id": "step456def789",
      "url": "https://hooks.example.com/tallyfy",
      "host": "hooks.example.com",
      "label": null,
      "events": ["task.created", "task.form_fields_updated"],
      "sends": ["task.created", "task.form_fields_updated"],
      "field_ids": ["capture_timeline_123"],
      "template": { "id": "template789xyz123abc", "title": "Contract Review" },
      "step": { "id": "step456def789", "title": "Review Contract" },
      "watching": null,
      "owner_id": "123",
      "updated_at": "2025-10-01T08:00:00Z",
      "last_delivery": {
        "at": "2025-10-02T14:35:31Z",
        "outcome": "failed",
        "http_status": 500,
        "error": "HTTP 500 (gave up after 3 attempts)"
      },
      "consecutive_failures": 1
    }
  ],
  "meta": {
    "pagination": {
      "total": 1,
      "count": 1,
      "per_page": 50,
      "current_page": 1,
      "total_pages": 1
    }
  }
}
```

* **`id`** is the kind and the ID, joined by a colon. Use it as it is in the calls below. The colon needs no encoding.
* **`events`** is what somebody chose, or `null` if nobody has. **`sends`** is what it sends either way, without the events that kind of watch never hears. A watch whose frequency isn’t `electric` sends nothing, so its `sends` is empty.
* **`field_ids`** are the form fields a step webhook is limited to, or `null` for all of them.
* **`watching`** is the kind and ID of what a watch watches.
* **`owner_id`** is the member a watch belongs to, or the template’s owner.
* **`last_delivery`** is `null` when nothing has been sent in the last 90 days. Watches and organization-wide webhooks that share a URL share one delivery. It’s filed under the organization-wide one when that one chose the event, or else under the first watch.
* **`consecutive_failures`** counts the deliveries that failed or were refused since the last one that worked. An attempt that Tallyfy is still retrying doesn’t count.

Narrow the list with `source`, `template_id`, `failing` and `q`. `failing=true` keeps the webhooks with at least one failure since their last success, and `failing=false` keeps the rest. `q` searches the URL, the label, and the template and step names. `template_id` has to be the whole ID, all 32 characters. The list comes in pages of 50. Use `page`, and `per_page` for up to 100 at a time.

## How do I add an organization-wide webhook?

Send its address, the events you want and a label you’ll recognize. This one tells a chat bridge about every new task and every change of assignee, which is what you’d use to message people when work becomes theirs.

```bash
curl -X POST "https://go.tallyfy.com/api/organizations/{org_id}/webhooks" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://hooks.example.com/tallyfy",
    "events": ["task.created", "task.assignees_changed"],
    "label": "WhatsApp bridge"
  }'
```

The response is `201 Created`. Its body is the webhook’s row, as the list shows it, and its `Location` header points at the new webhook.

A few rules apply:

* **Only `url` is required.** Leave out `events`, or send `null`, and the webhook sends the seven events organization-wide webhooks have always sent. `label` can be up to 255 characters.
* **It belongs to you.** An organization-wide webhook is owned by the administrator who created it, and the list shows that owner.
* **The address must be public.** Tallyfy checks the URL when you save it. An address on a private network, such as `localhost` or `10.0.0.5`, gets `422`. So does one whose host can’t be found.
* **One webhook per address.** A URL that another organization-wide webhook already uses gets `422` too.
* **`["*"]` means every event** that kind of webhook may choose, including any added later. Use it when you’d rather filter on your side.

Organization-wide webhooks are watches on the whole organization. You can still add one the older way, through `add-watcher` with `object_type` set to `organization`, `object_id` set to your organization ID, `notification_type` set to `webhook` and `frequency` set to `electric`. That call and `update-watcher` now accept `events` and `label` too, for a watch that sends to a web address. Any other watch ignores both, and a watch on a template takes only `label`. With no `events`, a watch sends what it always sent, so nothing changes for a webhook you set up before.

## How do I change or remove an organization-wide webhook?

Use its `id` from the list, such as `organization:4821`. The number on its own works too. Send only the fields you want to change. A field you leave out stays as it is, and `"events": null` goes back to the seven events.

```bash
curl -X PUT "https://go.tallyfy.com/api/organizations/{org_id}/webhooks/{webhook_id}" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient" \
  -H "Content-Type: application/json" \
  -d '{
    "events": ["task.created", "task.assignees_changed", "task.deadline_changed"]
  }'
```

```bash
curl -X DELETE "https://go.tallyfy.com/api/organizations/{org_id}/webhooks/{webhook_id}" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient"
```

`PUT` answers with the changed row and `DELETE` answers `204`. These two calls only change organization-wide webhooks, so any other ID gets `404`. Change a step or template webhook’s address in the template editor, and its events with the calls in the next section.

## How do I choose events for a step or template webhook?

Anyone who can edit the template can choose them. A step webhook can also be limited to certain form fields, which only matters for `task.form_fields_updated`. Use the timeline IDs that key `captures` in a [task payload](https://tallyfy.com/products/pro/integrations/webhooks/webhook-payload-structure/#form-field-structures). An ID that isn’t a form field of that step gets `422`.

```bash
curl -X PUT "https://go.tallyfy.com/api/organizations/{org_id}/checklists/{checklist_id}/steps/{step_id}/webhook-events" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient" \
  -H "Content-Type: application/json" \
  -d '{
    "events": ["task.created", "task.form_fields_updated"],
    "field_ids": ["FORM_FIELD_ID_1", "FORM_FIELD_ID_2"]
  }'
```

```bash
curl -X PUT "https://go.tallyfy.com/api/organizations/{org_id}/checklists/{checklist_id}/webhook-events" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient" \
  -H "Content-Type: application/json" \
  -d '{
    "events": ["process.launched", "process.archived", "task.deadline_changed"]
  }'
```

Both calls answer with what’s now stored. `events` has to be in the body, even when it’s `null`. `field_ids` doesn’t. Leave it out and the stored form fields stay.

If you never choose, nothing changes. An empty setting (`null`) keeps the behavior Tallyfy has always had, and sending `null` goes back to it:

| Setting | `null` means |
| - | - |
| Step webhook `events` | `task.completed` only |
| Step webhook `field_ids` | Every form field on the step |
| Template webhook `events` | `process.launched`, `process.completed` and `task.completed` |
| Organization-wide webhook `events` | `process.launched`, `process.completed`, `task.completed`, `task.assigned`, `task.comment_added`, `task.issue_raised` and `task.issue_resolved` |
| Task, process or member watch `events` | `process.launched`, `process.completed`, `task.completed` and `task.assigned`, as far as [that watch can hear them](#which-events-can-a-watch-hear) |

A few more things to know:

* **Choices are copied at launch.** A task takes its step’s events and form fields when the process launches, the same way it takes the webhook address. Processes that are already running keep what they had.
* **A step’s own address wins.** Task events reach a template webhook only for tasks whose step has no webhook address of its own. That holds even when the step’s webhook didn’t choose the event.
* **An address set on one task chooses nothing.** It sends `task.completed` only, whatever its step chose.
* **Copies in your organization keep the choices.** A new template version, a duplicated template and a duplicated step carry the same events, and their form field choices point at the copy’s own fields. A copy in another organization loses the choices and goes back to the defaults.
* **Saving in the template editor doesn’t touch them.** The editor’s own save leaves the events and form fields as they are. Step, template and task responses show them as `webhook_events` and `webhook_field_ids`, but only these two calls change them.
* **A template with a draft takes them on the draft.** The same call on the published copy gets `403`.

### Which events can a watch hear?

A watch takes `events` as an organization-wide webhook does, apart from the comment and issue events, which get `422`. It hears only about what it watches:

| Watch on | What it can hear |
| - | - |
| A task | That task’s events |
| A process | `process.completed` and `process.archived`. It also hears its tasks’ events when the watch’s owner is an administrator or is assigned to the task, but `task.assigned` only once somebody has chosen it |
| A member | `process.launched` for a process they own, `task.completed` for a task they complete, `task.assigned` when they’re added to a task, `task.assignees_changed` when they’re added or taken off, and the other task events for a task they’re assigned to. Being assigned through a group doesn’t count |
| A template | `template.changed`, when a step or a form field is added or removed or a step’s assignees change, in [a body of its own](https://tallyfy.com/products/pro/integrations/webhooks/webhook-payload-structure/#watches-on-a-template). There’s nothing to choose, so `events` gets `422` |

## How do I check whether a webhook was delivered?

Read the delivery history. Every attempt is one row, so a delivery that needed a retry shows as two or three rows. Tallyfy keeps rows for 90 days.

```bash
curl "https://go.tallyfy.com/api/organizations/{org_id}/webhooks/deliveries?task_id={task_id}" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient"
```

```json
{
  "data": [
    {
      "id": 90217,
      "webhook_id": "step:step456def789",
      "source": "step",
      "source_id": "step456def789",
      "event": "task.completed",
      "event_id": "5b1f0c8e-2d4a-5c6b-9e7f-0a1b2c3d4e5f",
      "url_host": "hooks.example.com",
      "http_status": 500,
      "outcome": "retrying",
      "error": "HTTP 500 (retry 1 in 30s)",
      "attempt": 1,
      "duration_ms": 412,
      "task_id": "task003ghi789xyz",
      "run_id": "abc123def456ghi789jkl012mno345pq",
      "checklist_id": "template789xyz123abc",
      "step_id": "step456def789",
      "created_at": "2025-10-02T14:30:01Z"
    }
  ],
  "meta": {
    "pageSize": 50,
    "hasMore": true,
    "nextCursor": "WyIyMDI1LTEwLTAyIDE0OjMwOjAxIiw5MDIxN10"
  }
}
```

`run_id` is the process and `checklist_id` is the template. Only the host of the address is kept. `http_status` is `0` when no answer came back. Each row ends in one of four outcomes:

| `outcome` | What happened |
| - | - |
| `delivered` | The receiver answered with a 2xx status |
| `retrying` | This attempt failed, and Tallyfy tries again |
| `failed` | The last attempt failed, so Tallyfy gave up |
| `refused` | Tallyfy didn’t send it, and `error` says why, such as an address that isn’t public |

Filter by `source` and `source_id` (one webhook, using the two halves of its `id`), `task_id`, `run_id`, `event`, `outcome`, and a time range with `from` and `to`, both in ISO 8601. `task_id` and `run_id` have to be whole IDs, all 32 characters. Besides the kinds in the list, a delivery’s `source` can be `task`, for an address someone set on one task, or `test`.

The newest rows come first, 50 to a page. Ask for up to 100 with `per_page`. While `hasMore` is `true`, send `nextCursor` back as `cursor` to get the next page.

The [System log](https://tallyfy.com/products/pro/settings/org-settings/system-log/) records the same deliveries for 18 months, but it has no filter for one task or one webhook.

## How do I send a test?

Send a test to any public address before you save it, or to a webhook that already exists.

```bash
curl -X POST "https://go.tallyfy.com/api/organizations/{org_id}/webhooks/test" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient" \
  -H "Content-Type: application/json" \
  -d '{ "url": "https://hooks.example.com/tallyfy" }'
```

```bash
curl -X POST "https://go.tallyfy.com/api/organizations/{org_id}/webhooks/{webhook_id}/test" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient"
```

The first takes any public address. One that isn’t public, or whose host can’t be found, gets `422`. The second takes any `id` from the list, so you can test a step or template webhook as well. Tallyfy sends a signed `webhook.test` event straight away and tells you what happened:

```json
{
  "data": {
    "outcome": "failed",
    "http_status": 500,
    "error": "HTTP 500",
    "event_id": "5e3c1a9f-8b0d-5c2e-b4f6-8e0a2c4e6f8b",
    "url_host": "hooks.example.com",
    "duration_ms": 212
  }
}
```

The call itself answers `200` whether the test was `delivered`, `failed` or `refused`, so read `outcome`. A test is one attempt and is never retried. It shows up in the delivery history too. You can send 10 tests a minute, and the next one gets `429`.

## How do I check that a webhook came from Tallyfy?

Check its signature. Tallyfy signs each webhook with a secret that belongs to your organization, and an administrator can read that secret.

```bash
curl "https://go.tallyfy.com/api/organizations/{org_id}/webhook-signing-secret" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient"
```

The response holds `webhook_signing_secret`, a string of 64 characters. Store it the way you’d store a password. If it leaks, replace it:

```bash
curl -X POST "https://go.tallyfy.com/api/organizations/{org_id}/webhook-signing-secret/rotate" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Accept: application/json" \
  -H "X-Tallyfy-Client: APIClient"
```

Webhooks sent after a rotation use the new secret, so update every receiver straight away. Each of these two calls can be made 10 times a minute. A token from an AI app connected to Tallyfy through MCP can’t make them.

To check a webhook, your receiver:

1. Reads the `X-Tallyfy-Timestamp` and `X-Tallyfy-Signature` headers.
2. Joins the timestamp, a dot and the raw request body, unchanged from how it arrived.
3. Makes an HMAC-SHA256 of that with the secret, written as lowercase hex, and puts `sha256=` in front.
4. Compares the result with `X-Tallyfy-Signature` using a constant-time compare.
5. Rejects the webhook if the timestamp is more than a few minutes old.

Use the secret as the plain string you were given. Don’t decode it from hex first. Check the body before you parse it as JSON, because parsing and printing it again changes the bytes.

```javascript
const crypto = require('crypto');


// rawBody is the request body as a string, unchanged from how it arrived
function isFromTallyfy(rawBody, headers, secret) {
  const timestamp = headers['x-tallyfy-timestamp'];
  const signature = headers['x-tallyfy-signature'];
  if (!timestamp || !signature) return false;


  // Reject webhooks signed more than 5 minutes ago
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;


  const expected = 'sha256=' + crypto
    .createHmac('sha256', secret)
    .update(timestamp + '.' + rawBody)
    .digest('hex');


  const a = Buffer.from(expected);
  const b = Buffer.from(signature);
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}
```

```python
import hashlib
import hmac
import time


# raw_body is the request body as bytes, unchanged from how it arrived
def is_from_tallyfy(raw_body, headers, secret):
    timestamp = headers.get("X-Tallyfy-Timestamp")
    signature = headers.get("X-Tallyfy-Signature")
    if not timestamp or not signature:
        return False


    # Reject webhooks signed more than 5 minutes ago
    if abs(time.time() - int(timestamp)) > 300:
        return False


    message = timestamp.encode() + b"." + raw_body
    expected = "sha256=" + hmac.new(secret.encode(), message, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, signature)
```

Tallyfy signs a webhook whenever it can read your organization’s secret. If it can’t, it still sends the webhook, without the two signature headers. So decide what your receiver does with an unsigned request, and log it either way.

The `X-Tallyfy-orgID` header names the organization that sent the webhook, but it isn’t a secret, so it proves nothing on its own. The signature is the check.

## Related articles

[**Webhooks > Set up webhooks**](https://tallyfy.com/products/pro/integrations/webhooks/how-to-set-up-webhooks-in-tallyfy/)

Tallyfy webhooks POST JSON data to external URLs when workflow events like task completions or…

[**Webhooks > Webhook payload structure**](https://tallyfy.com/products/pro/integrations/webhooks/webhook-payload-structure/)

Tallyfy webhook payloads are JSON. Process events send the process state and kick-off form data.

[**Integrations > Webhooks**](https://tallyfy.com/products/pro/integrations/webhooks/)

Tallyfy webhooks send a JSON message by HTTP POST to a URL you choose when something happens in…

[**Webhooks > Webhook scenarios**](https://tallyfy.com/products/pro/integrations/webhooks/how-can-i-use-tallyfys-webhooks-feature/)

Tallyfy webhooks push JSON data to external systems when processes launch or complete and when…
