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

# Get Attachment

Fetch a media attachment by its GUID.

You can optionally specify the `quality` (best, medium, low) and the `phoneNumber` (required if the server is not preloaded).

### Parameters

| Name        | In    | Type   | Required | Description                                     |
| ----------- | ----- | ------ | -------- | ----------------------------------------------- |
| guid        | path  | string | ✅        | The GUID of the attachment to fetch             |
| quality     | query | string | ❌        | Quality of the attachment (`best` by default)   |
| phoneNumber | query | string | ❌        | E.164 phone number of the line (`+15551234567`) |

### Responses

* **200**: Attachment fetched successfully (binary content)
* **400**: Missing phoneNumber or server not found
* **500**: Failed to fetch attachment


## OpenAPI

````yaml get /messages/attachments/{guid}
openapi: 3.0.3
info:
  title: Messages API
  version: 1.0.0
  description: >-
    API for sending messages, uploading media, fetching messages, and handling
    Arnio's webhooks.
servers:
  - url: https://api.arnio.co/api/v1
security: []
paths:
  /messages/attachments/{guid}:
    get:
      tags:
        - Messages
      summary: Fetch an attachment by GUID
      parameters:
        - name: guid
          in: path
          required: true
          schema:
            type: string
          description: The GUID of the attachment
        - name: quality
          in: query
          required: false
          schema:
            type: string
            default: best
          description: Optional. Quality of the attachment (best, medium, low)
        - name: phoneNumber
          in: query
          required: false
          schema:
            type: string
          description: >-
            Phone number in E.164 format (e.g., +15551234567). Required if
            server is not preloaded.
      responses:
        '200':
          description: Attachment fetched successfully
          content:
            application/octet-stream:
              example: <binary content>
        '400':
          description: Missing phoneNumber or server not found
          content:
            application/json:
              example:
                success: false
                message: Phone line not found for attachment request
        '500':
          description: Failed to fetch attachment
          content:
            application/json:
              example:
                success: false
                error: Failed to fetch attachment
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Provide your generated API Key.

````