> ## 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.

# GetEmailAPI mirrors erdo_get_email, returning one message with both bodies as


> they were sent.




## OpenAPI

````yaml /api/openapi.json get /v1/emails/{emailID}
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/{emailID}:
    get:
      summary: >
        GetEmailAPI mirrors erdo_get_email, returning one message with both
        bodies as
      description: |
        they were sent.
      operationId: GET:mcp.GetEmailAPI
      parameters:
        - allowEmptyValue: true
          explode: false
          in: path
          name: emailID
          required: true
          schema:
            type: string
          style: simple
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  context:
                    additionalProperties:
                      type: string
                    type: object
                  created_at:
                    format: date-time
                    type: string
                  html_content:
                    type: string
                  id:
                    type: string
                  plain_text:
                    type: string
                  sent_at:
                    format: date-time
                    type: string
                  status:
                    type: string
                  subject:
                    type: string
                  to:
                    type: string
                  to_name:
                    type: string
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  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_...).

````