---
title: "Get a chat conversation"
method: GET
path: "/chat/threads/{chatId}"
tags: ["Chat"]
---

# Get a chat conversation

`GET /chat/threads/{chatId}`

## Request

- Base URL: `https://viral.app/api/v1`
- URL: `https://viral.app/api/v1/chat/threads/{chatId}`
- Auth: API key in header `x-api-key`

Returns one conversation in the shape of a `GET /chat/threads` row: the creator or group identity, the latest-message preview, `updatedAt`, and the caller's unread count and pin, archive and mute state. An API key reaches its own organization's conversations only.

## Path parameters

- `chatId` string, required

## Response `200`

OK

- object
  - `chatId` union, required
    - string
    - string
  - `orgId` string, required
  - `kind` 'direct' | 'group'
  - `creatorUserId` string, nullable, required
  - `creatorName` string, nullable, required
  - `creatorEmail` string, nullable, required
  - `creatorImage` string, nullable, required
  - `creatorEmailVerified` boolean, nullable
  - `orgName` string, required
  - `orgLogo` string, nullable, required
  - `relationship` 'active' | 'application' | 'past', nullable, required
  - `title` string, nullable
  - `publicTitle` string, nullable
  - `groupKind` 'manual' | 'campaign' | 'all', nullable
  - `campaignId` string, nullable
  - `memberCount` integer
  - `lastMessageSenderUserId` string, nullable
  - `lastMessageSenderName` string, nullable
  - `creatorOrgCreatorId` string, nullable
  - `creatorIsMarketplaceCreator` boolean
  - `creatorNeedsPlatformInvite` boolean
  - `lastMessageAt` string, date-time, required
  - `updatedAt` string, date-time, nullable
  - `lastMessageId` string, nullable
  - `lastMessagePreview` string, nullable, required
  - `lastMessageDeleted` boolean, required
  - `lastMessageSenderType` 'org' | 'creator' | 'system', nullable, required
  - `unreadCount` integer, required
  - `pinned` boolean, required
  - `archived` boolean, required
  - `muted` boolean
  - `draft` boolean

## Other responses

- `400`: 400
- `401`: 401
- `402`: 402
- `404`: 404
- `408`: 408
- `429`: 429
- `500`: 500

---

[API](https://skmtc.dev/viral/apis/viral-app-api.md) · [All operations](https://skmtc.dev/viral/apis/viral-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/viral/apis/viral-app-api/revisions/31e97fa79ef1?raw)
