Skip to content
Developers

Webhooks 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 explains. This page covers everything around them.

Which calls are there, and who can make them?

Section titled “Which calls are there, and who can make them?”

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

Method and pathWho can call itWhat it does
GET webhooks/eventsAny memberLists every event and which kinds of webhook may choose it
GET webhooksAdministratorsLists every webhook in the organization, with its last delivery
POST webhooksAdministratorsAdds an organization-wide webhook
PUT webhooks/{webhook_id}AdministratorsChanges an organization-wide webhook
DELETE webhooks/{webhook_id}AdministratorsRemoves an organization-wide webhook
GET webhooks/deliveriesAdministratorsLists delivery attempts from the last 90 days
POST webhooks/testAdministratorsSends a test event to any address
POST webhooks/{webhook_id}/testAdministratorsSends a test event to one webhook
PUT checklists/{checklist_id}/steps/{step_id}/webhook-eventsAnyone who can edit the templateChooses the events and form fields for a step webhook
PUT checklists/{checklist_id}/webhook-eventsAnyone who can edit the templateChooses the events for a template webhook
GET webhook-signing-secretAdministratorsGets the secret that signs every webhook
POST webhook-signing-secret/rotateAdministratorsReplaces 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.

Every request needs these three headers:

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. Get & use a personal access token shows where the token comes from.

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.

Terminal window
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"
{
"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 describes each event and shows an example body for it.

How do I see every webhook in the organization?

Section titled “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:

sourceWhat it isWhat its ID is
organizationAn organization-wide webhookA watch ID, which is a number
templateA template webhookThe template ID
stepA step webhookThe step ID
automationThe webhook action of an automationThe action’s ID
task_watch, process_watch, user_watch, template_watchA watch on a task, a process, a member or a template that sends to a web address instead of emailA watch ID
Terminal window
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"
{
"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?

Section titled “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.

Terminal window
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?

Section titled “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.

Terminal window
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"]
}'
Terminal window
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?

Section titled “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. An ID that isn’t a form field of that step gets 422.

Terminal window
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"]
}'
Terminal window
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:

Settingnull means
Step webhook eventstask.completed only
Step webhook field_idsEvery form field on the step
Template webhook eventsprocess.launched, process.completed and task.completed
Organization-wide webhook eventsprocess.launched, process.completed, task.completed, task.assigned, task.comment_added, task.issue_raised and task.issue_resolved
Task, process or member watch eventsprocess.launched, process.completed, task.completed and task.assigned, as far as that watch can hear them

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.

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 onWhat it can hear
A taskThat task’s events
A processprocess.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 memberprocess.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 templatetemplate.changed, when a step or a form field is added or removed or a step’s assignees change, in a body of its own. There’s nothing to choose, so events gets 422

How do I check whether a webhook was delivered?

Section titled “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.

Terminal window
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"
{
"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:

outcomeWhat happened
deliveredThe receiver answered with a 2xx status
retryingThis attempt failed, and Tallyfy tries again
failedThe last attempt failed, so Tallyfy gave up
refusedTallyfy 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 records the same deliveries for 18 months, but it has no filter for one task or one webhook.

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

Terminal window
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" }'
Terminal window
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:

{
"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?

Section titled “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.

Terminal window
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:

Terminal window
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.

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);
}
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.

Integrations > Webhooks

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