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

# List Emails

> Fetch all emails for an agent with pagination



## OpenAPI

````yaml /api-reference/openapi.json get /v1/bot/email/readall
openapi: 3.0.0
info:
  title: BoostGPT API
  version: 1.0.0
  description: API for managing AI agents with memory capabilities
servers:
  - url: https://api.boostgpt.co
    description: Production server
security:
  - BearerAuth: []
tags:
  - name: Agent
    description: Operations for managing AI agents
  - name: Memory
    description: Operations for managing agent memory sources
  - name: Chat
    description: Operations for chatting with agents and managing conversations
  - name: Subscribers
    description: Operations for managing subscribers and leads
  - name: Tools
    description: Operations for managing agent tools and MCP server integrations
  - name: Analytics
    description: Operations for retrieving agent statistics and analytics
  - name: Heartbeat
    description: Operations for managing autonomous agent scheduling and execution
  - name: User Memory
    description: Operations for managing per-user memory entries
  - name: Email
    description: Operations for managing agent email functionality
  - name: Triggers
    description: Operations for firing proactive agent trigger events
  - name: CRM
    description: >-
      Operations for managing agent CRM contacts, pipelines, deals, follow-ups,
      and reports
  - name: Workflows
    description: Operations for managing agent workflow automations
  - name: Calendar
    description: Operations for managing agent calendar settings, availability, and events
  - name: Workspace
    description: Operations for managing agent workspaces and files
paths:
  /v1/bot/email/readall:
    get:
      tags:
        - Email
      summary: List Emails
      description: Fetch all emails for an agent with pagination
      parameters:
        - name: project_id
          in: query
          required: true
          schema:
            type: string
          description: Project ID
        - name: bot_id
          in: query
          required: true
          schema:
            type: string
          description: Agent ID
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
          description: Page number
        - name: per_page
          in: query
          required: false
          schema:
            type: integer
            default: 50
          description: Results per page
        - name: status
          in: query
          required: false
          schema:
            type: string
          description: Filter by status
        - name: direction
          in: query
          required: false
          schema:
            type: string
            enum:
              - inbound
              - outbound
          description: Filter by direction
      responses:
        '200':
          description: Email list
          content:
            application/json:
              schema:
                type: object
                properties:
                  total:
                    type: integer
                  emails:
                    type: array
                    items:
                      $ref: '#/components/schemas/EmailObject'
                  pagination:
                    $ref: '#/components/schemas/Pagination'
components:
  schemas:
    EmailObject:
      type: object
      properties:
        uuid:
          type: string
        direction:
          type: string
          enum:
            - inbound
            - outbound
        from_address:
          type: string
        to_address:
          type: string
        subject:
          type: string
        text_body:
          type: string
          nullable: true
        status:
          type: string
        created_at:
          type: string
        updated_at:
          type: string
    Pagination:
      type: object
      properties:
        page:
          type: integer
          description: Current page number
        per_page:
          type: integer
          description: Items per page
        total:
          type: integer
          description: Total number of items
        total_pages:
          type: integer
          description: Total number of pages
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Enter your API key

````