> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pocketflows.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List the trigger executions created by an event



## OpenAPI

````yaml /openapi.json get /events/{id}/trigger_executions
openapi: 3.0.3
info:
  title: Pocketflows API
  version: 0.0.4
servers:
  - url: https://api.pocketflows.com
    description: Production server
security:
  - HttpBasicAuth: []
paths:
  /events/{id}/trigger_executions:
    get:
      tags:
        - Trigger executions
      summary: List the trigger executions created by an event
      parameters:
        - in: path
          name: id
          schema:
            type: string
          description: The ID of the event
          required: true
        - in: query
          name: after
          schema:
            type: string
          description: >-
            Cursor returned from the previous page's `page_info.end_cursor`. The
            row it points to is excluded from the result.
          required: false
        - in: query
          name: q
          schema:
            type: string
          description: >-
            Case-insensitive substring match against the execution customer's
            full_name, email_address, or phone_number.
          required: false
      responses:
        '200':
          description: >-
            A paginated list of the trigger executions the event created. Empty
            until the event is processed
          content:
            application/json:
              schema:
                type: object
                properties:
                  page_info:
                    type: object
                    properties:
                      has_next_page:
                        type: boolean
                        description: Whether there are more results after this page
                      end_cursor:
                        type: string
                        nullable: true
                        description: >-
                          Cursor to pass as `after` on the next request. Null
                          when the page is empty.
                    required:
                      - has_next_page
                      - end_cursor
                    description: Pagination metadata
                  total_count:
                    type: integer
                    description: >-
                      Total number of records matching the filters (across all
                      pages). Only present when `expand[]=total_count` is
                      requested; opt-in because COUNT(*) is O(N) on large
                      filtered sets.
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/TriggerExecution'
                    description: The trigger executions on this page, newest first
                required:
                  - page_info
                  - data
components:
  schemas:
    TriggerExecution:
      type: object
      properties:
        id:
          type: string
          description: The ID of the trigger execution
        trigger:
          type: string
          description: The ID of the trigger (expandable to the full trigger object)
        event:
          type: string
          nullable: true
          description: >-
            The ID of the tracked event that created the execution (expandable
            to the full event object). `null` for executions created by internal
            events
        customer:
          type: string
          description: >-
            The ID of the customer executing through the trigger (expandable to
            the full customer object)
        scheduled_at:
          type: string
          nullable: true
          description: The scheduled time for the next step of the trigger execution
        step_count:
          type: integer
          description: The index of the next step of the trigger to execute
        current_step_id:
          type: string
          nullable: true
          description: The ID of the current step
        status:
          type: string
          enum:
            - pending
            - in_progress
            - retrying
            - finished
            - failed
            - stopped
          description: The status of the execution
        failed_at:
          type: string
          nullable: true
          description: The time when the execution failed
        failed_reason:
          type: string
          nullable: true
          description: The reason for failure
        finished_at:
          type: string
          nullable: true
          description: The time when the execution finished
        finished_reason:
          type: string
          nullable: true
          description: The reason for finishing
        stopped_at:
          type: string
          nullable: true
          description: The time when the execution was stopped
        started_at:
          type: string
          nullable: true
          description: The time when the execution started processing in ISO 8601 format
        created_at:
          type: string
          description: >-
            The time the execution was created — i.e. when the customer was
            enrolled in the trigger — in ISO 8601 format
      required:
        - id
        - trigger
        - event
        - customer
        - scheduled_at
        - step_count
        - current_step_id
        - status
        - failed_at
        - failed_reason
        - finished_at
        - finished_reason
        - stopped_at
        - started_at
        - created_at
      title: The Trigger Execution object
  securitySchemes:
    HttpBasicAuth:
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.