Skip to Content
MailroomMailroom home

Update labels or status

PATCH
/threads/{id}

Authorization

bearerAuth
headerAuthorizationBearer <mr_live_ / mr_test_>

API key. Never log the secret.

Path Parameters

id*string

Header Parameters

Idempotency-Key?string

Stored 24h. Same key + body returns the original response.

Request Body

application/json
  1. body
labels?array<string>
status?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 PATCH 'https://api.mailroom.gosuevals.com/v1/threads/string' \  -H 'Content-Type: application/json' \  -d '{}'
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    }  ]}