Webhooks API
How do I manage webhooks through the API?
Section titled “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 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 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
Section titled “Required headers”Every request needs these three headers:
Authorization: Bearer YOUR_ACCESS_TOKENAccept: application/jsonX-Tallyfy-Client: APIClientAdd 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.
Which events can a webhook send?
Section titled “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.
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:
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 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 |
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 } }}idis the kind and the ID, joined by a colon. Use it as it is in the calls below. The colon needs no encoding.eventsis what somebody chose, ornullif nobody has.sendsis what it sends either way, without the events that kind of watch never hears. A watch whose frequency isn’telectricsends nothing, so itssendsis empty.field_idsare the form fields a step webhook is limited to, ornullfor all of them.watchingis the kind and ID of what a watch watches.owner_idis the member a watch belongs to, or the template’s owner.last_deliveryisnullwhen 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_failurescounts 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.
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
urlis required. Leave outevents, or sendnull, and the webhook sends the seven events organization-wide webhooks have always sent.labelcan 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
localhostor10.0.0.5, gets422. So does one whose host can’t be found. - One webhook per address. A URL that another organization-wide webhook already uses gets
422too. ["*"]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.
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"] }'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.
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"] }'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 |
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.completedonly, 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_eventsandwebhook_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?
Section titled “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. 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.
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:
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 records the same deliveries for 18 months, but it has no filter for one task or one webhook.
How do I send a test?
Section titled “How do I send a test?”Send a test to any public address before you save it, or to a webhook that already exists.
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" }'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.
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:
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:
- Reads the
X-Tallyfy-TimestampandX-Tallyfy-Signatureheaders. - Joins the timestamp, a dot and the raw request body, unchanged from how it arrived.
- Makes an HMAC-SHA256 of that with the secret, written as lowercase hex, and puts
sha256=in front. - Compares the result with
X-Tallyfy-Signatureusing a constant-time compare. - 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 arrivedfunction 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 hashlibimport hmacimport time
# raw_body is the request body as bytes, unchanged from how it arriveddef 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
Section titled “Related articles”Webhooks > Webhook payload structure