Conversations
Folder related APIs
会話リストを取得します。会話はデフォルトで最後のチャット時間を基準に降順で並べ替えられています。
認証用のAPIキー
Global ID of the LLM app to filter by.
Global ID of the conversation category to filter by.
指定された値以降の最後のチャット時間を検索
指定された値以前の最後のチャット時間を検索
指定された値以降の最初のチャット時間を検索
指定された値以前の最初のチャット時間を検索
Text matched against chat messages of the conversation.
Pagination cursor returned by the previous page. None requests the first page.
Names of the project variables to include in each conversation.
Number of conversations per page, from 1 to 50.
50True returns only conversations that are not in an end state.
falseTrue returns only conversations that run in the background. False and None apply no filter.
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
成功
ページネーション用のカーソル
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
GET /webapi/v2/conversations HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"conversations": [
{
"id": "text",
"title": "text",
"user": {
"userId": "text",
"firstName": "text",
"lastName": "text"
},
"createdAt": 1,
"lastChatTime": 1,
"isEnd": true,
"categories": [
"text"
],
"memo": "text",
"chats": [
{
"id": "text",
"type": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"completed": true,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"chatCount": 1,
"llmApp": {
"id": "text",
"name": "text",
"description": "text"
},
"variables": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
],
"cursor": "text"
}This API allows you to update state, assignee, title, or categories for multiple conversations at once.
Headers
API-KEY (string, required): Your assigned API key. You can find it in the Settings menu of the dashboard.
AGENT-EMAIL (string, optional): The email address of the agent performing the API call.
USER-EMAIL (string, optional): The email address to associate with the user.
OWN-USER-ID (string, optional): The user ID to identify or create a user.
Request Body
conversationIds (array[string], optional): Filter by conversation IDs.
userIds (array[string], optional): Filter by user IDs.
llmAppIds (array[string], optional): Filter by LLM app IDs.
categoryIds (array[string], optional): Filter by category IDs.
conversationInfo (object, required): Update payload with state, assignee, categoryIds, and title fields.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
フィルタリング対象のユーザーID
フィルタリング対象のllmアプリID
フィルタリング対象のの会話カテゴリID
フィルタリング対象の会話ID
正常に更新されました。
No content
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
POST /webapi/v2/conversations/bulk_update HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 181
{
"userIds": [
"text"
],
"llmAppIds": [
"text"
],
"categoryIds": [
"text"
],
"conversationIds": [
"text"
],
"conversationInfo": {
"state": "no",
"assignee": "text",
"categoryIds": [
"text"
],
"title": "text"
}
}No content
指定の会話IDに紐づく会話内容を取得します。 取得できるメッセージは、最新の20件までです。
認証用のAPIキー
取得したい会話の ID
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
正常に取得しました。
会話ID
会話のタイトル
会話作成時間
最終チャット時間
会話の終了状況
会話カテゴリー
会話メモ
合計会話数
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
GET /webapi/v2/conversations/{conversation_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "text",
"title": "text",
"user": {
"userId": "text",
"firstName": "text",
"lastName": "text"
},
"createdAt": 1,
"lastChatTime": 1,
"isEnd": true,
"categories": [
"text"
],
"memo": "text",
"chats": [
{
"id": "text",
"type": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"completed": true,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"chatCount": 1,
"llmApp": {
"id": "text",
"name": "text",
"description": "text"
},
"variables": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}This API allows you to partially update a conversation's state, assignee, title, or categories.
Headers
API-KEY (string, required): Your assigned API key. You can find it in the Settings menu of the dashboard.
AGENT-EMAIL (string, optional): The email address of the agent performing the API call.
USER-EMAIL (string, optional): The email address to associate with the user.
OWN-USER-ID (string, optional): The user ID to identify or create a user.
Request Body
state (string, optional): The conversation state.
assignee (string, optional): The assignee agent ID.
categoryIds (array[string], optional): Category IDs to assign.
title (string, optional): The conversation title.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
会話の状態
会話の担当者
カテゴリのID
会話のタイトル
正常に設定されました。
会話ID
会話のタイトル
会話作成時間
最終チャット時間
会話の終了状況
会話カテゴリー
会話メモ
合計会話数
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
PATCH /webapi/v2/conversations/{conversation_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 70
{
"state": "no",
"assignee": "text",
"categoryIds": [
"text"
],
"title": "text"
}{
"id": "text",
"title": "text",
"user": {
"userId": "text",
"firstName": "text",
"lastName": "text"
},
"createdAt": 1,
"lastChatTime": 1,
"isEnd": true,
"categories": [
"text"
],
"memo": "text",
"chats": [
{
"id": "text",
"type": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"completed": true,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"chatCount": 1,
"llmApp": {
"id": "text",
"name": "text",
"description": "text"
},
"variables": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}会話内のチャットの一覧を取得します。チャットはタイムスタンプによって昇順に並べ替えられています。
チャットページのサイズは100です。
認証用のAPIキー
1任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
成功
1-based page number of this response. A page holds up to 100 chats.
Total number of visible chats in the conversation.
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
GET /webapi/v2/conversations/{conversation_id}/chats HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"chats": [
{
"id": "text",
"type": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"completed": true,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"pageNo": 1,
"totalCount": 1
}会話IDで会話の状態を取得します。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
正常に取得しました。
バックグラウンド実行ステータス
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
GET /webapi/v2/conversations/{conversation_id}/running HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"isRunning": true
}進行中の会話を終了する。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
正常に完了しました。
バックグラウンド実行ステータス
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
POST /webapi/v2/conversations/{conversation_id}/stop HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"isRunning": true
}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.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
OK
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.
Unique ID of the chat
Node type of the chat
Sender Type
USERChat message
Timestamp of the chat message creation time
Whether the chat generation is completed
Rating of the chat
Agent rating of the chat
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
GET /webapi/v2/conversations/{conversation_id}/chats/{chat_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "text",
"type": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"completed": true,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true,
"intermediateSteps": [
{
"key": "text",
"createdAt": 1,
"completed": true,
"statusMessage": "text",
"markdownMessage": "text"
}
]
}This API allows you to delete a specific chat message from a conversation.
Headers
API-KEY (string, required): Your assigned API key. You can find it in the Settings menu of the dashboard.
AGENT-EMAIL (string, optional): The email address of the agent performing the API call.
USER-EMAIL (string, optional): The email address to associate with the user.
OWN-USER-ID (string, optional): The user ID to identify or create a user.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
成功
No content
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
DELETE /webapi/v2/conversations/{conversation_id}/chats/{chat_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
No content
会話のタイトルを設定します。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
会話のタイトル。
成功
会話ID
会話のタイトル
会話作成時間
最終チャット時間
会話の終了状況
会話カテゴリー
会話メモ
合計会話数
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
PUT /webapi/v2/conversations/{conversation_id}/title HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"title": "text"
}{
"id": "text",
"title": "text",
"user": {
"userId": "text",
"firstName": "text",
"lastName": "text"
},
"createdAt": 1,
"lastChatTime": 1,
"isEnd": true,
"categories": [
"text"
],
"memo": "text",
"chats": [
{
"id": "text",
"type": "text",
"sender": "USER",
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
],
"searchAllSharedDocument": false,
"searchAllPersonalDocument": false,
"includingHashtags": [
"text"
],
"excludingHashtags": [
"text"
],
"includingHashtagsOperator": "text",
"excludingHashtagsOperator": "text",
"sharedKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"sharedFolders": [
{
"id": "text",
"name": "text"
}
],
"personalKnowledgeBases": [
{
"id": "text",
"name": "text"
}
],
"personalFolders": [
{
"id": "text",
"name": "text"
}
]
},
"timestamp": 1,
"completed": true,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"url": "text",
"text": "text"
}
],
"rating": true,
"agentRating": true
}
],
"chatCount": 1,
"llmApp": {
"id": "text",
"name": "text",
"description": "text"
},
"variables": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}This API allows you to submit a thumbs-up or thumbs-down feedback on a generated chat response.
Headers
API-KEY (string, required): Your assigned API key. You can find it in the Settings menu of the dashboard.
AGENT-EMAIL (string, optional): The email address of the agent performing the API call.
USER-EMAIL (string, optional): The email address to associate with the user.
OWN-USER-ID (string, optional): The user ID to identify or create a user.
Request Body
rating (boolean, optional):
truefor positive,falsefor negative feedback.feedbackSelection (array[string], optional): Predefined feedback selection options.
suggestedAnswer (string, optional): A user-suggested better answer.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
チャットの評価
提案された回答
成功
Global ID of the conversation, as sent in the request path.
Global ID of the chat, as sent in the request path.
Submitted rating: true is positive, false is negative. None when no rating is sent.
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
POST /webapi/v2/conversations/{conversation_id}/chats/{chat_id}/feedback HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"rating": true,
"feedbackSelection": [
"not_relevant"
],
"suggestedAnswer": "text"
}{
"conversationId": "text",
"chatId": "text",
"rating": true
}This API allows you to list all conversation categories in the project.
Headers
API-KEY (string, required): Your assigned API key. You can find it in the Settings menu of the dashboard.
AGENT-EMAIL (string, optional): The email address of the agent performing the API call.
USER-EMAIL (string, optional): The email address to associate with the user.
OWN-USER-ID (string, optional): The user ID to identify or create a user.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
正常に出力されました。
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
GET /webapi/v2/conversation_categories HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"categories": [
{
"categoryId": "text",
"name": "text"
}
]
}This API allows you to create a new conversation category.
Headers
API-KEY (string, required): Your assigned API key. You can find it in the Settings menu of the dashboard.
AGENT-EMAIL (string, optional): The email address of the agent performing the API call.
USER-EMAIL (string, optional): The email address to associate with the user.
OWN-USER-ID (string, optional): The user ID to identify or create a user.
Request Body
name (string, required): The name of the conversation category.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
Name of the new conversation category.
正常に作成されました。
カテゴリID
カテゴリー名
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
POST /webapi/v2/conversation_categories HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"categoryId": "text",
"name": "text"
}会話カテゴリーを削除します。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
会話カテゴリーが正常に削除されました。
No content
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
DELETE /webapi/v2/conversation_categories/{conversation_category_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
No content
検索を行わずLLMを直接呼び出します。
MallyのLLMインフラ(モデルルーティング、課金)を経由します。 'mode'フィールドで同期モードとストリーミングモードの両方に対応します。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
LLM model name (Mally internal name)
gpt4_oSampling temperature
0.3sync or stream
syncPossible values: Max completion tokens
2048OK
No content
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
POST /webapi/v2/chat/completions HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 116
{
"messages": [
{
"role": "system",
"content": "text"
}
],
"model": "gpt4_o",
"temperature": 0.3,
"mode": "sync",
"max_tokens": 2048
}No content
指定した範囲の1日あたりの会話の総数を取得します。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
開始日をYYYY-MM-DD形式で範囲指定
終了日を YYYY-MM-DD 形式で範囲指定します。
成功
Invalid request parameters.
Authentication failed. The API-KEY header is missing or invalid.
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
GET /webapi/conversation_daily_count HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"startDate": "text",
"endDate": "text"
}{
"result": {
"dailyTotalCount": [
{
"date": "text",
"activeCount": 1
}
],
"state": "text",
"campaignCount": 1
},
"errors": {}
}Last updated