> ## AI Agent Context
> - Full documentation index: https://aistudio.google.com/llms.txt
> - Gemini Docs MCP server (consistent live info): https://gemini-api-docs-mcp.dev
> - Coding agent skills & setup guide: https://aistudio.google.com/docs/coding-agents.md

# Listing webhooks

{% callout type="note" %}
  This API is in Beta. Endpoints are under `/v1beta/`.

{% /callout %}

{% mark class="http-get" %}{% icon name="south_west" /%}`GET`{% /mark %} `https://generativelanguage.googleapis.com/v1beta/webhooks`

Lists all Webhooks.

{% two-column-layout %}
  {% left-column %}
## Parameters  {% class="hide-from-toc" id="parameters" %}

  {% section class="api-ref-property-list" %}
  **page_size**: `integer`

  Optional. The maximum number of webhooks to return. The service may return fewer than this value. If unspecified, at most 50 webhooks will be returned. The maximum value is 1000.

  {% hr /%}

  **page_token**: `string`

  Optional. A page token, received from a previous call to list webhooks. Provide this to retrieve the subsequent page.

  {% /section %}

  {% /left-column %}

  {% right-column class="sticky" %}
  **Example request** {% class="example-heading" %}

  {% tabs %}
  {% tab label="REST" %}
  ```sh
  curl -X GET "https://generativelanguage.googleapis.com/v1beta/webhooks" \
    -H "x-goog-api-key: $GEMINI_API_KEY"
  ```

  {% /tab %}

  {% /tabs %}

  {% /right-column %}

{% /two-column-layout %}

{% two-column-layout %}
  {% left-column %}
## Response  {% class="hide-from-toc" id="response" %}

  {% section class="api-ref-property-list" %}
  **webhooks**: [`Webhook`](/api-reference/webhooks/list-webhooks#Resource:Webhook) `array`

  The webhooks.

  {% hr /%}

  **next_page_token**: `string`

  A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

  {% /section %}

  {% /left-column %}

  {% right-column class="sticky" %}
  **Example response** {% class="example-heading" %}

  ```json
  {
    "webhooks": [
      {
        "uri": "string",
        "subscribed_events": [
          "string"
        ],
        "name": "string",
        "create_time": "string",
        "update_time": "string",
        "signing_secrets": [
          {
            "truncated_secret": "string",
            "expire_time": "string"
          }
        ],
        "state": "enabled",
        "new_signing_secret": "string",
        "id": "string"
      }
    ],
    "next_page_token": "string"
  }
  ```

  {% /right-column %}

{% /two-column-layout %}

## Resources  {% class="hide-from-toc" id="resources" %}

### Webhook  {% class="hide-from-toc" id="Resource:Webhook" %}

A Webhook resource.

**Properties:**

{% section class="api-ref-property-list" %}
  **uri**: {% mark %}required{% /mark %} `string`

  The URI to which webhook events will be sent.

  {% hr /%}

  **subscribed_events**: {% mark %}required{% /mark %} `string array`

  The events that the webhook is subscribed to. Available events:

  - batch.succeeded
  - batch.expired
  - batch.failed
  - interaction.requires_action
  - interaction.completed
  - interaction.failed
  - video.generated

  {% hr /%}

  **name**: `string`

  Optional. The user-provided name of the webhook.

  {% hr /%}

  **create_time**: `string`

  Output only. The timestamp when the webhook was created.

  {% hr /%}

  **update_time**: `string`

  Output only. The timestamp when the webhook was last updated.

  {% hr /%}

  {% details %}
  {% summary %}
  **signing_secrets**: `SigningSecret array`

  Output only. The signing secrets associated with this webhook.

  {% /summary %}

  **truncated_secret**: `string`

  Output only. The truncated version of the signing secret.

  **expire_time**: `string`

  Output only. The expiration date of the signing secret.

  {% /details %}

  {% hr /%}

  {% details %}
  {% summary %}
  **state**: `string enum`

  Output only. The state of the webhook.

  {% /summary %}

  Possible values:

  - `enabled`: The webhook is enabled.
  - `disabled`: The webhook is disabled by the user.
  - `disabled_due_to_failed_deliveries`: The webhook is disabled due to failed deliveries.

  {% /details %}

  {% hr /%}

  **new_signing_secret**: `string`

  Output only. The new signing secret for the webhook. Only populated on create.

  {% hr /%}

  **id**: `string`

  Output only. The ID of the webhook.

{% /section %}

