MessageOS
APIConversationsIdMessages

List messages in a conversation

GET
/conversations/{id}/messages

Messages are in the order they were written. An inbound message shows the words the person typed or the label they tapped, and its id is the inboundMessageId of its reply.received event, so it can be sent as inReplyTo. Chip labels are included. Provider identifiers are not. Scope: conversations:read.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Path Parameters

id*integer

The conversation id.

Range0 < value

Query Parameters

limit?integer

Page size, 1 to 100. The default is 25.

Range1 <= value <= 100
cursor?string

nextCursor from the previous page.

Response Body

A page of messages.

application/json
  1. response
data*array<>
nextCursor*|

Pass it as cursor for the next page. null when this page was not full.

Example request

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

Example response

{  "data": [    {      "id": 901,      "direction": "inbound",      "text": "Your appointment is Tuesday at 3:00 PM.",      "kind": "text",      "chips": [        {          "label": "string"        }      ],      "channel": "rcs",      "status": "sent",      "origin": "agent",      "createdAt": "2026-10-28T23:00:00.000Z"    }  ],  "nextCursor": "string"}