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

# Poll a polling endpoint for its events

> For an endpoint created with `kind: polling`. Returns the events after `cursor`, oldest first, each the same body an HTTP endpoint is POSTed. Passing a cursor acknowledges every event up to it; without one, polling resumes after the last acknowledged. Pass an older cursor to read events again. Poll at least every 15 minutes while events are waiting, or the endpoint is reported as failing.



## OpenAPI

````yaml /api-reference/openapi.json get /webhook-endpoints/{id}/poll
openapi: 3.1.0
info:
  title: i10 API
  version: 0.0.0
  description: >-
    Transactional email API. Generated from the same Zod schemas the server
    validates with and the SDKs are built from, so the reference cannot drift
    from the implementation.
servers:
  - url: https://api.i10.tech
    description: Production
security: []
tags:
  - name: Emails
    description: Sending and retrieving transactional mail.
  - name: Domains
    description: Managing sending domains and DNS verification.
  - name: Webhooks
    description: Managing webhook endpoints, deliveries, replays and stats.
  - name: Webhook events
    description: Event payloads i10 signs and POSTs to your webhook endpoints.
  - name: Suppressions
    description: Managing workspace-wide suppressed recipient addresses.
  - name: Trusted templates
    description: Submitting email templates for deliverability review.
paths:
  /webhook-endpoints/{id}/poll:
    get:
      tags:
        - Webhooks
      summary: Poll a polling endpoint for its events
      description: >-
        For an endpoint created with `kind: polling`. Returns the events after
        `cursor`, oldest first, each the same body an HTTP endpoint is POSTed.
        Passing a cursor acknowledges every event up to it; without one, polling
        resumes after the last acknowledged. Pass an older cursor to read events
        again. Poll at least every 15 minutes while events are waiting, or the
        endpoint is reported as failing.
      operationId: pollWebhookEndpoint
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
        - schema:
            type: string
            pattern: ^\d{1,15}$
          required: false
          name: cursor
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 250
          required: false
          name: limit
          in: query
      responses:
        '200':
          description: The next page of events.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookPoll'
        '401':
          description: The API key is missing, malformed, or unknown.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The key is restricted to a domain, or is a test key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such endpoint for this API key's tenant.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Not a polling endpoint, or it is paused.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The cursor is malformed or ahead of the stream.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: Webhooks are not configured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    WebhookPoll:
      type: object
      properties:
        data:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
              type:
                type: string
                enum:
                  - email.sent
                  - email.delivered
                  - email.delivery_delayed
                  - email.bounced
                  - email.complained
                  - email.failed
                  - email.opened
                  - email.clicked
                  - email.unsubscribed
                  - webhook_endpoint.failing
                  - webhook_endpoint.disabled
                  - webhook_endpoint.recovered
                  - member.provisioned
                  - member.deprovisioned
                  - sso.connection.failed
                  - sso.certificate.expiring
              created_at:
                type: string
              sequence:
                type: integer
              data:
                type: object
                additionalProperties: {}
            required:
              - id
              - type
              - created_at
              - sequence
              - data
        next_cursor:
          type: string
        done:
          type: boolean
      required:
        - data
        - next_cursor
        - done
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        name:
          type: string
          enum:
            - validation_error
            - missing_required_field
            - invalid_access
            - not_found
            - method_not_allowed
            - rate_limit_exceeded
            - daily_quota_exceeded
            - monthly_quota_exceeded
            - test_quota_exceeded
            - invalid_from_address
            - invalid_to_address
            - domain_not_verified
            - idempotency_conflict
            - domain_already_exists
            - domain_already_claimed
            - plan_limit_exceeded
            - mail_signin_off
            - mailbox_already_exists
            - restricted_api_key
            - test_key_not_allowed
            - confirmation_required
            - sending_paused
            - sending_held
            - template_already_submitted
            - internal_server_error
        message:
          type: string
      required:
        - statusCode
        - name
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your i10 API key, prefixed `i10_live_` or `i10_test_`. Test keys can
        only send simulated emails (never delivered externally or counted toward
        limits), read test emails and list domains; all other endpoints refuse
        them with 403 `test_key_not_allowed`.

````

## Related topics

- [Send a webhook endpoint the events it never received](https://docs.i10.tech/api-reference/webhooks/replay-missing-webhook-endpoint-events.md)
- [Create a webhook endpoint](https://docs.i10.tech/api-reference/webhooks/create-webhook-endpoint.md)
- [Send a test event to a webhook endpoint](https://docs.i10.tech/api-reference/webhooks/send-webhook-endpoint-test-event.md)
- [Pause a webhook endpoint](https://docs.i10.tech/api-reference/webhooks/pause-webhook-endpoint.md)
- [List webhook endpoints](https://docs.i10.tech/api-reference/webhooks/list-webhook-endpoints.md)


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