Conversations

Manage conversations between users and agents. These endpoints allow you to create, retrieve, update, and delete conversations and their associated messages.

List Conversations

get

List conversations with pagination and filtering

查询参数
assignment_idany of可选

Filter by assignment ID

string可选
null可选
agent_idany of可选

Filter by agent ID

string可选
null可选
page_numinteger可选

Current page number

Default: 1
page_sizeinteger可选

Items per page

Default: 20
orderany of可选

order by: 'recent'(default) or 'oldest'

Default: recent
string可选
null可选
statusany of可选

Filter by status

string可选
null可选
statusesany of可选

Filter by statuses

string[]可选
null可选
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
响应
get
/admin/api/v2/conversations

List Messages By Conversation

get

List messages in a conversation with pagination

路径参数
conversation_idstring必填
查询参数
pageinteger可选

Page number

Default: 1
page_sizeinteger可选

Page size

Default: 20
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
响应
get
/admin/api/v2/conversations/{conversation_id}/messages

Create Conversation

post

Create a new conversation

查询参数
assignment_idany of可选

Filter by assignment ID

string可选
null可选
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
请求体

Conversation create request

topicstring可选

Conversation topic

Default: New Conversation
statusany of可选

Conversation status

Default: running
object可选
null可选
agent_idany of可选

Agent ID

string · uuid可选
null可选
inputsany of可选

Inputs

object可选
null可选
assignment_idany of可选

Assignment ID

string可选
null可选
响应
post
/admin/api/v2/conversations

Update Conversation

patch

Update a conversation (currently only supports updating topic)

路径参数
conversation_idstring必填
查询参数
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
请求体
object · UpdateData可选
响应
patch
/admin/api/v2/conversations/{conversation_id}

Get Conversation

get

Get a conversation by ID

路径参数
conversation_idstring必填
查询参数
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
响应
get
/admin/api/v2/conversations/{conversation_id}

Delete Conversation

delete

Delete a conversation and its messages

路径参数
conversation_idstring必填
响应
chevron-right
204

Successful Response

application/json
响应object
delete
/admin/api/v2/conversations/{conversation_id}

Update Conversation Status

patch

Update conversation status

路径参数
conversation_idstring必填
查询参数
tenant_idany of可选

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
string可选
null可选
tenant_unit_idany of可选

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
string可选
null可选
请求体
statusany of可选
string · enum可选

Workforce Run Status Enum

可能的值:
null可选
响应
patch
/admin/api/v2/conversations/{conversation_id}/status

最后更新于

这有帮助吗?