---
title: "Get a chat by external channel id"
method: GET
path: "/v1/chats/by-external"
tags: ["Chats"]
---

# Get a chat by external channel id

`GET /v1/chats/by-external`

## Query parameters

- `source` 'discord' | 'slack', required
- `id` string, required

## Response `200`

Chat fetched successfully

- ChatSessionSummary
  - `chatId` string, required
  - `title` string, required
  - `createdAt` string, required
  - `updatedAt` string, required
  - `pinnedAt` string, nullable, required
  - `externalChannelId` ExternalChannelId, nullable
    - `source` 'discord' | 'slack' | 'dashboard', required
    - `id` string

## Other responses

- `400` — Invalid query params
- `401` — Missing or invalid API key
- `403` — Forbidden
- `404` — Chat not found
- `503` — Authentication service unavailable

---

[API](https://skmtc.net/usenotra/apis/notra-api.md) · [All operations](https://skmtc.net/usenotra/apis/notra-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usenotra/notra-api/revisions/4e07496e06b0/schema)
