Webhooks
Webhooks send events to your URL by HTTPS POST as soon as something changes.
Setting up
Set up webhooks in the workspace settings or over REST through the webhook endpoints (scope webhooks:manage). They are available from the Team plan, with up to 10 endpoints per workspace.
Only https on port 443 or 8443 is allowed, no private or local addresses.
Events
| Event | Description |
|---|---|
project.created | A project was created. |
project.updated | A project changed (rename, members, status within active states). |
project.archived | A project moved to Completed or Canceled. |
project.deleted | A project was deleted. |
task.created | A task was created. |
task.updated | A task changed (status, title, due date, priority, unassigned). |
task.completed | A task was completed. |
task.reopened | A completed task was reopened. |
task.assigned | A task was assigned. |
task.deleted | A task was deleted. |
milestone.created | A milestone was created. |
milestone.updated | A milestone changed. |
milestone.completed | A milestone was completed. |
comment.created | A comment was added. |
webhook.test | Sent only by "Send test" (UI) or POST /webhooks/{webhookId}/test. |
Payload
Every delivery is a JSON object with this structure:
-
idstringrequiredStable across retries; deduplicate by it.
-
typeobjectrequiredAllowed values:
project.created -
occurredAtstring (date-time)required -
tenantIdstringrequired -
actorWebhookActorrequiredShow 3 attributes
-
typestringrequiredintegrationcovers API tokens and AI clients.Allowed values:
userintegrationflow -
idstring | nullrequiredUser id, token creator uid or flow id; null when unknown.
-
tokenIdstringSet for workspace API tokens. Ignore events with your own tokenId (echo protection).
-
-
dataobjectrequiredCurrent state of the object at delivery time (deleted objects: last known title).
Show 10 attributes
-
idstring -
projectIdstring -
titlestring -
statusstring | null -
dueDatestring -
assigneeIdsarray of string -
externalExternalMapExternal references by source. Source keys match
^[a-z][a-z0-9_-]{1,31}$, max 5.Show 1 attribute
-
<key>ExternalExternal reference to an object in another system.
Show 5 attributes
-
customerIdstring -
refstring -
labelstring -
urlstring (uri)http or https.
-
metaobjectFlat object, max 20 keys; values string (max 500), number, boolean or null.
-
-
-
urlstring (uri) -
targetTypestringComments only.
-
targetIdstringComments only.
-
-
changesobjectChanged fields,
{ from, to }each.Show 1 attribute
-
<key>objectShow 2 attributes
-
fromobject -
toobject
-
-
actor.typeisuser,integrationorflow. For tokens, the actor carriestokenId: ignore events with your owntokenIdto avoid loops.datais the state of the object at delivery time. For deleted objects it holds the last known title.
{
"id": "Q8x…-e0",
"type": "task.updated",
"occurredAt": "2026-10-26T10:00:00.000Z",
"tenantId": "ws_123",
"actor": {
"type": "integration",
"id": "<uid of the token creator>",
"tokenId": "<api token id>"
},
"data": {
"id": "task_1",
"projectId": "proj_1",
"title": "New title",
"status": "In Progress",
"dueDate": "2026-11-01",
"assigneeIds": ["uid_2"],
"external": { "manager": { "customerId": "cust_123" } },
"url": "https://app.getprojectflow.com/project/proj_1/tasks/task_1"
},
"changes": { "title": { "from": "Old", "to": "New title" } }
}
Content-Type: application/json
User-Agent: ProjectFlow-Webhooks/1.0
X-ProjectFlow-Event-Id: <payload id, stable across retries>
X-ProjectFlow-Event-Type: task.updated
X-ProjectFlow-Delivery-Attempt: 1
X-ProjectFlow-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256>
Verifying signatures
Every delivery is signed with the endpoint's secret: X-ProjectFlow-Signature contains the timestamp t and an HMAC-SHA256 over t, a dot and the raw body. Verify the signature against the unmodified body.
- Reject signatures whose timestamp is older than 5 minutes.
- Compare in constant time.
- After a rotation the old secret keeps signing for 24 hours. The header then carries two
v1values; accept the request if one matches.
const crypto = require('crypto');
app.post('/hooks/projectflow', express.raw({ type: 'application/json' }), (req, res) => {
const parts = (req.get('X-ProjectFlow-Signature') || '').split(',').map((p) => p.trim().split('='));
const t = Number(parts.find(([k]) => k === 't')?.[1]);
if (!t || Math.abs(Date.now() / 1000 - t) > 300) return res.sendStatus(400);
const expected = crypto.createHmac('sha256', process.env.PF_WEBHOOK_SECRET)
.update(`${t}.${req.body}`).digest();
const ok = parts.filter(([k]) => k === 'v1').some(([, v]) => {
const given = Buffer.from(v, 'hex');
return given.length === expected.length && crypto.timingSafeEqual(given, expected);
});
if (!ok) return res.sendStatus(401);
const event = JSON.parse(req.body);
// dedupe by event.id, ignore event.actor.tokenId === MY_TOKEN_ID, then process
res.sendStatus(204);
});import hmac, hashlib, time
def verify(raw: bytes, header: str, secret: str) -> bool:
parts = [p.strip().split('=', 1) for p in header.split(',') if '=' in p]
t = next((int(v) for k, v in parts if k == 't'), None)
if t is None or abs(time.time() - t) > 300:
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw, hashlib.sha256).hexdigest()
return any(hmac.compare_digest(expected, v) for k, v in parts if k == 'v1')$raw = file_get_contents('php://input');
$header = $_SERVER['HTTP_X_PROJECTFLOW_SIGNATURE'] ?? '';
$t = null; $sigs = [];
foreach (explode(',', $header) as $part) {
[$k, $v] = array_pad(explode('=', trim($part), 2), 2, '');
if ($k === 't') $t = (int) $v; elseif ($k === 'v1') $sigs[] = $v;
}
if (!$t || abs(time() - $t) > 300) { http_response_code(400); exit; }
$expected = hash_hmac('sha256', $t . '.' . $raw, getenv('PF_WEBHOOK_SECRET'));
$ok = false; foreach ($sigs as $s) { $ok = $ok || hash_equals($expected, $s); }
if (!$ok) { http_response_code(401); exit; }
$event = json_decode($raw, true);
Delivery and retries
- Delivery is at least once, without ordering guarantee: dedupe by event ID and decide using
occurredAtorupdatedAt. - Success is a
2xxwithin 10 seconds. Redirects are not followed. - On failure there are up to 10 attempts over about 24 hours: after 1, 5, 15 and 30 minutes, then after 1, 2, 4, 8 and 8 hours.
- After that the endpoint is disabled and the owner is notified.
- You can list deliveries and redeliver them through the API.
Webhooks in Flows
Flows (automations) can send and receive webhooks, also from the Team plan. You find the URL and signing secret in the flow editor.
- "Call webhook" action: sends JSON to your URL with the
X-ProjectFlow-Signatureheader in the same format. The body can contain variables from the flow. - "Incoming webhook" trigger: one secret URL per flow. A POST with a JSON object (up to 64 KB) starts the flow; the fields are available as
{{payload.…}}. WithIdempotency-Key, the same key starts only one run.
curl -X POST https://app.getprojectflow.com/hooks/flows/TENANT_ID/FLOW_ID/TOKEN \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-4711" \
-d '{"customer": {"name": "Acme"}, "amount": 120}'