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

# Download an attachment

> Answers `200` with a short-lived link to the file as `url`, rather than the bytes. The link always downloads the file instead of displaying it. Fetch it promptly and do not store it — it grants access to the file on its own.



## OpenAPI

````yaml /openapi/transaction-monitoring.json get /api/v1/investigations/{investigation_id}/attachments/{attachment_id}/download/
openapi: 3.0.3
info:
  title: iDenfy Transaction Monitoring API
  version: v1
  description: >-
    Submit transactions and events for AML monitoring, and read back the alerts,
    cases and reports they produce.
servers:
  - url: https://ivs-tx-monitoring.idenfy.com
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Ingest
    description: Submit transactions and events for monitoring.
  - name: Transactions
    description: Read back submitted transactions and their rule hits.
  - name: Rules
    description: Detection rules evaluated against every submission.
  - name: Alerts
    description: Alerts opened when a rule matches.
  - name: Investigations
    description: Cases opened from one or more alerts.
  - name: SARs
    description: Suspicious activity reports and their attachments.
  - name: Sanctions screening
    description: Sanctions and PEP screening of transaction parties.
  - name: AML monitoring
    description: Ongoing AML monitoring of screened parties.
  - name: Party suspensions
    description: ''
  - name: Webhooks
    description: Outbound event delivery to your endpoints.
  - name: Custom fields
    description: Your own transaction attributes, declared so rules can match them.
  - name: Reference lists
    description: Named value lists rules can reference.
  - name: Notification rules
    description: Slack and email notifications for alerts.
  - name: Reports
    description: Generated compliance reports.
paths:
  /api/v1/investigations/{investigation_id}/attachments/{attachment_id}/download/:
    get:
      tags:
        - Investigations
      summary: Download an attachment
      description: >-
        Answers `200` with a short-lived link to the file as `url`, rather than
        the bytes. The link always downloads the file instead of displaying it.
        Fetch it promptly and do not store it — it grants access to the file on
        its own.
      operationId: investigations_attachments_download_retrieve
      parameters:
        - in: path
          name: attachment_id
          schema:
            type: string
          required: true
          description: Identifies the attachment.
        - in: path
          name: investigation_id
          schema:
            type: string
          required: true
          description: Identifies the investigation.
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvestigationAttachmentResponse'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    InvestigationAttachmentResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
          description: Primary key
        fileName:
          type: string
          readOnly: true
          description: Sanitised file name as uploaded
        contentType:
          type: string
          readOnly: true
          description: MIME type derived from the validated extension
        sizeBytes:
          type: integer
          readOnly: true
          description: File size in bytes
        checksumSha256:
          type: string
          readOnly: true
          description: SHA-256 of the stored bytes, for integrity checks
        description:
          type: string
          readOnly: true
          description: Optional note on what the file shows
        uploadedBy:
          type: integer
          description: Unique identifier of the user
          readOnly: true
        uploadedByName:
          type: string
          nullable: true
          readOnly: true
          description: Name, or email, of the uploader
        uploadedAt:
          type: string
          format: date-time
          readOnly: true
      required:
        - checksumSha256
        - contentType
        - description
        - fileName
        - id
        - sizeBytes
        - uploadedAt
        - uploadedBy
        - uploadedByName
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````

## Related topics

- [Download an attachment](https://documentation.idenfy.com/api-reference/transaction-monitoring/sars/download-an-attachment.md)
- [Download the handover package](https://documentation.idenfy.com/api-reference/transaction-monitoring/sars/download-the-handover-package.md)
- [Delete an attachment on an investigation](https://documentation.idenfy.com/api-reference/transaction-monitoring/investigations/delete-an-attachment-on-an-investigation.md)
- [Delete an attachment on a SAR](https://documentation.idenfy.com/api-reference/transaction-monitoring/sars/delete-an-attachment-on-a-sar.md)
- [Export a SAR as XML or PDF](https://documentation.idenfy.com/api-reference/transaction-monitoring/sars/export-a-sar-as-xml-or-pdf.md)


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