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

# List captured webhook events

> Returns up to 3 events captured while the source was in listen mode,
newest first. The setup wizard polls this endpoint.



## OpenAPI

````yaml https://megastream25-api.closebot.com/swagger/v1/swagger.json get /agency/source/{sourceId}/webhook-integration/events
openapi: 3.0.4
info:
  title: CloseBot API
  version: v1
servers:
  - url: https://api.closebot.com
    description: CloseBot API Endpoint
security:
  - Key: []
tags:
  - name: Account
  - name: AccountNotification
  - name: Agency
  - name: Analytics
  - name: Billing
  - name: Bot
  - name: BotMetric
  - name: BotSourceVariable
  - name: BotTemplate
  - name: BotTesting
  - name: Dashboard
  - name: Hierarchy
  - name: Lead
  - name: Leaderboard
  - name: Library
  - name: LiveDemo
  - name: Notification
  - name: Persona
  - name: Report
  - name: SmartFAQ
  - name: Source
  - name: SourceChannel
  - name: Webhook
paths:
  /agency/source/{sourceId}/webhook-integration/events:
    get:
      tags:
        - Source
      summary: List captured webhook events
      description: |-
        Returns up to 3 events captured while the source was in listen mode,
        newest first. The setup wizard polls this endpoint.
      parameters:
        - name: sourceId
          in: path
          description: The source ID.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/CapturedWebhookEventsResult'
            application/json:
              schema:
                $ref: '#/components/schemas/CapturedWebhookEventsResult'
            text/json:
              schema:
                $ref: '#/components/schemas/CapturedWebhookEventsResult'
components:
  schemas:
    CapturedWebhookEventsResult:
      type: object
      properties:
        listening:
          type: boolean
        listenUntil:
          type: string
          format: date-time
          nullable: true
        events:
          type: array
          items:
            $ref: '#/components/schemas/CapturedWebhookEventDto'
          nullable: true
      additionalProperties: false
    CapturedWebhookEventDto:
      type: object
      properties:
        id:
          type: integer
          format: int32
        receivedAt:
          type: string
          format: date-time
        headersJson:
          type: string
          nullable: true
        bodyJson:
          type: string
          nullable: true
        truncated:
          type: boolean
      additionalProperties: false
  securitySchemes:
    Key:
      type: apiKey
      description: CloseBot API Key Authorization
      name: X-CB-KEY
      in: header

````