Take back a sent message
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.
- The messaging network's reference says a message can be taken back before it is delivered, and that some phones allow it after delivery until it is read.
- This API passes on the request for any message not yet reported read, and a message that was read is refused here with 409.
- The answer means the request was accepted. It does not mean the message was taken back, and this API has no status or event for a message that was.
- No Idempotency-Key is needed, and asking again for the same message is safe.
Scope: messages:write.
bearerAuthorizationBearer <mosc_...>A client key (mosc_).
id*stringThe id from the send answer, such as msg_123.
The messaging network took the request.
application/json- response
id*stringmsg_ followed by auditId.
status*stringThe messaging network took the request. It does not mean the message was taken back.
Example request
curl -X DELETE 'https://api.messageos.ai/v1/messages/msg_123' \ -H 'Authorization: Bearer mosc_...'Example response
{ "id": "msg_123", "status": "revoke_requested"}Discard a draft POST
Drops a pending draft. Discarding it again returns the same response. Scope: messages:write.
Read a sent message GET
Returns one message this agent sent or tried to send, with its latest status. id is the id from the send answer, msg_123, or its number. The message.delivered, message.read, and message.failed events report the same changes as they happen. A key with conversations:read can read it too. Scope: messages:write.
