> ## 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.

# Create an attachment on an investigation

> Attaches an evidence file to the investigation. Sent as `multipart/form-data` with the file in `file` and an optional `description`. Images, PDF, office documents, text, email and zip files are accepted; the leading bytes must match the extension. There is a cap on the size of each file and on how many one investigation may carry. Recorded on the timeline.



## OpenAPI

````yaml /openapi/transaction-monitoring.json post /api/v1/investigations/{investigation_id}/attachments/
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/:
    post:
      tags:
        - Investigations
      summary: Create an attachment on an investigation
      description: >-
        Attaches an evidence file to the investigation. Sent as
        `multipart/form-data` with the file in `file` and an optional
        `description`. Images, PDF, office documents, text, email and zip files
        are accepted; the leading bytes must match the extension. There is a cap
        on the size of each file and on how many one investigation may carry.
        Recorded on the timeline.
      operationId: investigations_attachments_create
      parameters:
        - in: path
          name: investigation_id
          schema:
            type: string
          required: true
          description: Identifies the investigation.
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/InvestigationAttachmentUpload'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/InvestigationAttachmentUpload'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvestigationAttachmentResponse'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    InvestigationAttachmentUpload:
      type: object
      properties:
        file:
          type: string
          format: uri
          description: >-
            Evidence file: image, PDF, office document, text, email or zip; at
            most 25 MB
        description:
          type: string
          default: ''
          description: Optional note on what the file shows
          maxLength: 500
      required:
        - file
    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

- [Create an investigation](https://documentation.idenfy.com/api-reference/transaction-monitoring/investigations/create-an-investigation.md)
- [Delete an attachment on an investigation](https://documentation.idenfy.com/api-reference/transaction-monitoring/investigations/delete-an-attachment-on-an-investigation.md)
- [List attachments on an investigation](https://documentation.idenfy.com/api-reference/transaction-monitoring/investigations/list-attachments-on-an-investigation.md)
- [Create a link on an investigation](https://documentation.idenfy.com/api-reference/transaction-monitoring/investigations/create-a-link-on-an-investigation.md)
- [Create an attachment on a SAR](https://documentation.idenfy.com/api-reference/transaction-monitoring/sars/create-an-attachment-on-a-sar.md)


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