Webhooks
Outbound webhooks POST a signed JSON event to your URL when something changes in TaskForce. Incoming chat webhooks let your tools post messages into a TaskForce chat channel.
Setup
Open Settings > Workspace > Webhooks. Viewing needs the view webhooks permission; creating and changing webhooks needs manage webhooks.
| Field | Required | Description |
|---|---|---|
| Name | No | Optional label, max 255 characters. |
| Destination URL | Yes | Where TaskForce POSTs events. Max 2048 characters. |
| Subscribed events | No | tasks.*, projects.*, comments.*, users.*. Leave all unselected to receive every event. |
| Shared secret | Yes | Your secret, max 255 characters. It is the HMAC key for X-Webhook-Signature. |
- Credentials are shown once after creation. Store the shared secret on your side.
- The screen also shows a generated signing key. Signatures are computed with the shared secret, not with that key, and rotating the key alone does not change them. To change the signing secret, rotate and enter a new shared secret.
- Revoking stops deliveries; rotating re-enables a revoked webhook.
- The Logs view lists the last 50 delivery attempts with status code and response, and can retry one.
Events
| Event | entityType | Fires when |
|---|---|---|
tasks.created | task | A task was created in the app. |
tasks.updated | task | A task was edited in the app. |
tasks.deleted | task | A task was deleted. |
tasks.completed | task | A task was marked as done. |
tasks.reopened | task | A done task was reopened. |
projects.created | project | A project was created in the app. |
projects.updated | project | A project was edited in the app. |
projects.archived | project | A project's status changed to 2 (shown as On hold in the app). |
task-comment.created | task-comment | A comment was posted. |
task-comment.updated | task-comment | A comment was edited. |
users.created (not delivered at the moment) | user | Listed in the app, but not delivered at the moment (see note). |
users.updated (not delivered at the moment) | user | Listed in the app, but not delivered at the moment (see note). |
Events are only sent for changes made in the TaskForce app. Changes made through the External API do not fire them.
Payload
Every delivery is a POST with a JSON body in this envelope:
| Field | Type | Description |
|---|---|---|
event | string | Event name, also sent in X-Webhook-Event. |
timestamp | string | When the event was dispatched, ISO 8601 UTC. |
entityType | string | task, project, task-comment or user. |
entityId | integer | Id of the entity. |
data | object | Snapshot of the entity. Shape depends on entityType. |
Example: tasks.completed
{
"event": "tasks.completed",
"timestamp": "2026-09-25T16:42:03+00:00",
"entityType": "task",
"entityId": 1287,
"data": {
"id": 1287,
"sourceId": null,
"startedAt": "2026-09-25T00:00:00.000000Z",
"endAt": "2026-10-03T00:00:00.000000Z",
"createdAt": "2026-09-25T10:15:00.000000Z",
"updatedAt": "2026-09-25T16:42:03.000000Z",
"title": "Write the API reference",
"spentTime": 5400,
"description": "Cover projects, tasks and webhooks.",
"priority": "2",
"effort": 14400,
"typeId": 1,
"parentId": null,
"projectId": 42,
"statusId": 5,
"departmentId": null
}
} data by entity type
| entityType | Fields in data |
|---|---|
task | id, sourceId, startedAt, endAt, createdAt, updatedAt, title, spentTime, description, priority, effort, typeId, parentId, projectId, statusId, departmentId; plus assignees, status and project when loaded. Dates here include microseconds, and priority is a string. |
project | id, name, description, logo, statusId, tenantId, users, tasks, sources, comments, startDate, endDate, createdAt, updatedAt. |
task-comment | id, content, commentableType, commentableId, userId, createdAt, updatedAt, user. |
user | id, name, email, isActive, tenantId, image, roles, createdAt, updatedAt. |
Verifying signatures
| Header | Value |
|---|---|
Content-Type | application/json |
X-Webhook-Event | The event name, for example tasks.completed. |
X-Webhook-Signature | Lowercase hex HMAC-SHA256 of the raw request body, keyed with the shared secret. |
| Signature | |
|---|---|
| Algorithm | HMAC-SHA256 |
| Encoding | hex (lowercase, 64 characters) |
| Signed content | The exact raw request body bytes. No timestamp or prefix is added. |
| Key | The shared secret you entered when creating (or last rotating) the webhook. |
- Compute the HMAC over the raw body before parsing JSON. Re-serialising changes the bytes (the body is sent with unescaped slashes and Unicode).
- Compare with a constant-time function.
- The signature has no timestamp, so it does not protect against replays. De-duplicate on
event+entityId+timestampif that matters to you.
Node.js (Express)
import crypto from "node:crypto";
import express from "express";
const app = express();
// Keep the raw body: the signature covers the exact bytes TaskForce sent.
app.post("/taskforce-webhook", express.raw({ type: "application/json" }), (req, res) => {
const expected = crypto
.createHmac("sha256", process.env.TASKFORCE_WEBHOOK_SECRET)
.update(req.body)
.digest("hex");
const received = req.get("X-Webhook-Signature") ?? "";
const expectedBuf = Buffer.from(expected, "hex");
const receivedBuf = Buffer.from(received, "hex");
const ok =
expectedBuf.length === receivedBuf.length &&
crypto.timingSafeEqual(expectedBuf, receivedBuf);
if (!ok) return res.sendStatus(401);
const event = JSON.parse(req.body.toString("utf8"));
res.sendStatus(204); // acknowledge first, then process
queueForProcessing(event);
}); PHP
<?php
$secret = getenv('TASKFORCE_WEBHOOK_SECRET');
$body = file_get_contents('php://input');
$received = $_SERVER['HTTP_X_WEBHOOK_SIGNATURE'] ?? '';
$expected = hash_hmac('sha256', $body, $secret);
if (!hash_equals($expected, $received)) {
http_response_code(401);
exit;
}
$event = json_decode($body, true);
http_response_code(204);
// process $event['event'], $event['entityId'], $event['data'] ... Delivery and retries
Any 2xx response. Anything else, a timeout or a connection error counts as a failure and is retried.
- Up to 5 attempts in total: the first try plus 4 retries after 30s, 60s, 120s and 240s.
- Respond with 2xx quickly and do the work asynchronously; slow receivers hit the 10 second timeout.
- Deliveries are queued, so order is not guaranteed.
- Only active, non-revoked webhooks of the workspace where the event happened receive it.
Caveats
- Writes made through the External API do not fire webhooks. Only changes made in the app (and by its AI agents) do.
- users.created and users.updated can be selected but are not delivered at the moment: user events carry no workspace, so they are skipped.
- projects.archived fires when a project's status changes to 2, which the app labels On hold. Setting status 6 (Archived in the app) sends projects.updated instead.
Incoming chat webhook
In Chat, open a regular channel (not a direct message) and choose Webhooks in the channel header. You need the channel management permission. Create a webhook, optionally give it a name, and copy the secret, URL, header, curl example and Jenkins snippet, which are shown once. The secret is stored hashed, so if you lose it, rotate it. You can also manage webhooks through the API, see below.
POST https://app.taskforce.place/api/webhooks/chat/{webhookId} Authenticate with the X-Webhook-Secret header. The secret shown when the channel webhook was created or last rotated. It is compared against a SHA-256 hash, so it is never stored in clear text.
Body
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Max 2000 characters. |
title | string | null | No | Max 255 characters. Shown as the first line. |
status | string | null | No | Max 255 characters. Shown as Status: <value>. |
metadata | object | null | No | Key/value pairs, shown as key: value lines under Metadata:. |
Limits
- 60 requests per minute, per channel webhook.
- Request body up to 10000 bytes.
- The formatted message (title, status, message and metadata lines) must stay within 2000 characters, or the request fails with 422
Message content too long. - The message is posted as the webhook's name (default
Webhook). - The same URL is also subject to the general limit of 60 requests per minute per IP.
Request
curl -X POST "https://app.taskforce.place/api/webhooks/chat/3f1c2a9e-5b7d-4c1e-9a0f-2d6b8e4f7a13" \
-H "Content-Type: application/json" \
-H "X-Webhook-Secret: $CHANNEL_WEBHOOK_SECRET" \
-d '{"title":"Deploy finished","status":"success","message":"main deployed to production","metadata":{"build":"#482","duration":"3m12s"}}' Response (201)
{
"success": true,
"message": "Webhook message delivered",
"data": {
"id": 9051,
"channel_id": 12,
"parent_message_id": null,
"reply_count": 0,
"last_reply_at": null,
"reply_participants": [],
"client_message_id": null,
"user_id": null,
"user": {
"id": null,
"name": "CI bot",
"avatar": null,
"is_bot": false
},
"content": "Deploy finished\nStatus: success\nmain deployed to production\nMetadata:\nbuild: #482\nduration: 3m12s",
"sender_type": "webhook",
"sender_name": "CI bot",
"webhook_id": 3,
"reactions": [],
"attachments": [],
"edited_at": null,
"created_at": "2026-09-25T16:50:00+00:00",
"updated_at": "2026-09-25T16:50:00+00:00",
"channel": null
},
"meta": {}
} Errors
| Status | message | When |
|---|---|---|
| 404 | Webhook not found | Unknown webhook id. |
| 403 | Webhook revoked or disabled | The webhook was revoked or turned off. |
| 429 | Rate limit exceeded | More than 60 calls in a minute for this webhook. Has Retry-After; this body has only success and message. |
| 413 | Payload too large | Body over 10000 bytes. |
| 401 | Missing webhook secret | No X-Webhook-Secret header. |
| 401 | Invalid webhook secret | Wrong secret. |
| 422 | Invalid payload | Body fails validation; errors lists the fields. |
| 422 | Message content too long | The formatted message exceeds 2000 characters. |
Managing channel webhooks
These endpoints back the Webhooks window in Chat. They live under /api/v1/messaging, not /api/v1/external, and authenticate with a user API token (Authorization: Bearer <token>). The token's user needs the manage channels permission, and the usual workspace rules apply. Responses use the standard envelope.
- The secret is returned once, by create and rotate. It is 64 hex characters and only its SHA-256 hash is stored.
- Revoke sets
is_activeto false and fillsrevoked_at. The incoming endpoint then answers 403. Rotate issues a new secret and also re-activates a revoked webhook. {webhookId}is the numericid, not thepublic_idused in the incoming URL.- Errors: 403
Unauthorizedwithout permission, 404Webhook not foundfor an unknown id in that channel, 422 for an invalid body.
/api/v1/messaging/channels/{channelId}/webhooks Scope: manage channels
List the channel's webhooks, newest first. Secrets are never included.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
channelId | integer | Yes | The channel id. |
Request
curl "https://app.taskforce.place/api/v1/messaging/channels/12/webhooks" \
-H "Authorization: Bearer $TASKFORCE_TOKEN" Response
{
"success": true,
"message": "",
"data": [
{
"id": 3,
"public_id": "3f1c2a9e-5b7d-4c1e-9a0f-2d6b8e4f7a13",
"channel_id": 12,
"name": "CI bot",
"is_active": true,
"revoked_at": null,
"created_by": 7,
"created_at": "2026-09-25T16:40:00+00:00",
"updated_at": "2026-09-25T16:40:00+00:00",
"url": "https://app.taskforce.place/api/webhooks/chat/3f1c2a9e-5b7d-4c1e-9a0f-2d6b8e4f7a13"
}
]
} /api/v1/messaging/channels/{channelId}/webhooks Scope: manage channels
Create a webhook. Returns 201 with the webhook and its secret, shown once.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
channelId | integer | Yes | The channel id. |
Body
| Name | Type | Required | Description |
|---|---|---|---|
name | string | null | No | Max 255 characters. Used as the sender name of posted messages; Webhook when empty. |
Request
curl -X POST "https://app.taskforce.place/api/v1/messaging/channels/12/webhooks" \
-H "Authorization: Bearer $TASKFORCE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"CI bot"}' Response
{
"success": true,
"message": "Channel webhook created successfully",
"data": {
"webhook": {
"id": 3,
"public_id": "3f1c2a9e-5b7d-4c1e-9a0f-2d6b8e4f7a13",
"channel_id": 12,
"name": "CI bot",
"is_active": true,
"revoked_at": null,
"created_by": 7,
"created_at": "2026-09-25T16:40:00+00:00",
"updated_at": "2026-09-25T16:40:00+00:00",
"url": "https://app.taskforce.place/api/webhooks/chat/3f1c2a9e-5b7d-4c1e-9a0f-2d6b8e4f7a13"
},
"secret": "9b1d...64 hex characters...e07a",
"secretHeader": "X-Webhook-Secret",
"exampleCurl": "curl -X POST '<url>' -H 'Content-Type: application/json' -H 'X-Webhook-Secret: <secret>' -d '{...}'",
"jenkinsSnippet": "pipeline { ... }"
}
} /api/v1/messaging/channels/{channelId}/webhooks/{webhookId}/rotate Scope: manage channels
Replace the secret. The old secret stops working at once. Also re-activates a revoked webhook. No body.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
channelId | integer | Yes | The channel id. |
webhookId | integer | Yes | The webhook's numeric id. |
Request
curl -X POST "https://app.taskforce.place/api/v1/messaging/channels/12/webhooks/3/rotate" \
-H "Authorization: Bearer $TASKFORCE_TOKEN" Response
{
"success": true,
"message": "Channel webhook rotated successfully",
"data": {
"webhook": {
"id": 3,
"public_id": "3f1c2a9e-5b7d-4c1e-9a0f-2d6b8e4f7a13",
"channel_id": 12,
"name": "CI bot",
"is_active": true,
"revoked_at": null,
"created_by": 7,
"created_at": "2026-09-25T16:40:00+00:00",
"updated_at": "2026-09-25T16:40:00+00:00",
"url": "https://app.taskforce.place/api/webhooks/chat/3f1c2a9e-5b7d-4c1e-9a0f-2d6b8e4f7a13"
},
"secret": "9b1d...64 hex characters...e07a",
"secretHeader": "X-Webhook-Secret",
"exampleCurl": "curl -X POST '<url>' -H 'Content-Type: application/json' -H 'X-Webhook-Secret: <secret>' -d '{...}'",
"jenkinsSnippet": "pipeline { ... }"
}
} /api/v1/messaging/channels/{channelId}/webhooks/{webhookId}/revoke Scope: manage channels
Turn the webhook off. Returns the webhook with `is_active` false and `revoked_at` set. No body.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
channelId | integer | Yes | The channel id. |
webhookId | integer | Yes | The webhook's numeric id. |
Request
curl -X POST "https://app.taskforce.place/api/v1/messaging/channels/12/webhooks/3/revoke" \
-H "Authorization: Bearer $TASKFORCE_TOKEN" Response
{
"success": true,
"message": "Channel webhook revoked successfully",
"data": {
"id": 3,
"public_id": "3f1c2a9e-5b7d-4c1e-9a0f-2d6b8e4f7a13",
"channel_id": 12,
"name": "CI bot",
"is_active": false,
"revoked_at": "2026-09-26T09:00:00+00:00",
"created_by": 7,
"created_at": "2026-09-25T16:40:00+00:00",
"updated_at": "2026-09-25T16:40:00+00:00",
"url": "https://app.taskforce.place/api/webhooks/chat/3f1c2a9e-5b7d-4c1e-9a0f-2d6b8e4f7a13"
}
} To post from Jenkins, see Jenkins deployment notifications.