Skip to Content
API ReferenceThreadsGETGet a thread

Get a thread

GET/api/v1/threads/{id}

Retrieves a conversation thread and its message history by ID.

Path parameters

idstringrequired(Must start with thr_)

The conversation thread identifier (thr_…).

Returns

HTTP Status Codes

200 OKThreadDetailoptional

Thread metadata and full message history ordered oldest first.

401 UnauthorizedErroroptional

The integration key is missing, invalid, or revoked.

404 Not FoundErroroptional

No thread exists with this ID in your organisation.

The Message object

Each item in the messages array contains:

idstringoptional(matches ^msg_)

Message identifier (msg_…).

rolestringoptional('member' | 'coach')

Message author: member or coach.

textstringoptional

Verbatim message text.

created_atstringoptional(ISO 8601 format)

Timestamp when the message was sent.

curl -X GET "https://api.bellacoach.ai/api/v1/threads/thr_9c41f0b7a2d64e83b15c7f20" \ -H "Authorization: Bearer $BELLA_API_KEY" \ -H "Accept: application/json"

Response example (200 OK)

{ "id": "thr_9c41f0b7a2d64e83b15c7f20", "title": "Safe second trimester exercise with lower back pain…", "external_member_id": "usr_94821", "assistant": "asst_4d9e2a7b1c8f3052e6a9c4b0", "created_at": "2026-08-02T10:16:00Z", "updated_at": "2026-08-02T10:16:25Z", "messages": [ { "id": "msg_8b31a0e5f2c41a9d7e3052c1", "role": "member", "text": "What exercises are safe during my second trimester if I have mild lower back pain?", "created_at": "2026-08-02T10:16:00Z" }, { "id": "msg_c41e9b2f0a8d6314e7a8b5d2", "role": "coach", "text": "In your second trimester, gentle pelvic tilts, cat-cow stretches, and supported bridges can help ease lower back tension safely.", "created_at": "2026-08-02T10:16:05Z" } ] }

Next steps

Last updated on