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

# Retrieve Email

> Retrieves a single email message by its Dugble message ID.



## OpenAPI

````yaml /openapi.json get /emails/{message_id}
openapi: 3.1.0
info:
  title: Dugble API
  description: >-
    Programmatic access to Dugble email, SMS, sending infrastructure, contacts,
    audiences, suppressions, and broadcasts. Authenticate with a team token sent
    as a Bearer token.
  version: 1.0.0
  contact:
    name: Dugble Support
    email: support@dugble.com
servers:
  - url: https://api.dugble.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Email
    description: Send and manage transactional emails.
  - name: SMS
    description: Send and manage SMS messages.
  - name: Domains
    description: Manage and verify sending domains.
  - name: Templates
    description: Create, version, publish, preview, and test reusable email templates.
  - name: Sender IDs
    description: Manage SMS sender IDs.
  - name: Contacts
    description: Manage contacts and their audience memberships.
  - name: Contact Properties
    description: Manage typed custom property definitions used by contacts.
  - name: Topics
    description: Manage contact subscription topics.
  - name: Segments
    description: Manage audience segments.
  - name: Suppressions
    description: Manage suppressed email recipients.
  - name: Broadcasts
    description: Create, schedule, and analyze email broadcasts.
paths:
  /emails/{message_id}:
    get:
      tags:
        - Email
      summary: Retrieve Email
      description: Retrieves a single email message by its Dugble message ID.
      operationId: getEmail
      parameters:
        - $ref: '#/components/parameters/MessageId'
      responses:
        '200':
          description: Email retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailEnvelope'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    MessageId:
      name: message_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    EmailEnvelope:
      type: object
      required:
        - success
        - data
      properties:
        success:
          type: boolean
          enum:
            - true
        data:
          $ref: '#/components/schemas/EmailResource'
    EmailResource:
      type: object
      required:
        - object
        - id
        - to
        - from
        - created_at
        - subject
        - last_event
      properties:
        object:
          type: string
          enum:
            - email
        id:
          type: string
          format: uuid
        message_id:
          type: string
        to:
          type: array
          items:
            type: string
        from:
          type: string
        created_at:
          type: string
          format: date-time
        subject:
          type: string
        html:
          type: string
        text:
          type: string
        bcc:
          type: array
          items:
            type: string
        cc:
          type: array
          items:
            type: string
        reply_to:
          type: array
          items:
            type: string
        last_event:
          type: string
          enum:
            - queued
            - processing
            - submitted
            - delivered
            - delayed
            - bounced
            - complained
            - rejected
            - failed
            - canceled
        scheduled_at:
          type: string
          format: date-time
        tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
    ErrorEnvelope:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              enum:
                - BAD_REQUEST
                - UNAUTHORIZED
                - FORBIDDEN
                - STEP_UP_REQUIRED
                - NOT_FOUND
                - CONFLICT
                - PAYMENT_REQUIRED
                - PAYLOAD_TOO_LARGE
                - UNPROCESSABLE_ENTITY
                - TOO_MANY_REQUESTS
                - INTERNAL_ERROR
                - SERVICE_UNAVAILABLE
            message:
              type: string
    Tag:
      type: object
      required:
        - name
        - value
      properties:
        name:
          type: string
          maxLength: 256
        value:
          type: string
          maxLength: 256
  responses:
    Error:
      description: >-
        The request failed. See the HTTP status and structured error code for
        the category.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Team token
      description: >-
        Pass a Dugble team token in the Authorization header as Bearer <token>.
        Team token secrets use the dgb_team_ prefix.

````