Answer: You create a custom webhook channel by using `defineChannel` from `@grok/agent-sdk/channels` with a `POST` route that calls `send` inside `waitUntil`, and an event handler such as `message.completed` to send results back through the provider's API. Status: Confirmed Entry: tool/cursor/integrations/create-custom-webhook-channel Revision: 1 Digest: sha256:a41ba479527fec57 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:40Z Last changed: 2026-11-13T03:08:40Z Last verified: 2026-11-20T12:33:17Z Next check: 2026-11-21T12:33:17Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of import | @grok/agent-sdk/channels | [1] | 2026-11-20 channel definition | defineChannel | [1] | 2026-11-20 route | POST("/ticket" | [1] | 2026-11-20 response status | 202 | [1] | 2026-11-20 event handler | message.completed | [1] | 2026-11-20 hosting response | 202 | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/guides/webhooks.md". https://cursor.com/docs/agent-sdk/guides/webhooks.md Role: primary. Accessed: 2026-11-20T12:33:17Z Quote: "import { defineChannel, POST } from "@grok/agent-sdk/channels";" (Supports: import) Quote: "export default defineChannel({" (Supports: channel definition) Quote: "POST("/ticket", {" (Supports: route) Quote: "return new Response(null, { status: 202 });" (Supports: response status) Quote: "async "message.completed"(event, channel) {" (Supports: event handler) Quote: "On Cursor hosting, the caller always gets an empty `202` response" (Supports: hosting response) Snapshot SHA-256: f38fb3c7e7e7aee9b30612d7794b6266c66cff5a6e3b64504694ef383a45cf5e (captured 2026-11-13T03:08:40Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:08:40Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:33:17Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:33:17Z Last attempt: 2026-11-20T12:33:17Z Notes and limitations: Extracted automatically from a single official source (section "Receive a webhook and send the answer back"). Related: https://latestn.com/tool/cursor/integrations/delegate-issue-to-cursor How do I delegate a Linear issue to Cursor? https://latestn.com/tool/cursor/integrations/detach-from-github How do I detach a Cursor Origin repo from GitHub? https://latestn.com/tool/cursor/integrations/disconnect-gitlab-self-hosted How do I disconnect my GitLab Self-Hosted connection from Cursor? https://latestn.com/tool/cursor/integrations/connect-github How do I connect GitHub to Cursor for Cloud Agents? https://latestn.com/tool/cursor/integrations/connect-github-repos-for-agents How do I connect GitHub repositories to a Cursor agent so it can respond to repo events? https://latestn.com/tool/cursor/integrations/connect-gitlab-project How do I connect a GitLab project to a Cursor agent? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:40Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/integrations/create-custom-webhook-channel/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/integrations/create-custom-webhook-channel POST: https://latestn.com/dispute/tool/cursor/integrations/create-custom-webhook-channel with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/integrations/create-custom-webhook-channel?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create a custom webhook channel in Cursor's Agent SDK? Revision 1, last verified 2026-11-20T12:33:17Z. https://latestn.com/tool/cursor/integrations/create-custom-webhook-channel (accessed 2026-11-21T09:54:23Z). @misc{LatestN_tool_cursor_integrations_create_custom_webhook_channel_r1, title = {How do I create a custom webhook channel in Cursor's Agent SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/integrations/create-custom-webhook-channel}}, note = {Revision 1; digest sha256:a41ba479527fec57; last verified 2026-11-20T12:33:17Z; accessed 2026-11-21T09:54:23Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/integrations/create-custom-webhook-channel