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

# ListEmailsPostAPI is the POST body form of the list endpoint. It exists for


> the \`context\` filter specifically: "every email about this lead" is a nested JSON object, which does not survive a query string cleanly.




## OpenAPI

````yaml /api/openapi.json post /v1/emails-query
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, and experiments. Authenticate with
    a Bearer API key (erdo_api_...) or scoped token (erdo_token_...).
  version: '2026-07-26'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/emails-query:
    post:
      summary: >
        ListEmailsPostAPI is the POST body form of the list endpoint. It exists
        for
      description: >
        the \`context\` filter specifically: "every email about this lead" is a
        nested JSON object, which does not survive a query string cleanly.
      operationId: POST:mcp.ListEmailsPostAPI
      requestBody:
        content:
          application/json:
            schema:
              properties:
                context:
                  additionalProperties:
                    type: string
                  type: object
                limit:
                  format: int64
                  type: integer
                offset:
                  format: int64
                  type: integer
                search:
                  type: string
                since:
                  type: string
                to:
                  type: string
              type: object
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  emails:
                    items:
                      $ref: '#/components/schemas/mail.EmailSummary'
                    type: array
                  limit:
                    format: int64
                    type: integer
                  offset:
                    format: int64
                    type: integer
                  total:
                    description: >
                      caller can page without discovering the end by hitting an
                      empty result.
                    format: int64
                    title: >
                      Total counts every message matching the filters, not just
                      this page, so a
                    type: integer
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    mail.EmailSummary:
      description: >
        page of results should not carry a page of HTML documents; GetEmail
        fetches the body for the one message the reader opened.
      properties:
        context:
          additionalProperties:
            type: string
          description: >
            for anything sent before context existed, and for senders that don't
            set it — readers must treat it as optional, never as a guarantee.
          title: >
            Context is what the message was about, as stamped by the sender.
            Empty
          type: object
        created_at:
          format: date-time
          type: string
        id:
          type: string
        sent_at:
          format: date-time
          type: string
        status:
          description: >
            mailer returned, so a failed send is visible rather than silently
            absent.
          title: >
            Status is 'pending', 'sent' or 'failed' — the outcome recorded after
            the
          type: string
        subject:
          type: string
        to:
          type: string
        to_name:
          type: string
      title: >
        EmailSummary is one row of the send log. Bodies are omitted deliberately
        — a
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````