feat(task_due): subscribe via the public Action API v2#19
Open
johnxie wants to merge 1 commit into
Open
Conversation
…cribeWebhook)
Move the task_due trigger off the internal /webhooks/zapier/{subscribe,unsubscribe}
routes onto the public, documented Action API v2:
- performSubscribe -> POST /api/v2/subscribeWebhook { targetUrl, triggerType:'task.due' }
- performUnsubscribe -> POST /api/v2/unsubscribeWebhook { hookId } (was DELETE + query param)
- account-level: the public endpoint ignores scope, so space/project inputs no longer
narrow the subscription (kept for forward-compat once scoped subscriptions ship)
- requires a paid plan (Pro+); free/Starter receive 402
- performList still uses the internal sample route (no public equivalent yet)
Depends on taskcade#26765 (subscribeWebhook endpoint + paywall), now merged.
README: drop the 'in progress' note; bump 1.1.0 -> 1.2.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the
task_duetrigger off Taskade's internal/webhooks/zapier/*routes onto the public, documented Action API v2 — so the trigger now rides the same surface any third party can use.POST /webhooks/zapier/subscribe{ hookUrl, triggerType:'TaskDue', spaceId, projectId }POST /api/v2/subscribeWebhook{ targetUrl, triggerType:'task.due' }DELETE /webhooks/zapier/unsubscribe?hookId=POST /api/v2/unsubscribeWebhook{ hookId }402), matching the in-app webhook gating.performListstill uses the internal sample route — the public API has no "list recent due tasks" sample endpoint yet (noted in code).Dependency
Requires
taskade/taskcade#26765(thePOST /api/v2/subscribeWebhookendpoint + paywall) — merged (f92f6623ed). Needs the deploy that ships it before this goes live in the Zapier app.Changes
src/triggers/taskDue.ts—performSubscribe/performUnsubscriberewired to the public endpoints.README.md— drop the "in progress" note; the subscription API is live (Beta, Pro+).package.json—1.1.0→1.2.0.