MessageOS
APIMessagesId

Read a sent message

GET
/messages/{id}

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.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Path Parameters

id*string

The id from the send answer, such as msg_123.

Response Body

The message.

application/json
  1. response

One message this agent sent, or tried to send, and where it stands. Provider identifiers are not included.

id*string

msg_ followed by auditId.

auditId*integer

The send record. message.delivered and message.failed carry the same number as messageId.

status*string

sent means the messaging network took the message. delivered and read come from the phone. failed means it did not arrive, or, with the reason provider_error, that MessageOS could not confirm it was sent, so it may still have gone out. blocked and deferred mean nothing was sent. sending means the send has not finished.

Value in"sending""sent""delivered""read""failed""blocked""deferred"
statusAt*string

When the message reached this status.

Formatdate-time
reason*|

Why a blocked message was not sent: one of the blocked reasons. For a failed one, the messaging network's own words for why, as in message.failed, which are not a fixed list and can change, or provider_error when MessageOS could not confirm the message was sent. null otherwise.

type*|

What the request asked to send. null for a message sent before this field existed.

class*string
channel*string|null
contactId*integer|null
reference*|

The reference you sent with the message, or null.

origin*string

Who sent it. api is a send through this API.

Value in"agent""api""dashboard""job""event""system"
createdAt*string
Formatdate-time

Example request

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

Example response

{  "id": "msg_123",  "auditId": 123,  "status": "sending",  "statusAt": "2026-10-28T23:00:00.000Z",  "reason": null,  "type": "text",  "class": "service",  "channel": "rcs",  "contactId": 42,  "reference": "order-8841",  "origin": "agent",  "createdAt": "2026-10-28T23:00:00.000Z"}