MessageOS
APIMessagesDraftsId

Read a draft

GET
/messages/drafts/{id}

Returns one draft for this client. Hidden until craft mode is enabled. Scope: messages:write.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Path Parameters

id*integer

The draft id.

Range0 < value

Response Body

The draft.

application/json
  1. response

Text waiting for approval. Approving it sends it once.

id*integer

The draft id.

contactId*integer
status*string
Value in"pending_approval""approved""sent""discarded""expired""blocked"
text*string
messageClass*string
expiresAt*string

24 hours after the draft was created.

Formatdate-time
auditId*|

The send record, once the draft was sent or blocked.

Example request

curl 'https://api.messageos.ai/v1/messages/drafts/42' \  -H 'Authorization: Bearer mosc_...'

Example response

{  "id": 15,  "contactId": 42,  "status": "pending_approval",  "text": "Hi Pat, this is a reminder about your visit on Tuesday at 3:00 PM.",  "messageClass": "service",  "expiresAt": "2026-10-28T23:00:00.000Z",  "auditId": null}