List source webhooks

http
GET /projects/{project_reference}/source-webhooks

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.

Parameters

NameInRequiredDescription
project_referencepathYes
runtime_target_kindqueryRuntime target: main_branch, environment or preview_branch. Must match source_target_kind when both are sent.
target_environment_idqueryEnvironment id, for the environment source target.
target_branch_idqueryBranch id, for the preview_branch source target.
source_target_kindquerySource to read: project, main_branch, environment or preview_branch. Defaults to runtime_target_kind, then main_branch.

Responses

StatusDescription
200Webhooks declared in project source
400invalid_input: invalid source selection
401unauthenticated
403forbidden: a project member without project.agents.read
404not_found: project or source target not found or not visible
500internal
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly