List the webhooks declared in the source files of a project, a branch or an environment to see what a deployment creates; returns the declared webhooks, the discovery diagnostics and the source files that could not be read, without pagination. Requires project.agents.read.
Arguments
projectReferenceID!requiredProject UUID or slug.
inputSourceWebhooksInputinput.sourceTargetKindWebhookSourceTargetKindThe source to read; default runtimeTargetKind, else project. One of
project,main_branch,environment,preview_branch.input.runtimeTargetKindWebhookRuntimeTargetKindOne of
main_branch,environment,preview_branch.input.targetEnvironmentIdIDRequired with runtimeTargetKind environment.
input.targetBranchIdIDRequired with runtimeTargetKind preview_branch.
Responses
query SourceWebhooks($projectReference: ID!) { sourceWebhooks(projectReference: $projectReference) { data { id sourceTriggerId name description promptTemplate eventFilter definitionSource sourcePath sourceHash editMode } diagnostics { kind sourceKind sourcePath sourceId code message details } errors { kind sourceKind sourcePath sourceId code message details } }}{ "data": { "sourceWebhooks": { "data": [ { "id": "string", "sourceTriggerId": "string", "name": "string", "description": "string", "promptTemplate": "string", "eventFilter": {}, "definitionSource": "manual", "sourcePath": "string", "sourceHash": "string", "editMode": "structured" } ], "diagnostics": [ { "kind": "string", "sourceKind": "string", "sourcePath": "string", "sourceId": "string", "code": "string", "message": "string", "details": {} } ], "errors": [ { "kind": "string", "sourceKind": "string", "sourcePath": "string", "sourceId": "string", "code": "string", "message": "string", "details": {} } ] } }}The SourceWebhookList! in data.sourceWebhooks.