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

# List emails

> Get a paginated list of sent emails with optional filters



## OpenAPI

````yaml /openapi.json get /v1/emails
openapi: 3.0.3
info:
  title: Emailr API
  version: 1.0.0
servers:
  - url: https://api.emailr.dev
    description: Production
security: []
tags:
  - name: emails
    description: Email sending and management
  - name: contacts
    description: Contact management
  - name: templates
    description: Email template management
  - name: domains
    description: Domain verification and management
  - name: webhooks
    description: Webhook configuration
  - name: broadcasts
    description: Broadcast campaign management
  - name: segments
    description: Contact segmentation
paths:
  /v1/emails:
    get:
      tags:
        - emails
      summary: List emails
      description: Get a paginated list of sent emails with optional filters
      operationId: listEmails
      parameters:
        - schema:
            type: string
            default: '1'
            example: '1'
          required: false
          name: page
          in: query
        - schema:
            type: string
            default: '50'
            example: '50'
          required: false
          name: limit
          in: query
        - schema:
            type: string
            description: Filter by recipient email (partial match)
          required: false
          name: email
          in: query
        - schema:
            type: string
            description: Filter by broadcast ID
          required: false
          name: broadcast_id
          in: query
        - schema:
            type: string
            description: Filter by specific email ID
          required: false
          name: email_id
          in: query
        - schema:
            type: string
            description: Filter by sender domain
          required: false
          name: domain
          in: query
        - schema:
            type: string
            description: Filter by template ID
          required: false
          name: template_id
          in: query
        - schema:
            type: string
            description: Filter by status
          required: false
          name: status
          in: query
      responses:
        '200':
          description: List of emails with pagination
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Email'
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                      limit:
                        type: integer
                      total:
                        type: integer
                      pages:
                        type: integer
                    required:
                      - page
                      - limit
                      - total
                      - pages
                required:
                  - data
                  - pagination
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Email:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 123e4567-e89b-12d3-a456-426614174000
        organization_id:
          type: string
          format: uuid
        message_id:
          type: string
        from_email:
          type: string
          format: email
        to_email:
          type: string
          format: email
        subject:
          type: string
          nullable: true
        html_content:
          type: string
          nullable: true
        text_content:
          type: string
          nullable: true
        template_id:
          type: string
          nullable: true
          format: uuid
        status:
          type: string
          example: sent
        ses_message_id:
          type: string
          nullable: true
        broadcast_id:
          type: string
          nullable: true
          format: uuid
        metadata:
          type: object
          nullable: true
          additionalProperties: {}
        sent_at:
          type: string
          nullable: true
          format: date-time
        delivered_at:
          type: string
          nullable: true
          format: date-time
        opened_at:
          type: string
          nullable: true
          format: date-time
        clicked_at:
          type: string
          nullable: true
          format: date-time
        bounced_at:
          type: string
          nullable: true
          format: date-time
        complained_at:
          type: string
          nullable: true
          format: date-time
        scheduled_at:
          type: string
          nullable: true
          format: date-time
        created_at:
          type: string
          format: date-time
        thread_id:
          type: string
          nullable: true
          format: uuid
        parent_email_id:
          type: string
          nullable: true
          format: uuid
        attachments:
          type: array
          nullable: true
          items: {}
        clicked_links:
          type: array
          nullable: true
          items: {}
        opens:
          type: array
          nullable: true
          items: {}
      required:
        - id
        - organization_id
        - message_id
        - from_email
        - to_email
        - subject
        - html_content
        - text_content
        - template_id
        - status
        - ses_message_id
        - broadcast_id
        - metadata
        - sent_at
        - delivered_at
        - opened_at
        - clicked_at
        - bounced_at
        - complained_at
        - scheduled_at
        - created_at
        - thread_id
        - parent_email_id
        - attachments
        - clicked_links
        - opens
    Error:
      type: object
      properties:
        error:
          type: string
          example: An error occurred
        code:
          type: string
          example: VALIDATION_ERROR
        details: {}
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API key authentication. Use your API key as the bearer token.

````