> ## 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 the sent emails for a trigger (paginated)



## OpenAPI

````yaml /openapi.json get /triggers/{id}/sent_emails/paginated
openapi: 3.0.3
info:
  title: Pocketflows API
  version: 0.0.4
servers:
  - url: https://api.pocketflows.com
    description: Production server
security:
  - HttpBasicAuth: []
paths:
  /triggers/{id}/sent_emails/paginated:
    get:
      tags:
        - Sent emails
      summary: List the sent emails for a trigger (paginated)
      parameters:
        - in: path
          name: id
          schema:
            type: string
          description: The ID of the trigger
          required: true
        - in: query
          name: after
          schema:
            type: string
          description: >-
            Cursor returned from the previous page's `page_info.end_cursor`. The
            row it points to is excluded from the result.
          required: false
      responses:
        '200':
          description: A paginated list of the trigger's sent emails
          content:
            application/json:
              schema:
                type: object
                properties:
                  page_info:
                    type: object
                    properties:
                      has_next_page:
                        type: boolean
                        description: Whether there are more results after this page
                      end_cursor:
                        type: string
                        nullable: true
                        description: >-
                          Cursor to pass as `after` on the next request. Null
                          when the page is empty.
                    required:
                      - has_next_page
                      - end_cursor
                    description: Pagination metadata
                  total_count:
                    type: integer
                    description: >-
                      Total number of records matching the filters (across all
                      pages). Only present when `expand[]=total_count` is
                      requested; opt-in because COUNT(*) is O(N) on large
                      filtered sets.
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SentEmail'
                    description: The sent emails on this page, newest first
                required:
                  - page_info
                  - data
components:
  schemas:
    SentEmail:
      type: object
      properties:
        id:
          type: string
          description: The ID of the campaign
        created_at:
          type: string
          description: The time when the campaign was created in ISO 8601 format
        customer:
          type: string
          nullable: true
          description: The ID of the customer that was sent the email
        subject:
          type: string
          description: The subject of the email
        sent_at:
          type: string
          nullable: true
          description: The time when the email was sent in ISO 8601 format
        failed_at:
          type: string
          nullable: true
          description: The time when the email failed to send in ISO 8601 format
        failed_reason:
          type: string
          nullable: true
          description: The reason the email failed to send
        to_email_address:
          type: string
          nullable: true
          description: The email address the email was sent to
        sendgrid_message_id:
          type: string
          nullable: true
          description: Sendgrid's returned message ID
        paubox_message_id:
          type: string
          nullable: true
          description: Paubox's returned message ID
        postmark_message_id:
          type: string
          nullable: true
          description: Postmark's returned message ID
      required:
        - id
        - created_at
        - customer
        - subject
        - sent_at
        - failed_at
        - failed_reason
        - to_email_address
      title: The Sent Email object
  securitySchemes:
    HttpBasicAuth:
      type: http
      scheme: basic

````

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