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

# Get email by ID

> Retrieve details of a specific email



## OpenAPI

````yaml /openapi.json get /v1/emails/{id}
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/{id}:
    get:
      tags:
        - emails
      summary: Get email by ID
      description: Retrieve details of a specific email
      operationId: getEmail
      parameters:
        - schema:
            type: string
            format: uuid
            example: 123e4567-e89b-12d3-a456-426614174000
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Email details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Email'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Email not found
          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.

````