---
title: "Find Thread By Channel Ref"
method: GET
path: "/api/threads/by-channel-ref/{channel_ref}"
tags: ["threads", "threads"]
---

# Find Thread By Channel Ref

`GET /api/threads/by-channel-ref/{channel_ref}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/threads/by-channel-ref/{channel_ref}`
- Auth: none declared

Find a thread by its channel_ref.

Used for navigating to DM threads when clicking on a participant.
Returns the thread if found, or null if not found. `channel_account_id`
picks the thread on ONE line when the contact has the same ref on
several (see _query_thread_by_ref).

## Path parameters

- `channel_ref` string, required

## Query parameters

- `channel_account_id` integer, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
