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

Conversations

Folder related APIs

利用履歴の会話を取得

get
/webapi/v2/conversations

会話リストを取得します。会話はデフォルトで最後のチャット時間を基準に降順で並べ替えられています。

Authorizations
API-KEYstringRequired

認証用のAPIキー

Query parameters
llmAppIdstring · nullableOptional

Global ID of the LLM app to filter by.

categoryIdstring · nullableOptional

Global ID of the conversation category to filter by.

startedAtnumber · nullableOptional

指定された値以降の最後のチャット時間を検索

endAtnumber · nullableOptional

指定された値以前の最後のチャット時間を検索

firstChatStartedAtnumber · nullableOptional

指定された値以降の最初のチャット時間を検索

firstChatEndAtnumber · nullableOptional

指定された値以前の最初のチャット時間を検索

searchTermstring · nullableOptional

Text matched against chat messages of the conversation.

cursorstring · nullableOptional

Pagination cursor returned by the previous page. None requests the first page.

variablesstring[] · nullableOptional

Names of the project variables to include in each conversation.

pageSizeinteger · min: 1 · max: 50Optional

Number of conversations per page, from 1 to 50.

Default: 50
activeOnlybooleanOptional

True returns only conversations that are not in an end state.

Default: false
backgroundRunningboolean · nullableOptional

True returns only conversations that run in the background. False and None apply no filter.

orderstring · enumOptionalPossible values:
Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Responses
200

成功

application/json
cursorstring · nullableRequired

ページネーション用のカーソル

get/webapi/v2/conversations
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"
}

会話を更新する

post
/webapi/v2/conversations/bulk_update

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.

Authorizations
API-KEYstringRequired

認証用のAPIキー

Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Body
userIdsstring[] · nullableOptional

フィルタリング対象のユーザーID

llmAppIdsstring[] · nullableOptional

フィルタリング対象のllmアプリID

categoryIdsstring[] · nullableOptional

フィルタリング対象のの会話カテゴリID

conversationIdsstring[] · nullableOptional

フィルタリング対象の会話ID

Responses
200

正常に更新されました。

No content

post/webapi/v2/conversations/bulk_update
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から会話内容を取得

get
/webapi/v2/conversations/{conversation_id}

指定の会話IDに紐づく会話内容を取得します。 取得できるメッセージは、最新の20件までです。

Authorizations
API-KEYstringRequired

認証用のAPIキー

Path parameters
conversation_idstringRequired
Query parameters
variablesstring[] · nullableOptional

取得したい会話の ID

Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Responses
200

正常に取得しました。

application/json
idstringRequired

会話ID

titlestringRequired

会話のタイトル

createdAtnumberRequired

会話作成時間

lastChatTimenumber · nullableRequired

最終チャット時間

isEndbooleanRequired

会話の終了状況

categoriesstring[] · nullableRequired

会話カテゴリー

memostring · nullableRequired

会話メモ

chatCountintegerRequired

合計会話数

get/webapi/v2/conversations/{conversation_id}
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"
  }
}

会話を設定

patch
/webapi/v2/conversations/{conversation_id}

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.

Authorizations
API-KEYstringRequired

認証用のAPIキー

Path parameters
conversation_idstringRequired
Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Body
statestring · enum · nullableOptional

会話の状態

Possible values:
assigneestring · nullableOptional

会話の担当者

categoryIdsstring[] · nullableOptional

カテゴリのID

titlestring · nullableOptional

会話のタイトル

Responses
200

正常に設定されました。

application/json
idstringRequired

会話ID

titlestringRequired

会話のタイトル

createdAtnumberRequired

会話作成時間

lastChatTimenumber · nullableRequired

最終チャット時間

isEndbooleanRequired

会話の終了状況

categoriesstring[] · nullableRequired

会話カテゴリー

memostring · nullableRequired

会話メモ

chatCountintegerRequired

合計会話数

patch/webapi/v2/conversations/{conversation_id}
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"
  }
}

会話内のチャットの一覧を取得する

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

会話内のチャットの一覧を取得します。チャットはタイムスタンプによって昇順に並べ替えられています。

チャットページのサイズは100です。

Authorizations
API-KEYstringRequired

認証用のAPIキー

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

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Responses
200

成功

application/json
pageNointegerRequired

1-based page number of this response. A page holds up to 100 chats.

totalCountintegerRequired

Total number of visible chats in the conversation.

get/webapi/v2/conversations/{conversation_id}/chats
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で会話の状態を取得

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

会話IDで会話の状態を取得します。

Authorizations
API-KEYstringRequired

認証用のAPIキー

Path parameters
conversation_idstringRequired
Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Responses
200

正常に取得しました。

application/json
isRunningbooleanRequired

バックグラウンド実行ステータス

get/webapi/v2/conversations/{conversation_id}/running
GET /webapi/v2/conversations/{conversation_id}/running HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
  "isRunning": true
}

会話を終了する

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

進行中の会話を終了する。

Authorizations
API-KEYstringRequired

認証用のAPIキー

Path parameters
conversation_idstringRequired
Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Responses
200

正常に完了しました。

application/json
isRunningbooleanRequired

バックグラウンド実行ステータス

post/webapi/v2/conversations/{conversation_id}/stop
POST /webapi/v2/conversations/{conversation_id}/stop HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
  "isRunning": true
}

Get Conversation Chat By Id

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

認証用のAPIキー

Path parameters
conversation_idstringRequired
chat_idstringRequired
Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

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}
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"
    }
  ]
}

IDで会話チャットを削除

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

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.

Authorizations
API-KEYstringRequired

認証用のAPIキー

Path parameters
conversation_idstringRequired
chat_idstringRequired
Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Responses
200

成功

No content

delete/webapi/v2/conversations/{conversation_id}/chats/{chat_id}
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

会話のタイトルを更新

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

会話のタイトルを設定します。

Authorizations
API-KEYstringRequired

認証用のAPIキー

Path parameters
conversation_idstringRequired
Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Body
titlestringRequired

会話のタイトル。

Responses
200

成功

application/json
idstringRequired

会話ID

titlestringRequired

会話のタイトル

createdAtnumberRequired

会話作成時間

lastChatTimenumber · nullableRequired

最終チャット時間

isEndbooleanRequired

会話の終了状況

categoriesstring[] · nullableRequired

会話カテゴリー

memostring · nullableRequired

会話メモ

chatCountintegerRequired

合計会話数

put/webapi/v2/conversations/{conversation_id}/title
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"
  }
}

フィードバックを投稿する

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

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): true for positive, false for negative feedback.

  • feedbackSelection (array[string], optional): Predefined feedback selection options.

  • suggestedAnswer (string, optional): A user-suggested better answer.

Authorizations
API-KEYstringRequired

認証用のAPIキー

Path parameters
conversation_idstringRequired
chat_idstringRequired
Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Body
ratingboolean · nullableOptional

チャットの評価

suggestedAnswerstring · nullableOptional

提案された回答

Responses
200

成功

application/json
conversationIdstringRequired

Global ID of the conversation, as sent in the request path.

chatIdstringRequired

Global ID of the chat, as sent in the request path.

ratingboolean · nullableOptional

Submitted rating: true is positive, false is negative. None when no rating is sent.

post/webapi/v2/conversations/{conversation_id}/chats/{chat_id}/feedback
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
}

会話カテゴリーの一覧を出力する

get
/webapi/v2/conversation_categories

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.

Authorizations
API-KEYstringRequired

認証用のAPIキー

Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Responses
200

正常に出力されました。

application/json
get/webapi/v2/conversation_categories
GET /webapi/v2/conversation_categories HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
  "categories": [
    {
      "categoryId": "text",
      "name": "text"
    }
  ]
}

会話カテゴリを作成する

post
/webapi/v2/conversation_categories

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.

Authorizations
API-KEYstringRequired

認証用のAPIキー

Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Body
namestringRequired

Name of the new conversation category.

Responses
200

正常に作成されました。

application/json
categoryIdstringRequired

カテゴリID

namestringRequired

カテゴリー名

post/webapi/v2/conversation_categories
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"
}

会話カテゴリーを削除

delete
/webapi/v2/conversation_categories/{conversation_category_id}

会話カテゴリーを削除します。

Authorizations
API-KEYstringRequired

認証用のAPIキー

Path parameters
conversation_category_idstringRequired
Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Responses
200

会話カテゴリーが正常に削除されました。

No content

delete/webapi/v2/conversation_categories/{conversation_category_id}
DELETE /webapi/v2/conversation_categories/{conversation_category_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*

No content

チャット補完

post
/webapi/v2/chat/completions

検索を行わずLLMを直接呼び出します。

MallyのLLMインフラ(モデルルーティング、課金)を経由します。 'mode'フィールドで同期モードとストリーミングモードの両方に対応します。

Authorizations
API-KEYstringRequired

認証用のAPIキー

Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

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
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

毎日の会話数

get
/webapi/conversation_daily_count

指定した範囲の1日あたりの会話の総数を取得します。

Authorizations
API-KEYstringRequired

認証用のAPIキー

Header parameters
AGENT-EMAILstringOptional

任意: このリクエストに使用するメンバーのメールアドレス

USER-EMAILstringOptional

任意: このリクエストに使用するユーザーのメールアドレス

OWN-USER-IDstringOptional

任意: このリクエストに使用するユーザーのID

Body
startDatestringOptional

開始日をYYYY-MM-DD形式で範囲指定

endDatestringOptional

終了日を YYYY-MM-DD 形式で範囲指定します。

Responses
200

成功

application/json
errorsobject · nullableOptional
get/webapi/conversation_daily_count
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