sourceWebhooks

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!required

    Project UUID or slug.

  • inputSourceWebhooksInput

  • input.sourceTargetKindWebhookSourceTargetKind

    The source to read; default runtimeTargetKind, else project. One of project, main_branch, environment, preview_branch.

  • input.runtimeTargetKindWebhookRuntimeTargetKind

    One of main_branch, environment, preview_branch.

  • input.targetEnvironmentIdID

    Required with runtimeTargetKind environment.

  • input.targetBranchIdID

    Required 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.