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

# Get email by ID

> Retrieve a single email by ID. Works for sent, received, and scheduled emails.



## OpenAPI

````yaml https://inbound.new/openapi.json get /api/e2/emails/{id}
openapi: 3.1.0
info:
  title: Inbound Email API
  description: >+

    # Inbound API


    The Inbound API allows you to manage email infrastructure programmatically -
    domains, email addresses, webhooks, and more.


    ## Authentication


    All API requests require a Bearer token in the Authorization header:


    ```bash

    curl -H "Authorization: Bearer YOUR_API_KEY" \
      https://inbound.new/api/e2/domains
    ```


    ## Base URL


    ```

    https://inbound.new/api/e2

    ```


    ## Quick Start


    1. **Create a domain** - Register your domain with Inbound

    2. **Configure DNS** - Add the provided DNS records to your domain

    3. **Create an email address** - Set up addresses to receive emails

    4. **Create an endpoint** - Configure where emails are delivered (webhook,
    forwarding, etc.)

  version: 2.0.0
servers:
  - url: https://inbound.new
    description: Production API server
security:
  - bearerAuth: []
tags:
  - name: Webhooks
    description: Webhooks sent by Inbound to your configured endpoints when events occur.
  - name: Emails
    description: >-
      Send, list, and manage emails. Supports immediate sending, scheduling,
      replies, and retry functionality.
  - name: Mail
    description: >-
      Inbox and thread views for received emails. Filter by domain, address, or
      search.
  - name: Domains
    description: >-
      Manage domains for sending and receiving emails. Domains must be verified
      via DNS before use.
  - name: Endpoints
    description: >-
      Configure where incoming emails are delivered - webhooks, email
      forwarding, or custom handlers.
  - name: Email Addresses
    description: Create and manage email addresses on your verified domains.
  - name: Attachments
    description: Download email attachments using authenticated requests.
paths:
  /api/e2/emails/{id}:
    get:
      tags:
        - Emails
      summary: Get email by ID
      description: >-
        Retrieve a single email by ID. Works for sent, received, and scheduled
        emails.
      operationId: getApiE2EmailsById
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Response for status 200
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    const: email
                    type: string
                  id:
                    type: string
                  type:
                    type: string
                    enum:
                      - sent
                      - received
                      - scheduled
                  from:
                    type: string
                  to:
                    type: array
                    items:
                      type: string
                  envelope_recipient:
                    nullable: true
                    anyOf:
                      - description: >-
                          Primary envelope recipient (first of
                          envelope_recipients). Deprecated: use
                          envelope_recipients
                        type: string
                      - type: 'null'
                  envelope_recipients:
                    nullable: true
                    anyOf:
                      - description: >-
                          All envelope recipients this email was delivered to on
                          your domains, including BCC recipients, independent of
                          message headers
                        type: array
                        items:
                          type: string
                      - type: 'null'
                  cc:
                    nullable: true
                    anyOf:
                      - type: array
                        items:
                          type: string
                      - type: 'null'
                  bcc:
                    nullable: true
                    anyOf:
                      - type: array
                        items:
                          type: string
                      - type: 'null'
                  reply_to:
                    nullable: true
                    anyOf:
                      - type: array
                        items:
                          type: string
                      - type: 'null'
                  subject:
                    type: string
                  html:
                    nullable: true
                    anyOf:
                      - type: string
                      - type: 'null'
                  text:
                    nullable: true
                    anyOf:
                      - type: string
                      - type: 'null'
                  status:
                    type: string
                  created_at:
                    type: string
                  sent_at:
                    nullable: true
                    anyOf:
                      - type: string
                      - type: 'null'
                  scheduled_at:
                    nullable: true
                    anyOf:
                      - type: string
                      - type: 'null'
                  has_attachments:
                    type: boolean
                  attachments:
                    type: array
                    items:
                      x-stainless-any: true
                  is_read:
                    type: boolean
                  spam:
                    description: Junk filter verdict (received emails only)
                    type: object
                    properties:
                      is_junk:
                        description: >-
                          Whether the junk filter marked this received email as
                          junk
                        type: boolean
                      reason:
                        nullable: true
                        anyOf:
                          - description: >-
                              classifier, ses_spam, guard_rule or user; null
                              when no verdict was made
                            type: string
                          - type: 'null'
                    required:
                      - is_junk
                      - reason
                  thread_id:
                    nullable: true
                    anyOf:
                      - type: string
                      - type: 'null'
                  thread_position:
                    nullable: true
                    anyOf:
                      - type: number
                      - type: 'null'
                  headers:
                    x-stainless-any: true
                  tags:
                    type: array
                    items:
                      x-stainless-any: true
                required:
                  - object
                  - id
                  - type
                  - from
                  - to
                  - subject
                  - status
                  - created_at
                  - has_attachments
        '401':
          description: Response for status 401
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '404':
          description: Response for status 404
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '500':
          description: Response for status 500
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      x-codeSamples:
        - lang: typescript
          label: TypeScript
          source: |-
            import Inbound from "inboundemail";

            const inbound = new Inbound();
            const result = await inbound.emails.retrieve("<emailId>");
        - lang: curl
          label: cURL
          source: |-
            curl -X GET 'https://inbound.new/api/e2/emails/<emailId>' \
              -H "Authorization: Bearer $INBOUND_API_KEY"
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Your Inbound API key. Include it in the Authorization header as: Bearer
        <your-api-key>

````

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