ProjectFlow Pre-launch

Webhooks

Webhooks send events to your URL by HTTPS POST as soon as something changes.

On this page
  1. Setting up
  2. Events
  3. Payload
  4. Verifying signatures
  5. Delivery and retries
  6. Webhooks in Flows

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

EventDescription
project.createdA project was created.
project.updatedA project changed (rename, members, status within active states).
project.archivedA project moved to Completed or Canceled.
project.deletedA project was deleted.
task.createdA task was created.
task.updatedA task changed (status, title, due date, priority, unassigned).
task.completedA task was completed.
task.reopenedA completed task was reopened.
task.assignedA task was assigned.
task.deletedA task was deleted.
milestone.createdA milestone was created.
milestone.updatedA milestone changed.
milestone.completedA milestone was completed.
comment.createdA comment was added.
webhook.testSent only by "Send test" (UI) or POST /webhooks/{webhookId}/test.

Payload

Every delivery is a JSON object with this structure:

  • idstringrequired

    Stable across retries; deduplicate by it.

  • typeobjectrequired

    Allowed values: project.created

  • occurredAtstring (date-time)required
  • tenantIdstringrequired
  • actorWebhookActorrequired
    Show 3 attributes
    • typestringrequired

      integration covers API tokens and AI clients.

      Allowed values: user integration flow

    • idstring | nullrequired

      User id, token creator uid or flow id; null when unknown.

    • tokenIdstring

      Set for workspace API tokens. Ignore events with your own tokenId (echo protection).

  • dataobjectrequired

    Current state of the object at delivery time (deleted objects: last known title).

    Show 10 attributes
    • idstring
    • projectIdstring
    • titlestring
    • statusstring | null
    • dueDatestring
    • assigneeIdsarray of string
    • externalExternalMap

      External references by source. Source keys match ^[a-z][a-z0-9_-]{1,31}$, max 5.

      Show 1 attribute
      • <key>External

        External reference to an object in another system.

        Show 5 attributes
        • customerIdstring
        • refstringmax 200 characters
        • labelstringmax 120 characters
        • urlstring (uri)max 2048 characters

          http or https.

        • metaobject

          Flat object, max 20 keys; values string (max 500), number, boolean or null.

    • urlstring (uri)
    • targetTypestring

      Comments only.

    • targetIdstring

      Comments only.

  • changesobject

    Changed fields, { from, to } each.

    Show 1 attribute
    • <key>object
      Show 2 attributes
      • fromobject
      • toobject
  • actor.type is user, integration or flow. For tokens, the actor carries tokenId: ignore events with your own tokenId to avoid loops.
  • data is the state of the object at delivery time. For deleted objects it holds the last known title.
PayloadJSON
{
  "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" } }
}
HeadersHTTP
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 v1 values; accept the request if one matches.
Verify the signature
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);
});

Delivery and retries

  • Delivery is at least once, without ordering guarantee: dedupe by event ID and decide using occurredAt or updatedAt.
  • Success is a 2xx within 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-Signature header 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.…}}. With Idempotency-Key, the same key starts only one run.
Trigger a flowBash
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}'

↑↓ to select, Enter to open, Esc to close