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

# Download Reply Original

> Returns the original message of a reply as an `.eml` file (`message/rfc822`), with all of its headers and MIME parts exactly as received. The file is named after the reply's `Message-ID`.

Originals are kept for every reply received from now on. For older replies the original is only available for a limited time after they were received; when it's gone this returns 404, and the reply's `headers` hold what's still known.



## OpenAPI

````yaml /openapi.yml get /api/v2/replies/raw/
openapi: 3.1.1
info:
  title: DeliverymanAI API
  version: 2.0.0
  description: >-
    API documentation for DeliverymanAI. Send emails, track their delivery and
    engagement, read replies, verify addresses, manage your suppression list and
    receive webhook events.


    **Strongly recommended:** leave 5 to 10 minutes between emails sent from the
    same domain. Sending many emails from one domain in a short time can hurt
    your domain and IP reputation.


    **Rate limits:** emails from one sending domain go out at least a minimum
    interval apart. If you send sooner, the email is queued and `Send Email`
    returns `202`. Each endpoint also caps how many requests your account can
    make per minute. Over the cap you get `429` with a `Retry-After` header.
    Treat these limits as an upper bound and keep to the gap recommended above.
servers:
  - url: https://api.deliveryman.ai
    description: Deliveryman API Server
security: []
paths:
  /api/v2/replies/raw/:
    get:
      tags:
        - Email
      summary: Download Reply Original
      description: >-
        Returns the original message of a reply as an `.eml` file
        (`message/rfc822`), with all of its headers and MIME parts exactly as
        received. The file is named after the reply's `Message-ID`.


        Originals are kept for every reply received from now on. For older
        replies the original is only available for a limited time after they
        were received; when it's gone this returns 404, and the reply's
        `headers` hold what's still known.
      operationId: v2_download_reply_original
      parameters:
        - in: query
          name: message_id
          schema:
            maxLength: 40
            minLength: 1
            title: Message Id
            type: string
          description: The reply's `message_id`, as listed in an email's `replies`.
          required: true
      responses:
        '200':
          content:
            message/rfc822:
              schema:
                type: string
                format: binary
          description: Success
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: Reply or Original Not Found
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
          description: Internal Server Error
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: bash
          label: curl
          source: >-
            curl
            "https://api.deliveryman.ai/api/v2/replies/raw/?message_id=rep_462ccad5c0ef7e43f686a176"
            \
              -H "X-Api-Key: YOUR_API_KEY"
components:
  schemas:
    MessageResponse:
      type: object
      description: A message describing the result of the request, or what went wrong.
      properties:
        message:
          type: string
          description: Human readable description of the result or error.
      required:
        - message
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        Your API key, sent as the value of the `X-Api-Key` header. In the
        dashboard, go to Integrations and open Deliveryman API Keys to create
        one.

````

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