List offer chat threads
GET
/api/offers/{offerId}/chat/threads
const url = 'https://example.com/api/offers/example/chat/threads';const options = { method: 'GET', headers: {cookie: 'better-auth.session_token=<better-auth.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/offers/example/chat/threads \ --cookie better-auth.session_token=<better-auth.session_token>Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” offerId
required
string
Responses
Section titled “ Responses ”Chat threads attached to the offer.
Media type application/json
object
threads
required
Array<object>
Persisted chat thread attached to an offer.
object
id
required
string
offerId
required
string
title
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example generated
{ "threads": [ { "id": "example", "offerId": "example", "title": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z" } ]}No valid Better Auth session was present.
Media type application/json
Returned when no valid Better Auth session is present.
object
error
required
string
Example generated
{ "error": "example"}The offer was not found.
Media type application/json
Standard API error payload.
object
error
required
object
code
required
string
message
required
string
issues
Array<string>
Example generated
{ "error": { "code": "example", "message": "example", "issues": [ "example" ] }}