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.

FieldRequiredDescription
NameNoOptional label, max 255 characters.
Destination URLYesWhere TaskForce POSTs events. Max 2048 characters.
Subscribed eventsNotasks.*, projects.*, comments.*, users.*. Leave all unselected to receive every event.
Shared secretYesYour 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

EvententityTypeFires when
tasks.createdtaskA task was created in the app.
tasks.updatedtaskA task was edited in the app.
tasks.deletedtaskA task was deleted.
tasks.completedtaskA task was marked as done.
tasks.reopenedtaskA done task was reopened.
projects.createdprojectA project was created in the app.
projects.updatedprojectA project was edited in the app.
projects.archivedprojectA project's status changed to 2 (shown as On hold in the app).
task-comment.createdtask-commentA comment was posted.
task-comment.updatedtask-commentA comment was edited.
users.created (not delivered at the moment)userListed in the app, but not delivered at the moment (see note).
users.updated (not delivered at the moment)userListed 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:

FieldTypeDescription
eventstringEvent name, also sent in X-Webhook-Event.
timestampstringWhen the event was dispatched, ISO 8601 UTC.
entityTypestringtask, project, task-comment or user.
entityIdintegerId of the entity.
dataobjectSnapshot 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

entityTypeFields in data
taskid, 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.
projectid, name, description, logo, statusId, tenantId, users, tasks, sources, comments, startDate, endDate, createdAt, updatedAt.
task-commentid, content, commentableType, commentableId, userId, createdAt, updatedAt, user.
userid, name, email, isActive, tenantId, image, roles, createdAt, updatedAt.

Verifying signatures

HeaderValue
Content-Typeapplication/json
X-Webhook-EventThe event name, for example tasks.completed.
X-Webhook-SignatureLowercase hex HMAC-SHA256 of the raw request body, keyed with the shared secret.
Signature
AlgorithmHMAC-SHA256
Encodinghex (lowercase, 64 characters)
Signed contentThe exact raw request body bytes. No timestamp or prefix is added.
KeyThe 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 + timestamp if 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

FieldTypeRequiredDescription
messagestringYesMax 2000 characters.
titlestring | nullNoMax 255 characters. Shown as the first line.
statusstring | nullNoMax 255 characters. Shown as Status: <value>.
metadataobject | nullNoKey/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

StatusmessageWhen
404Webhook not foundUnknown webhook id.
403Webhook revoked or disabledThe webhook was revoked or turned off.
429Rate limit exceededMore than 60 calls in a minute for this webhook. Has Retry-After; this body has only success and message.
413Payload too largeBody over 10000 bytes.
401Missing webhook secretNo X-Webhook-Secret header.
401Invalid webhook secretWrong secret.
422Invalid payloadBody fails validation; errors lists the fields.
422Message content too longThe 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_active to false and fills revoked_at. The incoming endpoint then answers 403. Rotate issues a new secret and also re-activates a revoked webhook.
  • {webhookId} is the numeric id, not the public_id used in the incoming URL.
  • Errors: 403 Unauthorized without permission, 404 Webhook not found for an unknown id in that channel, 422 for an invalid body.
GET /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"
    }
  ]
}
POST /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 { ... }"
  }
}
POST /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 { ... }"
  }
}
POST /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.

A brighter way to work

Bring your team and AI agents together, starting today.