MessageOS
APIConversationsId

Read a conversation

GET
/conversations/{id}

Returns one conversation and its message count. Scope: conversations:read.

Authorization

bearer
headerAuthorizationBearer <mosc_...>

A client key (mosc_).

Path Parameters

id*integer

The conversation id.

Range0 < value

Response Body

The conversation.

application/json
  1. response

A conversation read by id.

id*integer
contactId*integer
status*string
Value in"open""closed"
channel*string
startedAt*string
Formatdate-time
lastMessageAt*string
Formatdate-time
closedAt*|null
closedReason*|

idle, completed, opt_out, or manual. null while open.

startedBy*string
Value in"inbound""outbound"
messageCount*integer
clientId*string

The client that owns the conversation. The list does not include it.

Example request

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

Example response

{  "id": 7,  "contactId": 42,  "status": "open",  "channel": "rcs",  "startedAt": "2026-10-28T23:00:00.000Z",  "lastMessageAt": "2026-10-28T23:00:00.000Z",  "closedAt": "2026-10-28T23:00:00.000Z",  "closedReason": null,  "startedBy": "inbound",  "messageCount": 6,  "clientId": "example"}