Skip to Content
MailroomMailroom home

Get a thread with messages

GET
/threads/{id}

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Response Body

Thread

application/json
  1. response
id?string
inbox_id?string
subject?string
participants?array<string>
labels?array<string>
status?string
last_message_at?string
Formatdate-time
messages?array<>
Example Request
curl -X GET 'https://api.mailroom.gosuevals.com/v1/threads/string'
Example Response200
{  "id": "string",  "inbox_id": "string",  "subject": "string",  "participants": [    "string"  ],  "labels": [    "string"  ],  "status": "string",  "last_message_at": "2019-08-24T14:15:22Z",  "messages": [    {      "id": "string",      "thread_id": "string",      "direction": "inbound",      "from": "string",      "to": [        "string"      ],      "subject": "string",      "text": "string",      "html": "string",      "text_reply_only": "string",      "agent_verified": true,      "content_is_untrusted": true    }  ]}