Skip to main content
PUT
Update a conversation's state

Authorizations

Authorization
string
header
required

An organization API key created in the Klatt console, sent as Authorization: Bearer <key>. The key belongs to one organization.

Path Parameters

conversation_uuid
string<uuid>
required

Unique identifier (UUID) of the conversation.

Body

application/json
archived
boolean | null

true archives the conversation, false restores it. Omit it to leave it unchanged.

read
boolean | null

true marks the conversation as read, false as unread. Omit it to leave it unchanged.

starred
boolean | null

true stars the conversation, false removes the star. Omit it to leave it unchanged.

Response

Successful Response

agent_deleted
boolean
required

Whether the agent has since been deleted. The conversation stays available.

agent_name
string
required

Name of that agent.

agent_uuid
string
required

UUID of the agent that handled the conversation.

archived
boolean
required

Whether the conversation is archived.

channel
enum<string>
required

voice for calls, chat for WhatsApp chats.

Available options:
voice,
chat
conversation_uuid
string
required

Unique identifier (UUID) of the conversation.

kind
enum<string>
required

call for real calls, chat for WhatsApp chats, test for tests made in the console.

Available options:
call,
chat,
test
occurred_at
string<date-time>
required

When the conversation happened. The list is sorted by this value, newest first.

read
boolean
required

Whether the conversation has been read.

starred
boolean
required

Whether the conversation is starred.

status
string
required

Where the conversation stands. Chats are open or closed; calls use statuses such as completed or failed.

updated_at
string<date-time>
required

When the conversation or its analysis last changed (ISO 8601, UTC).

analysis
object | null

Result of the automatic analysis. null until the analysis exists.

campaign
object | null

The outbound campaign the call belongs to. null otherwise.

contact_number
string | null

Phone number of the other party.

direction
string | null

For calls: inbound, outbound or browser (a test in the console). null for chats.

duration_seconds
integer | null

Length of the call in seconds. null for chats and calls that never started.

ended_at
string<date-time> | null

When the conversation ended (ISO 8601, UTC). null while it is in progress or for chats.

ended_reason
string | null

Why the conversation ended, when known.

started_at
string<date-time> | null

When the conversation started (ISO 8601, UTC). null if it never started.

subject
string | null

Short subject written by the analysis.