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

# Get email

> Returns full email details including HTML/text body and delivery status.



## OpenAPI

````yaml /openapi.yaml get /api/v1/emails/{id}
openapi: 3.0.3
info:
  title: Torpedo API
  version: '1.0'
  description: |
    Torpedo is a transactional messaging API built for developers.
    Send emails from your own verified domain, SMS to Mozambican numbers, and
    WhatsApp verification codes with a single HTTP call.
  contact:
    email: hello@torpedo.co.mz
  license:
    name: Torpedo API Terms of Service
    url: https://torpedo.co.mz/terms
  termsOfService: https://torpedo.co.mz/terms
servers:
  - url: https://api.torpedo.co.mz
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/emails/{id}:
    get:
      tags:
        - Emails
      summary: Get email
      description: Returns full email details including HTML/text body and delivery status.
      operationId: getEmail
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Email details
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    allOf:
                      - $ref: '#/components/schemas/Email'
                      - type: object
                        required:
                          - html
                          - text
                          - replyTo
                        properties:
                          html:
                            type: string
                          text:
                            type: string
                          replyTo:
                            type: string
                            format: email
                            nullable: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: Email not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Email:
      type: object
      required:
        - id
        - from
        - to
        - subject
        - status
        - providerId
        - failedReason
        - createdAt
        - sentAt
        - deliveredAt
      properties:
        id:
          type: string
          format: uuid
        from:
          type: string
          example: Acme <hello@myapp.com>
        to:
          type: string
          format: email
          example: user@example.com
        subject:
          type: string
          example: Welcome to Acme
        status:
          type: string
          enum:
            - queued
            - sent
            - delivered
            - bounced
            - complained
            - failed
        providerId:
          type: string
          nullable: true
        failedReason:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
        sentAt:
          type: string
          format: date-time
          nullable: true
        deliveredAt:
          type: string
          format: date-time
          nullable: true
    Error:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: string
                example: VALIDATION_ERROR
              message:
                type: string
                example: Domain not verified
              field:
                type: string
                example: from
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Prefix `tor_` followed by a base64url-encoded random key.
        Create and manage API keys from the authenticated Torpedo dashboard.

````

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