Skip to Content
MailroomMailroom home

Create a draft on a thread

POST
/threads/{id}/drafts

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
text?string
html?string

Response Body

Draft

application/json
  1. response
id?string
thread_id?string
text?string
html?string
updated_at?string
Formatdate-time
Example Request
curl -X POST 'https://api.mailroom.gosuevals.com/v1/threads/string/drafts' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response201
{  "id": "string",  "thread_id": "string",  "text": "string",  "html": "string",  "updated_at": "2019-08-24T14:15:22Z"}