> ## 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 trigger executions

{% 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/triggers/{triggerId}/executions`

Lists executions for a trigger.

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

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

  The trigger ID to list executions from.

  {% hr /%}

  **filter**: `string`

  Optional. Filter expression.

  {% hr /%}

  **page_size**: `integer`

  The maximum number of executions to return per page.

  {% hr /%}

  **page_token**: `string`

  A page token from a previous call to list trigger executions.

  {% /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/triggers/$TRIGGER_ID/executions" \
    -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" %}
  {% details %}
  {% summary %}
  **trigger_executions**: `TriggerExecution array`

  The list of trigger executions.

  {% /summary %}

  **id**: {% mark %}required{% /mark %} `string`

  Output only. Identifier. The ID of the trigger execution.

  **trigger_id**: {% mark %}required{% /mark %} `string`

  Output only. Identifier. The ID of the trigger that created this execution.

  **scheduled_time**: `string`

  Output only. The time when the execution was scheduled to run.

  **start_time**: `string`

  Output only. The time when the execution started.

  **end_time**: `string`

  Output only. The time when the execution finished.

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

  Output only. The status of the execution.

  {% /summary %}

  Possible values:

  - `in_progress`: The execution is currently in progress.
  - `completed`: The execution completed successfully.
  - `failed`: The execution failed.
  - `skipped`: The execution was skipped (e.g., previous execution still running).
  - `timed_out`: The execution timed out.

  {% /details %}

  **interaction_id**: `string`

  Output only. The ID of the interaction created by this execution, if any.

  **environment_id**: `string`

  Output only. The environment ID used for the execution.

  **error**: `string`

  Output only. The error message if the execution failed.

  {% /details %}

  {% hr /%}

  **next_page_token**: `string`

  A token to retrieve the next page of trigger executions. Pass it as `page_token` in the next request. If empty, there are no more pages.

  {% /section %}

  {% /left-column %}

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

  ```json
  {
    "trigger_executions": [
      {
        "id": "string",
        "trigger_id": "string",
        "scheduled_time": "string",
        "start_time": "string",
        "end_time": "string",
        "status": "in_progress",
        "interaction_id": "string",
        "environment_id": "string",
        "error": "string"
      }
    ],
    "next_page_token": "string"
  }
  ```

  {% /right-column %}

{% /two-column-layout %}

