MessageOS
APIMessagesDraftsIdDiscard

Discard a draft

POST
/messages/drafts/{id}/discard

Drops a pending draft. Discarding it again returns the same response. Scope: messages:write.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Path Parameters

id*integer

The draft id.

Range0 < value

Response Body

The draft was discarded.

application/json
  1. response
id*integer

The draft id.

status*string

Example request

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

Example response

{  "id": 15,  "status": "discarded"}