# Fin Agent Attachment

> This is a subset of the full specification, limited to the `fin_agent_attachment` schema.
>
> You can find the full specification here: /_bundle/docs/references/@2.15/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.15'
  description: This is a subset of the full specification, limited to the `fin_agent_attachment` schema.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
paths: {}
components:
  schemas:
    fin_agent_attachment:
      title: Fin Agent Attachment
      type: object
      description: |
        An attachment object representing a file or URL attachment included with a message.
        Attachments can be used to provide additional context to Fin.
        Maximum of 10 attachments per request.
      x-tags:
        - Fin Agent
      properties:
        type:
          type: string
          enum:
            - url
            - file
          description: The type of attachment.
          example: url
        url:
          type: string
          format: uri
          description: The URL of the attachment. Required when type is 'url'. Must be publicly accessible.
          example: https://example.com/document.pdf
        name:
          type: string
          description: The name of the file. Required when type is 'file'.
          example: screenshot.png
        content_type:
          type: string
          description: The MIME type of the file. Required when type is 'file'.
          example: image/png
        data:
          type: string
          format: byte
          description: Base64-encoded file data. Required when type is 'file'.
          example: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk...
      required:
        - type
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
