# ConversationRecord

Model ID: `ConversationRecord`

A CareConnect conversation (direct or group).

Type: `object`

## Fields

| Field | Type | Required | Format | Allowed values | Default | Nullable | Description |
|---|---|---:|---|---|---|---:|---|
| `createdAt` | `string` | Yes | date-time |  |  | No | Creation timestamp. |
| `groupId` | `string|null` | Yes |  |  |  | Yes | Associated group id, when this conversation belongs to a group. |
| `id` | `string` | Yes |  |  |  | No | Stable conversation identifier, client-generated on create. |
| `kind` | [`ConversationKind`](./ConversationKind.md) | Yes |  |  |  | No | Conversation kind (e.g. direct or group). |
| `lastMessagePreview` | `string|null` | Yes |  |  |  | Yes | Preview text of the most recent message, when available. |
| `participantIds` | `array` | Yes |  |  |  | No | Ids of the conversation's participants. |
| `title` | `string|null` | Yes |  |  |  | Yes | Conversation title, when set. |
| `unreadCount` | `integer` | Yes |  |  |  | No | Unread message count for the requesting tenant's view of this conversation. |
| `updatedAt` | `string` | Yes | date-time |  |  | No | Most recent update timestamp. |

## Example

None declared in canonical OpenAPI.
