webhooks

List the webhooks stored for a project, newest first, to find a webhook or its public URL; returns one page of webhooks, or every webhook when neither a limit nor a cursor is sent. Requires project.agents.read.

Arguments

  • projectReferenceID!required

    Project UUID or slug.

  • inputWebhooksInput

  • input.limitInt

    Maximum webhooks to return, 1 to 100. Without limit and cursor every webhook is returned.

  • input.cursorID

    The previous page's pageInfo.endCursor. Keep sortOrder the same across pages.

  • input.sortOrderWebhookSortOrder

    Creation order; default desc (newest first). Ties break by id ascending. One of asc, desc.

Responses

query Webhooks($projectReference: ID!) {  webhooks(projectReference: $projectReference) {    data {      id      projectId      name      source      promptTemplate      status      runtimeTargetKind      runtimeTargetEnvironmentId      runtimeTargetBranchId      definitionSource      sourceTriggerId      sourcePath      sourceHash      ingressId      webhookUrl      createdByUserId      enabledAt      disabledAt      disabledReason      createdAt      updatedAt    }    pageInfo {      hasNextPage      hasPreviousPage      startCursor      endCursor    }  }}
{  "data": {    "webhooks": {      "data": [        {          "id": "string",          "projectId": "string",          "name": "string",          "source": "string",          "promptTemplate": "string",          "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"        }      ],      "pageInfo": {        "hasNextPage": false,        "hasPreviousPage": false,        "startCursor": "string",        "endCursor": "string"      }    }  }}

The WebhookPage! in data.webhooks.