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

# Poll Pull Events



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/pull/subscriptions/{subscription_id}/events
openapi: 3.1.0
info:
  title: wazzapi Public API
  description: >-
    Public API surface for external API-key clients. Only stable /api/v1
    endpoints are included.


    ## Webhook deliveries

    This reference also includes the webhook requests Wazzapi sends to your
    endpoint for incoming messages, message status updates, and device status
    changes. See the `Incoming webhooks` section in the sidebar for headers,
    payload fields, and concrete examples.
  version: 1.0.0
servers: []
security: []
tags:
  - name: Incoming webhooks
    description: >-
      POST deliveries that Wazzapi sends to your webhook endpoint after you
      subscribe to supported events. Verify the signature against the raw body
      and return a 2xx response quickly.
paths:
  /api/v1/pull/subscriptions/{subscription_id}/events:
    get:
      tags:
        - pull
      summary: Poll Pull Events
      operationId: poll_pull_events_api_v1_pull_subscriptions__subscription_id__events_get
      parameters:
        - name: subscription_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Subscription Id
        - name: offset
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
                minimum: 0
              - type: 'null'
            title: Offset
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 100
            title: Limit
        - name: timeout
          in: query
          required: false
          schema:
            type: integer
            maximum: 60
            minimum: 0
            default: 0
            title: Timeout
        - name: Authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - name: X-Wazzapi-Poller-ID
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Wazzapi-Poller-Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PullEventBatchResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PullEventBatchResponse:
      properties:
        events:
          items:
            $ref: '#/components/schemas/PullEventEnvelope'
          type: array
          title: Events
        next_offset:
          type: integer
          title: Next Offset
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
        - events
        - next_offset
        - has_more
      title: PullEventBatchResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PullEventEnvelope:
      properties:
        schema_version:
          type: integer
          title: Schema Version
        id:
          type: string
          format: uuid
          title: Id
        event_id:
          type: string
          title: Event Id
        event_type:
          type: string
          title: Event Type
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        pull_subscription_id:
          type: string
          format: uuid
          title: Pull Subscription Id
        sequence:
          type: integer
          title: Sequence
        data:
          additionalProperties: true
          type: object
          title: Data
      type: object
      required:
        - schema_version
        - id
        - event_id
        - event_type
        - timestamp
        - organization_id
        - pull_subscription_id
        - sequence
        - data
      title: PullEventEnvelope
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````