Conversations
Manage conversations between users and agents. These endpoints allow you to create, retrieve, update, and delete conversations and their associated messages.
List conversations with pagination and filtering
Filter by assignment ID
Filter by agent ID
Current page number
1
Items per page
20
order by: 'recent'(default) or 'oldest'
recent
Filter by status
Filter by statuses
Tenant Id
40d39c4b-9585-4123-8fd4-f1cc23a1184c
Tenant Unit ID
da114de3-d7e6-4161-bc55-0ce85dbee589
GET /admin/api/v2/conversations HTTP/1.1
Host: api.workfx.ai
Accept: */*
{
"page_num": 1,
"page_size": 1,
"total_count": 1,
"total_pages": 1,
"has_next_page": true,
"data": [
{
"created_by": "text",
"updated_by": "text",
"created_by_role": "text",
"updated_by_role": "text",
"id": "text",
"topic": "text",
"agent_id": "text",
"tenant_id": "text",
"tenant_unit_id": "text",
"user_id": "text",
"agent_mode": "text",
"extend_properties": {},
"invoke_from": "text",
"inputs": {},
"status": "running",
"assignment_id": "text",
"created_time": "2025-07-16T16:47:08.804Z",
"updated_time": "2025-07-16T16:47:08.804Z",
"created_by_name": "text",
"updated_by_name": "text",
"agent_type": "text",
"message_count": 1
}
]
}
List messages in a conversation with pagination
Page number
1
Page size
20
Tenant Id
40d39c4b-9585-4123-8fd4-f1cc23a1184c
Tenant Unit ID
da114de3-d7e6-4161-bc55-0ce85dbee589
GET /admin/api/v2/conversations/{conversation_id}/messages HTTP/1.1
Host: api.workfx.ai
Accept: */*
{
"page_num": 1,
"page_size": 1,
"total_count": 1,
"total_pages": 1,
"has_next_page": true,
"data": [
{
"created_by": "text",
"updated_by": "text",
"created_by_role": "text",
"updated_by_role": "text",
"id": "text",
"tenant_id": "text",
"tenant_unit_id": "text",
"agent_id": "text",
"user_id": "text",
"conversation_id": "text",
"run_id": "text",
"message_from": "text",
"content": "text",
"requested_time": "2025-07-16T16:47:08.804Z",
"input_tokens": 0,
"answer_tokens": 0,
"total_tokens": 0,
"feedback": "text",
"metadata": {},
"type": "text",
"user_type": "text",
"status": "text",
"event_trace": "text"
}
]
}
Create a new conversation
Filter by assignment ID
Tenant Id
40d39c4b-9585-4123-8fd4-f1cc23a1184c
Tenant Unit ID
da114de3-d7e6-4161-bc55-0ce85dbee589
Conversation create request
Conversation topic
New Conversation
Conversation status
running
Agent ID
Inputs
Assignment ID
POST /admin/api/v2/conversations HTTP/1.1
Host: api.workfx.ai
Content-Type: application/json
Accept: */*
Content-Length: 132
{
"topic": "New Conversation",
"status": "running",
"agent_id": "123e4567-e89b-12d3-a456-426614174000",
"inputs": {},
"assignment_id": "text"
}
{
"created_by": "text",
"updated_by": "text",
"created_by_role": "text",
"updated_by_role": "text",
"id": "text",
"topic": "text",
"agent_id": "text",
"tenant_id": "text",
"tenant_unit_id": "text",
"user_id": "text",
"agent_mode": "text",
"extend_properties": {},
"invoke_from": "text",
"inputs": {},
"status": "running",
"assignment_id": "text",
"created_time": "2025-07-16T16:47:08.804Z",
"updated_time": "2025-07-16T16:47:08.804Z",
"created_by_name": "text",
"updated_by_name": "text",
"agent_type": "text"
}
Update a conversation (currently only supports updating topic)
Tenant Id
40d39c4b-9585-4123-8fd4-f1cc23a1184c
Tenant Unit ID
da114de3-d7e6-4161-bc55-0ce85dbee589
PATCH /admin/api/v2/conversations/{conversation_id} HTTP/1.1
Host: api.workfx.ai
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
{
"created_by": "text",
"updated_by": "text",
"created_by_role": "text",
"updated_by_role": "text",
"id": "text",
"topic": "text",
"agent_id": "text",
"tenant_id": "text",
"tenant_unit_id": "text",
"user_id": "text",
"agent_mode": "text",
"extend_properties": {},
"invoke_from": "text",
"inputs": {},
"status": "running",
"assignment_id": "text",
"created_time": "2025-07-16T16:47:08.804Z",
"updated_time": "2025-07-16T16:47:08.804Z",
"created_by_name": "text",
"updated_by_name": "text",
"agent_type": "text"
}
Get a conversation by ID
Tenant Id
40d39c4b-9585-4123-8fd4-f1cc23a1184c
Tenant Unit ID
da114de3-d7e6-4161-bc55-0ce85dbee589
GET /admin/api/v2/conversations/{conversation_id} HTTP/1.1
Host: api.workfx.ai
Accept: */*
{
"created_by": "text",
"updated_by": "text",
"created_by_role": "text",
"updated_by_role": "text",
"id": "text",
"topic": "text",
"agent_id": "text",
"tenant_id": "text",
"tenant_unit_id": "text",
"user_id": "text",
"agent_mode": "text",
"extend_properties": {},
"invoke_from": "text",
"inputs": {},
"status": "running",
"assignment_id": "text",
"created_time": "2025-07-16T16:47:08.804Z",
"updated_time": "2025-07-16T16:47:08.804Z",
"created_by_name": "text",
"updated_by_name": "text",
"agent_type": "text"
}
Delete a conversation and its messages
DELETE /admin/api/v2/conversations/{conversation_id} HTTP/1.1
Host: api.workfx.ai
Accept: */*
{}
Update conversation status
Tenant Id
40d39c4b-9585-4123-8fd4-f1cc23a1184c
Tenant Unit ID
da114de3-d7e6-4161-bc55-0ce85dbee589
Workforce Run Status Enum
PATCH /admin/api/v2/conversations/{conversation_id}/status HTTP/1.1
Host: api.workfx.ai
Content-Type: application/json
Accept: */*
Content-Length: 22
{
"status": "submitted"
}
{
"created_by": "text",
"updated_by": "text",
"created_by_role": "text",
"updated_by_role": "text",
"id": "text",
"topic": "text",
"agent_id": "text",
"tenant_id": "text",
"tenant_unit_id": "text",
"user_id": "text",
"agent_mode": "text",
"extend_properties": {},
"invoke_from": "text",
"inputs": {},
"status": "running",
"assignment_id": "text",
"created_time": "2025-07-16T16:47:08.804Z",
"updated_time": "2025-07-16T16:47:08.804Z",
"created_by_name": "text",
"updated_by_name": "text",
"agent_type": "text"
}
Last updated
Was this helpful?