Skip to main content
GET
/
v1
/
threads
/
{threadId}
Get thread by ID
curl --request GET \
  --url https://api.distranmail.com/v1/threads/{threadId}
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "inbox_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "subject": "<string>",
  "status": "OPEN",
  "participants": [
    {
      "contact_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "role": "OWNER",
      "last_read_at": "2023-11-07T05:31:56Z"
    }
  ],
  "last_message_at": "2023-11-07T05:31:56Z",
  "message_count": 1,
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Path Parameters

threadId
string
required

Response

200 - application/json

Thread details

id
string<uuid>
required
inbox_id
string<uuid>
required
status
enum<string>
required

Current status of the thread

Available options:
OPEN,
CLOSED,
ARCHIVED,
SPAM
created_at
string<date-time>
required
subject
string
Maximum length: 998
participants
object[]
last_message_at
string<date-time>
message_count
integer
Required range: x >= 0
metadata
object
updated_at
string<date-time>
I