APIMessagesDraftsIdDiscard
Discard a draft
POST
Drops a pending draft. Discarding it again returns the same response. Scope: messages:write.
bearerheader
AuthorizationBearer <mosc_...>A client key (mosc_).
id*integerThe draft id.
Range
0 < valueThe draft was discarded.
application/json- response
id*integerThe draft id.
status*stringExample request
curl -X POST 'https://api.messageos.ai/v1/messages/drafts/42/discard' \ -H 'Authorization: Bearer mosc_...'Example response
{ "id": 15, "status": "discarded"}Approve and send a draft POST
Sends the draft once, under the same rules as any other send. Approving again returns 409. A draft that expired cannot be approved. Scope: messages:write.
Take back a sent message DELETE
Answers 404 until MessageOS turns it on for you: GET /whoami shows rcsExtras true once it is. Asks the messaging network to take back one message this agent sent through this API. id is the id from the send answer.
