Skip to main content
GET
/
api
/
v1
/
chat
/
threads
/
{thread_id}
Get Thread
curl --request GET \
  --url https://api.example.com/api/v1/chat/threads/{thread_id}
{
  "thread_id": "<string>",
  "is_archived": true,
  "participants": [
    {}
  ],
  "last_message_at": "<string>",
  "unread_count": 123,
  "needs_attention": true
}

Get Thread

Returns detailed information about a specific thread.

Authentication

Requires a valid user JWT token. User must be a participant in the thread.

Path Parameters

thread_id
string
required
UUID of the thread.

Response

thread_id
string
UUID of the thread.
is_archived
boolean
Whether the thread is archived.
participants
array
List of thread participants with their roles and capabilities.
last_message_at
string
Timestamp of the last message.
unread_count
integer
Number of unread messages.
needs_attention
boolean
Whether the thread needs owner attention.

Example

curl https://api.ama2.me/api/v1/chat/threads/{thread_id} \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"