For the complete documentation index, see llms.txt. This page is also available as Markdown.

Conversations

Conversation, category, and category element related APIs

List Conversations

get
/webapi/v2/conversations

Get a list of conversations. The conversations are default sorted by last chat time in descending order.

Authorizations
API-KEYstringRequired

Your API key for authentication

Query parameters
llmAppIdstring · nullableOptional
categoryIdstring · nullableOptional
startedAtnumber · nullableOptional

Search for last chat time after this value

endAtnumber · nullableOptional

Search for last chat time before this value

firstChatStartedAtnumber · nullableOptional

Search for first chat time after this value

firstChatEndAtnumber · nullableOptional

Search for first chat time before this value

searchTermstring · nullableOptional
cursorstring · nullableOptional
variablesstring[] · nullableOptional
pageSizeinteger · min: 1 · max: 50OptionalDefault: 50
activeOnlybooleanOptionalDefault: false
backgroundRunningboolean · nullableOptional
orderstring · enumOptionalPossible values:
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Responses
200

OK

application/json
cursorstring · nullableRequired

Cursor for pagination

get/webapi/v2/conversations

Bulk Update Conversations

post
/webapi/v2/conversations/bulk_update

Update state, assignee, title, or categories for multiple conversations at once. Filter by conversation IDs, user IDs, app IDs, or category IDs.

Authorizations
API-KEYstringRequired

Your API key for authentication

Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Body
userIdsstring[] · nullableOptional

The ID of the user for filtering

llmAppIdsstring[] · nullableOptional

The ID of the llm app for filtering

categoryIdsstring[] · nullableOptional

The ID of the conversation category for filtering

conversationIdsstring[] · nullableOptional

The ID of the conversation for filtering

Responses
200

OK

No content

post/webapi/v2/conversations/bulk_update

No content

Get Conversation

get
/webapi/v2/conversations/{conversation_id}

Get a conversation.

The chats provided in conversation are the most recent 20.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_idstringRequired
Query parameters
variablesstring[] · nullableOptional

Comma separated list of variables to include in the response

Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Responses
200

OK

application/json
idstringRequired

Unique ID of the conversation

titlestringRequired

Title of the conversation

createdAtnumberRequired

Conversation created time

lastChatTimenumber · nullableRequired

Conversation last chat time

isEndbooleanRequired

Conversation is completed or not

categoriesstring[] · nullableRequired

Conversation categories

memostring · nullableRequired

Conversation memo

chatCountintegerRequired

Total chat count

get/webapi/v2/conversations/{conversation_id}

Update Conversation

patch
/webapi/v2/conversations/{conversation_id}

Partially update a conversation's state, assignee, title, or categories.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_idstringRequired
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Body
statestring · enum · nullableOptional

The state of the conversation

Possible values:
assigneestring · nullableOptional

The assignee of the conversation

categoryIdsstring[] · nullableOptional

The ID of the category

titlestring · nullableOptional

The title of the conversation

Responses
200

OK

application/json
idstringRequired

Unique ID of the conversation

titlestringRequired

Title of the conversation

createdAtnumberRequired

Conversation created time

lastChatTimenumber · nullableRequired

Conversation last chat time

isEndbooleanRequired

Conversation is completed or not

categoriesstring[] · nullableRequired

Conversation categories

memostring · nullableRequired

Conversation memo

chatCountintegerRequired

Total chat count

patch/webapi/v2/conversations/{conversation_id}

List Conversation Chats

get
/webapi/v2/conversations/{conversation_id}/chats

Get a conversation chats. The chats are sorted by timestamp in ascending order.

Chat page size is 100.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_idstringRequired
Query parameters
pageNointeger · min: 1OptionalDefault: 1
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Responses
200

OK

application/json
pageNointegerRequired
totalCountintegerRequired
get/webapi/v2/conversations/{conversation_id}/chats

Get Conversation Running Status

get
/webapi/v2/conversations/{conversation_id}/running

Check whether a conversation is currently running in the background.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_idstringRequired
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Responses
200

OK

application/json
isRunningbooleanRequired

Backgound running status

get/webapi/v2/conversations/{conversation_id}/running

Stop Conversation

post
/webapi/v2/conversations/{conversation_id}/stop

Stop a running conversation.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_idstringRequired
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Responses
200

OK

application/json
isRunningbooleanRequired

Backgound running status

post/webapi/v2/conversations/{conversation_id}/stop

Get Chat

get
/webapi/v2/conversations/{conversation_id}/chats/{chat_id}

Get a specific chat by ID from a conversation.

This API is useful for verifying the message content after a streaming response from run_apps API. The response includes detailed chat information compatible with LLMResponse.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_idstringRequired
chat_idstringRequired
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Responses
200

OK

application/json

Detailed chat information compatible with LLMResponse for run_apps API response verification.

Extends Chat with additional fields for verifying streaming responses from run_apps API.

idstringRequired

Unique ID of the chat

typestring · nullableOptional

Node type of the chat

senderstringRequired

Sender Type

Example: USER
messagestringRequired

Chat message

timestampnumberRequired

Timestamp of the chat message creation time

completedbooleanRequired

Whether the chat generation is completed

ratingboolean · nullableRequired

Rating of the chat

agentRatingboolean · nullableRequired

Agent rating of the chat

get/webapi/v2/conversations/{conversation_id}/chats/{chat_id}

Delete Chat

delete
/webapi/v2/conversations/{conversation_id}/chats/{chat_id}

Delete a specific chat message from a conversation.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_idstringRequired
chat_idstringRequired
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Responses
200

OK

No content

delete/webapi/v2/conversations/{conversation_id}/chats/{chat_id}

No content

Update Conversation Title

put
/webapi/v2/conversations/{conversation_id}/title

Set a conversation title.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_idstringRequired
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Body
titlestringRequired

The title of the conversation

Responses
200

OK

application/json
idstringRequired

Unique ID of the conversation

titlestringRequired

Title of the conversation

createdAtnumberRequired

Conversation created time

lastChatTimenumber · nullableRequired

Conversation last chat time

isEndbooleanRequired

Conversation is completed or not

categoriesstring[] · nullableRequired

Conversation categories

memostring · nullableRequired

Conversation memo

chatCountintegerRequired

Total chat count

put/webapi/v2/conversations/{conversation_id}/title

Submit Chat Feedback

post
/webapi/v2/conversations/{conversation_id}/chats/{chat_id}/feedback

Submit a thumbs-up or thumbs-down feedback on a generated chat response. Negative feedback can include a suggested answer and feedback selections.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_idstringRequired
chat_idstringRequired
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Body
ratingboolean · nullableOptional

The rating of chat

suggestedAnswerstring · nullableOptional

The suggested answer

Responses
200

OK

application/json
conversationIdstringRequired
chatIdstringRequired
ratingboolean · nullableOptional
post/webapi/v2/conversations/{conversation_id}/chats/{chat_id}/feedback

List Conversation Categories

get
/webapi/v2/conversation_categories

List all conversation categories in the project.

Authorizations
API-KEYstringRequired

Your API key for authentication

Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Responses
200

OK

application/json
get/webapi/v2/conversation_categories

Create Conversation Category

post
/webapi/v2/conversation_categories

Create a new conversation category with the given name.

Authorizations
API-KEYstringRequired

Your API key for authentication

Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Body
namestringRequired
Responses
200

OK

application/json
categoryIdstringRequired

Unique ID of the category

namestringRequired

Name of the category

post/webapi/v2/conversation_categories

Delete Conversation Category

delete
/webapi/v2/conversation_categories/{conversation_category_id}

Delete a conversation category by ID.

Authorizations
API-KEYstringRequired

Your API key for authentication

Path parameters
conversation_category_idstringRequired
Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Responses
200

OK

No content

delete/webapi/v2/conversation_categories/{conversation_category_id}

No content

Chat Completions

post
/webapi/v2/chat/completions

Direct LLM call without retrieval.

Routes through Mally's LLM infra (model routing, billing). Supports both sync and streaming modes via the 'mode' field.

Authorizations
API-KEYstringRequired

Your API key for authentication

Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Body
modelstringOptional

LLM model name (Mally internal name)

Default: gpt4_o
temperaturenumberOptional

Sampling temperature

Default: 0.3
modestring · enumOptional

sync or stream

Default: syncPossible values:
max_tokensintegerOptional

Max completion tokens

Default: 2048
Responses
200

OK

No content

post/webapi/v2/chat/completions

No content

Daily Conversation Count

get
/webapi/conversation_daily_count

The total number of conversations per day for a given range.

Authorizations
API-KEYstringRequired

Your API key for authentication

Header parameters
AGENT-EMAILstringOptional

Optional: Email of the agent to use for this request

USER-EMAILstringOptional

Optional: Email address to associate with the user

OWN-USER-IDstringOptional

Optional: User ID to identify or create a user

Body
startDatestringOptional

Start of range of dates to query in YYYY-MM-DD format.

endDatestringOptional

End of range of dates to query in YYYY-MM-DD format.

Responses
200

Successfully retrieved daily conversation count

application/json
errorsobject · nullableOptional
get/webapi/conversation_daily_count

Last updated