Skip to main content
PATCH
Mark a conversation read

Authorizations

Authorization
string
header
required

HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).

Path Parameters

conversationId
string
required

The conversation id.

Example:

"55120"

Body

application/json
unread
enum<boolean>
required

Must be false: marking read is the only change this endpoint takes.

Available options:
false

Response

The conversation, now read.

The thread between one of your numbers and one external number on one channel. One SMS conversation holds both SMS and MMS messages.

id
string
required
Example:

"55120"

channel
string
required

sms (SMS and MMS) or whatsapp. New values may be added; handle a value you do not know.

externalNumber
string
required

The other party, E.164.

Example:

"+12025550143"

internalNumber
object | null
required

Your CloudTalk number, the same object as on a message.

contact
object | null
required

As on a message.

contactAmbiguous
boolean
required

As on a message.

unread
boolean
required

Whether the conversation has unread messages. Read state is shared by your whole company, as in CloudTalk Phone.

awaitingReply
boolean
required

The newest message is inbound: the customer is waiting for an answer.

lastInboundAt
string<date-time> | null
required

When the customer last wrote. RFC 3339 in UTC, to the second.

lastOutboundAt
string<date-time> | null
required

When you last wrote. RFC 3339 in UTC, to the second.

lastMessage
object | null
required

The newest message. null when it was deleted.

whatsappWindowEndsAt
string<date-time> | null
required

WhatsApp only: when free-form messages stop being allowed, 24 hours after the customer last wrote. After it, send a template. null on SMS and before the customer first writes. RFC 3339 in UTC, to the second.

createdAt
string<date-time>
required

When the conversation started. RFC 3339 in UTC, to the second.

updatedAt
string<date-time>
required

When the conversation last had a new message. Marking it read does not change it. RFC 3339 in UTC, to the second.