Read one webhook by its ID to inspect its target, prompt template, event filter and status; returns the webhook with its public URL and never its secret. Requires project.agents.read.
Arguments
projectReferenceID!requiredProject UUID or slug.
webhookIdID!requiredThe webhook id. A missing webhook fails with not_found.
Responses
query Webhook($projectReference: ID!, $webhookId: ID!) { webhook(projectReference: $projectReference, webhookId: $webhookId) { id projectId name source target { kind id conversationMode conversationId } promptTemplate eventFilter { mode } status runtimeTargetKind runtimeTargetEnvironmentId runtimeTargetBranchId definitionSource sourceTriggerId sourcePath sourceHash ingressId webhookUrl createdByUserId enabledAt disabledAt disabledReason createdAt updatedAt }}{ "data": { "webhook": { "id": "string", "projectId": "string", "name": "string", "source": "string", "target": { "kind": "agent", "id": "string", "conversationMode": "create_new", "conversationId": "string" }, "promptTemplate": "string", "eventFilter": { "mode": "all" }, "status": "draft", "runtimeTargetKind": "main_branch", "runtimeTargetEnvironmentId": "string", "runtimeTargetBranchId": "string", "definitionSource": "manual", "sourceTriggerId": "string", "sourcePath": "string", "sourceHash": "string", "ingressId": "string", "webhookUrl": "https://example.com", "createdByUserId": "string", "enabledAt": "2026-01-01T00:00:00Z", "disabledAt": "2026-01-01T00:00:00Z", "disabledReason": "string", "createdAt": "2026-01-01T00:00:00Z", "updatedAt": "2026-01-01T00:00:00Z" } }}The Webhook! in data.webhook.