---
title: "Upload a file to a case. Optionally posts a system chat message to notify the collection partner."
method: POST
path: "/cases/{caseId}/files"
tags: ["Cases"]
---

# Upload a file to a case. Optionally posts a system chat message to notify the collection partner.

`POST /cases/{caseId}/files`

Uploads a file and associates it with a case owned by one of the referral partner's clients.

File requirements:
- Maximum file size: 25 MB
- Allowed types: PDF, Excel (.xls, .xlsx), CSV, Text (.txt), Images (.jpg, .jpeg, .png, .gif)

When sendChatNotification is true (default), a system message is posted on the case chat
to notify the collection partner that a new file was uploaded.

## Path parameters

- `caseId` string, uuid, required

## Query parameters

- `sendChatNotification` boolean

## Headers

- `Idempotency-Key` string

## Response `200`

File uploaded successfully

## Other responses

- `400` — Validation error
- `404` — Case not found
- `413` — File too large
- `415` — Unsupported file type
- `500` — Internal server error

---

[API](https://skmtc.net/debitura/apis/debitura-referral-partner-api.md) · [All operations](https://skmtc.net/debitura/apis/debitura-referral-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/debitura/debitura-referral-partner-api/revisions/abf2adee265f/schema)
