# Download a customer's image (/reference/inbox/get-dm-attachment)

OpenAPI operation (components in https://api.tebar.app/v1/openapi.json):

```json
[
  {
    "operationId": "getDmAttachment",
    "tags": [
      "Inbox"
    ],
    "summary": "Download a customer's image",
    "description": "Tebar's copy of an image in a message, by its place in attachments (from 0). Private: only with your credentials.\n\nRequires the read scope.",
    "parameters": [
      {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      {
        "name": "index",
        "in": "path",
        "required": true,
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      {
        "$ref": "#/components/parameters/TebarProfile"
      }
    ],
    "responses": {
      "200": {
        "description": "The image file, with its Content-Type."
      },
      "401": {
        "$ref": "#/components/responses/Unauthorized"
      },
      "403": {
        "$ref": "#/components/responses/Forbidden"
      },
      "404": {
        "$ref": "#/components/responses/NotFound"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      }
    }
  }
]
```