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

# List Recent Webhook Executions

> List recent runs across all your webhooks.

Filter by time with `hours` (up to 720) or `days` (up to 30). If you set both, `hours` takes precedence.


## OpenAPI

````yaml openapi/scheduler.yaml GET /agent-webhooks/executions/recent
openapi: 3.0.3
info:
  title: Lyzr Scheduler and Webhooks API
  version: 1.1.0
  description: >-
    Scheduler service for running Lyzr agents on cron schedules, triggering
    agents from external systems through signed webhooks, and calling arbitrary
    HTTP endpoints on a cron schedule.
servers:
  - url: https://scheduler.studio.lyzr.ai
security:
  - ApiKeyAuth: []
tags:
  - name: Schedules
    description: Run an agent on a cron schedule.
  - name: Agent Webhooks
    description: Create and manage webhook URLs that trigger an agent.
  - name: Webhook Trigger
    description: Public endpoint external services call to trigger an agent.
  - name: HTTP Schedules
    description: Call any HTTP endpoint on a cron schedule.
paths:
  /agent-webhooks/executions/recent:
    get:
      tags:
        - Agent Webhooks
      summary: List recent webhook executions
      description: List recent runs across all your webhooks.
      parameters:
        - name: webhook_id
          in: query
          required: false
          description: Filter by webhook ID.
          schema:
            type: string
        - name: agent_id
          in: query
          required: false
          description: Filter by agent ID.
          schema:
            type: string
        - $ref: '#/components/parameters/Success'
        - $ref: '#/components/parameters/Hours'
        - $ref: '#/components/parameters/Days'
        - $ref: '#/components/parameters/Skip'
        - $ref: '#/components/parameters/Limit'
        - $ref: '#/components/parameters/Page'
      responses:
        '200':
          description: A page of webhook execution logs.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookExecutionLogList'
        '403':
          $ref: '#/components/responses/Forbidden'
        '422':
          $ref: '#/components/responses/ValidationError'
components:
  parameters:
    Success:
      name: success
      in: query
      required: false
      description: >-
        Filter by outcome. `true` returns successful executions only, `false`
        returns failed executions only.
      schema:
        type: boolean
    Hours:
      name: hours
      in: query
      required: false
      description: >-
        Only return executions from the last N hours (1-720). Takes precedence
        over `days` when both are set.
      schema:
        type: integer
        minimum: 1
        maximum: 720
    Days:
      name: days
      in: query
      required: false
      description: Only return executions from the last N days (1-30).
      schema:
        type: integer
        minimum: 1
        maximum: 30
    Skip:
      name: skip
      in: query
      required: false
      description: Number of records to skip.
      schema:
        type: integer
        minimum: 0
        default: 0
    Limit:
      name: limit
      in: query
      required: false
      description: Maximum number of records to return (1-100).
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 50
    Page:
      name: page
      in: query
      required: false
      description: >-
        Page number, starting at 1. When set, overrides `skip` with `(page - 1)
        * limit`.
      schema:
        type: integer
        minimum: 1
  schemas:
    WebhookExecutionLogList:
      type: object
      required:
        - executions
        - total
      properties:
        executions:
          type: array
          items:
            $ref: '#/components/schemas/WebhookExecutionLogResponse'
        total:
          type: integer
        pages:
          type: integer
          default: 0
          description: Total number of pages for the given `limit` (0 when `total` is 0).
    WebhookExecutionLogResponse:
      type: object
      required:
        - id
        - webhook_id
        - session_id
        - triggered_at
        - success
      properties:
        id:
          type: string
        webhook_id:
          type: string
        agent_id:
          type: string
          nullable: true
        session_id:
          type: string
          description: Agent session ID for this run.
        triggered_at:
          type: string
          format: date-time
        success:
          type: boolean
        payload:
          type: object
          nullable: true
          description: JSON payload received by the webhook.
        response_status:
          type: integer
          nullable: true
          description: HTTP status code returned by the agent inference call.
        response_output:
          type: string
          nullable: true
          description: Agent response.
        error_message:
          type: string
          nullable: true
          description: Error details when `success` is `false`.
    Error:
      type: object
      properties:
        detail:
          type: string
          example: Schedule not found
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            type: object
            properties:
              loc:
                type: array
                description: Path to the invalid field.
                items:
                  oneOf:
                    - type: string
                    - type: integer
              msg:
                type: string
                description: Human-readable error message.
              type:
                type: string
                description: Error type identifier.
  responses:
    Forbidden:
      description: The `x-api-key` header is missing or the key is invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            missing:
              summary: Missing API key
              value:
                detail: API key missing
            invalid:
              summary: Invalid API key
              value:
                detail: Invalid Permission
    ValidationError:
      description: The request failed validation. The body lists each invalid field.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HTTPValidationError'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Lyzr API key. Required on every endpoint except Trigger Webhook.

````