# Download Attachment

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/onebox/download-attachment:
    post:
      summary: Download Attachment
      deprecated: false
      description: Download an email attachment by its ID
      tags:
        - zapbox
      parameters:
        - name: x-auth-zapmail
          in: header
          description: ''
          required: true
          example: YOUR_API_KEY
          schema:
            type: string
        - name: x-workspace-id
          in: header
          description: ''
          required: false
          example: WORKSPACE_UUID
          schema:
            type: string
        - name: x-service-provider
          in: header
          description: ''
          required: false
          example: GOOGLE
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                attachmentId:
                  type: string
                provider:
                  type: string
                messageId:
                  type: string
                account:
                  type: string
                filename:
                  type: string
              required:
                - attachmentId
                - provider
                - messageId
                - account
                - filename
            example:
              attachmentId: attachment-id-string
              provider: gmail
              messageId: message-id-string
              account: user@example.com
              filename: document.pdf
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: zapbox
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/797058/apis/api-26824997-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.zapmail.ai/api
    description: Prod Env
security: []

```
