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

# Get Execution History

> Get execution history for a trigger with filtering and pagination.

Returns paginated execution history for the specified trigger, including
success/failure status, execution times, and error messages. Supports
filtering by status and time range.

Args:
    trigger_id: The unique identifier of the trigger
    page: Page number for pagination
    page_size: Number of executions per page
    status: Optional status filter (success, failed, timeout)
    start_time: Optional start time filter
    end_time: Optional end time filter
    user_context: Authentication context
    trigger_service: Injected trigger service

Returns:
    Paginated execution history

Raises:
    HTTPException: If trigger not found or invalid parameters



## OpenAPI

````yaml /api-reference/openapi.json get /v1/triggers/{trigger_id}/executions
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/triggers/{trigger_id}/executions:
    get:
      tags:
        - v1
        - protected
        - triggers
      summary: Get Execution History
      description: |-
        Get execution history for a trigger with filtering and pagination.

        Returns paginated execution history for the specified trigger, including
        success/failure status, execution times, and error messages. Supports
        filtering by status and time range.

        Args:
            trigger_id: The unique identifier of the trigger
            page: Page number for pagination
            page_size: Number of executions per page
            status: Optional status filter (success, failed, timeout)
            start_time: Optional start time filter
            end_time: Optional end time filter
            user_context: Authentication context
            trigger_service: Injected trigger service

        Returns:
            Paginated execution history

        Raises:
            HTTPException: If trigger not found or invalid parameters
      operationId: get_execution_history_v1_triggers__trigger_id__executions_get
      parameters:
        - in: path
          name: trigger_id
          required: true
          schema:
            format: uuid
            title: Trigger Id
            type: string
        - description: Page number
          in: query
          name: page
          required: false
          schema:
            default: 1
            description: Page number
            minimum: 1
            title: Page
            type: integer
        - description: Number of executions per page
          in: query
          name: page_size
          required: false
          schema:
            default: 50
            description: Number of executions per page
            maximum: 100
            minimum: 1
            title: Page Size
            type: integer
        - description: Filter by execution status (success, failed, timeout)
          in: query
          name: status
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter by execution status (success, failed, timeout)
            title: Status
        - description: Filter executions after this time
          in: query
          name: start_time
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: Filter executions after this time
            title: Start Time
        - description: Filter executions before this time
          in: query
          name: end_time
          required: false
          schema:
            anyOf:
              - format: date-time
                type: string
              - type: 'null'
            description: Filter executions before this time
            title: End Time
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecutionHistoryResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ExecutionHistoryResponse:
      description: Response model for paginated execution history.
      properties:
        executions:
          items:
            $ref: '#/components/schemas/TriggerExecutionResponse'
          title: Executions
          type: array
        has_next:
          title: Has Next
          type: boolean
        page:
          title: Page
          type: integer
        page_size:
          title: Page Size
          type: integer
        total:
          title: Total
          type: integer
      required:
        - executions
        - total
        - page
        - page_size
        - has_next
      title: ExecutionHistoryResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    TriggerExecutionResponse:
      description: Response model for trigger execution data.
      properties:
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        executed_at:
          title: Executed At
          type: string
        execution_time_ms:
          title: Execution Time Ms
          type: integer
        id:
          format: uuid
          title: Id
          type: string
        run_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Run Id
        status:
          title: Status
          type: string
        task_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Task Id
        trigger_data:
          additionalProperties: true
          title: Trigger Data
          type: object
        trigger_id:
          format: uuid
          title: Trigger Id
          type: string
        workflow_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Workflow Id
      required:
        - id
        - trigger_id
        - executed_at
        - status
        - execution_time_ms
        - trigger_data
      title: TriggerExecutionResponse
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````