Skip to main content
POST
Search conversations

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.

Body

application/json

Search text and filters for conversations. The text travels in the body, never in the URL.

q
string
required

Text to look for in the subject, summary and contact number of conversations, from 2 to 200 characters.

Required string length: 2 - 200
agent_uuid
string<uuid>[] | null

Only conversations handled by these agents (UUIDs).

archived
boolean
default:false

When true, return archived conversations instead of active ones.

campaign_uuid
string<uuid>[] | null

Only conversations that belong to these outbound campaigns (UUIDs).

category
enum<string>[] | null

Only conversations whose analysis has one of these results. silent means nobody spoke, unanalyzed that the analysis has not finished, caller-hungup-ringing that the caller hung up while it rang.

Available options:
TRANSFERRED,
CALLBACK_OR_OPEN,
RESOLVED_WITHOUT_TEAM,
ENDED_BY_CALLER,
NO_CLEAR_REQUEST,
silent,
unanalyzed,
caller-hungup-ringing
channel
enum<string> | null

Only conversations on this channel, voice or chat.

Available options:
voice,
chat
cursor
string | null

Cursor from the next_cursor of the previous page. Omit it to start from the newest conversation.

Maximum string length: 256
date_from
string<date-time> | null

Only conversations that started at or after this date and time (ISO 8601 with a time zone).

date_to
string<date-time> | null

Only conversations that started at or before this date and time (ISO 8601 with a time zone).

direction
enum<string>[] | null

Only calls in these directions, inbound or outbound.

Available options:
inbound,
outbound
duration_max
integer | null

Only calls lasting at most this many seconds, from 0 to 86400.

Required range: 0 <= x <= 86400
duration_min
integer | null

Only calls lasting at least this many seconds, from 0 to 86400.

Required range: 0 <= x <= 86400
kind
enum<string>[] | null

Only conversations of these kinds: call, chat or test.

Available options:
call,
chat,
test
limit
integer
default:50

Maximum number of conversations to return, from 1 to 100.

Required range: 1 <= x <= 100
since
string<date-time> | null

Only conversations changed after this date and time (ISO 8601, UTC). Use it to poll for updates.

status
enum<string>[] | null

Only conversations in these states: unread, read or starred.

Available options:
unread,
read,
starred

Response

Successful Response

items
object[]
required

The conversations of this page, newest first.

latest_change_at
string<date-time> | null

The most recent updated_at among the items (ISO 8601, UTC).

next_cursor
string | null

Cursor to send as cursor to get the next page. null on the last page.

totals
object | null

Totals for the filters. Only present on the first page.