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

# List sent email events for a campaign (paginated)



## OpenAPI

````yaml /openapi.json get /campaigns/{id}/sent_email_events
openapi: 3.0.3
info:
  title: Pocketflows API
  version: 0.0.4
servers:
  - url: https://api.pocketflows.com
    description: Production server
security:
  - HttpBasicAuth: []
paths:
  /campaigns/{id}/sent_email_events:
    get:
      tags:
        - Sent email events
      summary: List sent email events for a campaign (paginated)
      parameters:
        - in: path
          name: id
          schema:
            type: string
          description: The ID of the campaign
          required: true
        - in: query
          name: after
          schema:
            type: string
          description: >-
            Cursor returned from a previous page's `page_info.end_cursor`.
            Returns the results older than the row it points to, which is
            excluded. Cannot be combined with `before`.
          required: false
        - in: query
          name: before
          schema:
            type: string
          description: >-
            Cursor returned from a previous page's `page_info.start_cursor`.
            Returns the results newer than the row it points to, which is
            excluded, starting with the ones closest to it. Cannot be combined
            with `after`.
          required: false
      responses:
        '200':
          description: >-
            A paginated list of the events across all of the campaign's sent
            emails
          content:
            application/json:
              schema:
                type: object
                properties:
                  page_info:
                    type: object
                    properties:
                      has_next_page:
                        type: boolean
                        description: >-
                          Whether there are older results after this page.
                          Always `false` when paging with `before`.
                      end_cursor:
                        type: string
                        nullable: true
                        description: >-
                          Cursor of the oldest result on this page. Pass it as
                          `after` to fetch the next older page. Null when the
                          page is empty.
                      has_previous_page:
                        type: boolean
                        description: >-
                          Whether there are newer results before this page. Only
                          computed when paging with `before`; otherwise `false`.
                      start_cursor:
                        type: string
                        nullable: true
                        description: >-
                          Cursor of the newest result on this page. Store it and
                          pass it as `before` later to fetch only results
                          created since. Null when the page is empty.
                    required:
                      - has_next_page
                      - end_cursor
                      - has_previous_page
                      - start_cursor
                    description: Pagination metadata
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SentEmailEvent'
                    description: The sent email events on this page, newest first
                required:
                  - page_info
                  - data
components:
  schemas:
    SentEmailEvent:
      type: object
      properties:
        id:
          type: string
          description: The ID of the sent email event
        sent_email:
          type: string
          description: The ID of the sent email the event belongs to
        event_type:
          type: string
          enum:
            - delivered
            - opened
            - clicked
            - soft_bounced
            - hard_bounced
            - spam_report
            - other
          description: The type of the sent email event
        created_at:
          type: string
          description: The time when the sent email event was created in ISO 8601 format
      required:
        - id
        - sent_email
        - event_type
        - created_at
      title: The Sent Email Event object
  securitySchemes:
    HttpBasicAuth:
      type: http
      scheme: basic

````

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