---
title: "Fetch case chats"
method: GET
path: "/cases/{id}/chats"
tags: ["Cases"]
---

# Fetch case chats

`GET /cases/{id}/chats`

## Request

- Base URL: `https://collectionpartner-api.debitura.com`
- URL: `https://collectionpartner-api.debitura.com/cases/{id}/chats`
- Auth: API key in header `XApiKey`

Returns all chat messages for a case in chronological order.

**Chat Participants:**
- Collection partner (you) - Messages from your team
- Creditor - Messages from the client who owns the debt
- Debitura support - System notifications and support messages
- Managing partner (if applicable) - Messages from the partner who submitted the case

**Message Details Include:**
- Message content and timestamp
- Sender information (name, role)
- Message type (text, system notification, file attachment reference)
- Read status and delivery information

**Use Case:**
Use this endpoint to build case communication interfaces, retrieve conversation history, or integrate case discussions into your systems. Perfect for customer service tools or partner portals.

**Availability:** Cases awaiting Debitura approval or contract signing are not available to collection partners, even if a partner has already been assigned.

**Note:** If the case has no thread or messages, an empty array is returned.

## Path parameters

- `id` string, uuid, required

## Response `200`

Chats returned (empty array if no messages)

- DebituraWebExternalApiContractsV1ChatsChatDto[]
  - `id` string, uuid
  - `dateCreated` string, date-time
  - `dateUpdated` string, date-time, nullable
  - `role` 0 | 1 | 2: Deprecated: kept as a number and never removed, but not extended — read `roleLabel` instead. Sender role: 0 = Partner, 1 = Creditor, 2 = ManagedByPartner.
  - `roleLabel` string, nullable: The sender role, readable. Always one of "Partner", "Creditor" or "Managed by partner" — these values are stable.
  - `message` string, nullable
  - `isSeen` boolean
  - `user` DebituraWebExternalApiContractsV1UsersUserRelationDto
    - `id` integer
    - `dateCreated` string, date-time, nullable
    - `dateUpdated` string, date-time, nullable
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `email` string, nullable, required

## Other responses

- `400`: Case ID missing or empty
- `404`: Case not found or not assigned to you as collection partner

## Changes

- **2026-10-01** `460a861d7d9b`: 3 info
  - response property `items/role` deprecated (media type: text/plain)
  - response property `items/role` deprecated (media type: application/json)
  - response property `items/role` deprecated (media type: text/json)

[Operation history](https://skmtc.dev/debitura/apis/debitura-collection-partner-api/changes/cases/:id/chats/get.md)

---

[API](https://skmtc.dev/debitura/apis/debitura-collection-partner-api.md) - [All operations](https://skmtc.dev/debitura/apis/debitura-collection-partner-api/llms.txt) - [OpenAPI document](https://skmtc.dev/debitura/apis/debitura-collection-partner-api/revisions/a7cf0ff022b6?raw)
