pm_create_webhook
Create an outgoing webhook subscription for the current workspace. The response includes a one-time secret (HMAC-SHA256 key used to verify the X-Webhook-Signature-256 header on delivery). SAVE THIS SECRET IMMEDIATELY — subsequent reads (pm_get_webhook / pm_list_webhooks) do NOT return it; the only way to get a new one is to delete and recreate the webhook. eventTypes are dash-cased names (e.g. "task-created", "task-status-changed", "comment-added"); the catalog has 130+ entries — common ones include task-created/deleted, task-status-changed, task-priority-changed, task-assignee-added/removed, task-due-date-updated, comment-added/updated, reaction-added, custom-field-value-updated, space-deleted, folder-deleted, task-list-deleted, workspace-user-role-changed. Optionally narrow delivery to a single entity by setting scopeType (SPACE / FOLDER / TASK_LIST / TASK) plus scopeEntityIdentifier; omit both for workspace-wide delivery. Outgoing payload envelope is {version, id, type, timestamp, workspaceIdentifier, data}; retries fire at +0s / +1min / +5min (3 attempts total) and treat both 4xx and 5xx as failures. API-key scope: webhooks:write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | HTTPS endpoint that will receive POSTs | |
| name | No | Human-readable label for the webhook | |
| account | No | Multi-account auth only: name of the account from X-Dutify-Accounts to use for this call. Ignored in single-account mode (X-API-Key header). When multiple accounts are configured and this is omitted, the call fails with ACCOUNT_REQUIRED listing the available names. list_accounts never requires a selection. | |
| scopeType | No | Optional scope narrowing; requires scopeEntityIdentifier when set | |
| workspace | No | Workspace identifier or exact name for this call. Overrides the configured workspace. For personal keys, discover candidates with list_workspaces and select explicitly. Does not change other calls or expand a workspace key's access. | |
| eventTypes | Yes | Dash-cased event names, e.g. ["task-created", "comment-added"] | |
| scopeEntityIdentifier | No | Identifier of the scoping entity (required when scopeType is set) |