App Market
Knowledge base related APIs
Get a list of apps. The apps are sorted by weight in descending order by default.
認証用のAPIキー
Search term for app name or description
Filter by app categories
Filter by app type
Filter by published status
Number of apps per page
50Cursor for pagination
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
OK
Response for listing apps.
Cursor for pagination
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/apps HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"apps": [
{
"id": "text",
"name": "text",
"description": "text",
"type": "text",
"category": "text",
"published": true,
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}
],
"cursor": "text"
}Get a specific app by ID.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
OK
App information.
Unique ID of the app
Name of the app
Description of the app
Type of the app
Category of the app
Whether the app is published
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/apps/{app_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"id": "text",
"name": "text",
"description": "text",
"type": "text",
"category": "text",
"published": true,
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}Update an app.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
Request schema for updating an app.
Name of the app
Description of the app
Category of the app
Whether the app is published
OK
App information.
Unique ID of the app
Name of the app
Description of the app
Type of the app
Category of the app
Whether the app is published
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/apps/{app_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 359
{
"name": "text",
"description": "text",
"category": "text",
"published": true,
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}{
"id": "text",
"name": "text",
"description": "text",
"type": "text",
"category": "text",
"published": true,
"agentPermission": {
"accessAgents": [
{
"agentId": "text",
"accessType": "order_1_editor"
}
],
"accessPermissionGroups": [
{
"permissionGroupId": "text",
"permissionGroupName": "text",
"accessType": "order_1_editor"
}
],
"viewAccessToAgent": true
},
"userPermission": {
"ownUserIds": [
"text"
],
"customerGroups": [
"text"
],
"viewAccessToUser": true
}
}キャンペーンAppをストリーミングレスポンスで実行します。
キャンペーン(スキル/エージェント)Appを実行し、ストリーミングレスポンスを返します。 テキストメッセージ、ボタン選択、ファイル/メディアのアップロード、フォーム送信に対応しています。 常にmultipart/form-dataを使用します。send_form_inputはJSON文字列として渡してください。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
Existing conversation ID to continue
User message text
Button/option choice indices (JSON array string, e.g. '[0, 1]')
Form submission data (JSON string)
IDs of already-uploaded files, as a JSON array string, used instead of binary uploads.
Per-turn shared KnowledgeBase or Folder node IDs as JSON array of global IDs
Per-turn personal KnowledgeBase or Folder node IDs as JSON array of global IDs
Per-turn web search URLs as JSON array of strings
OK
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/apps/{app_id}/run_conversation HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 259
{
"conversationId": "text",
"message": "text",
"choices": "text",
"sendFormInput": "text",
"fileIds": "text",
"sharedKnowledgeBaseNodeIds": "text",
"personalKnowledgeBaseNodeIds": "text",
"webSites": "text",
"files": [
"binary"
],
"media_files": [
"binary"
],
"form_files": [
"binary"
]
}No content
プロジェクトのcognitive_configをJSONで返します。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
OK
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/cognitive_config HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}cognitive_configのフィールドを部分更新します。
リクエストボディ: field_name -> value のフラットなJSON dict。 指定したフィールドのみ更新され、他は変更されません。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
OK
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/cognitive_config HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"ANY_ADDITIONAL_PROPERTY": "anything"
}作成したアプリの一覧を取得するために利用できます。
認証用の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/apps HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
{
"result": [
{
"id": "text",
"name": "text",
"type": "single_action",
"description": "text",
"category": "text",
"app_from": "text",
"app_url": "text"
}
]
}このAPIを通じてシングルアクションアプリを作成することが可能です
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
create App API success response
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/apps HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 472
{
"user_id": "text",
"type": "single_action",
"name": "text",
"description": "text",
"category": "text",
"published": true,
"enabled": true,
"single_action_app_input": {
"name": "text",
"description": "text",
"llm_model": "text",
"selected_llm_processing_method": "stuff",
"selected_map_reduce_input_variable_name": "text",
"inputs": [
{
"name": "text",
"value": "text",
"placeholder": "text",
"input_type": "text",
"options": [
{
"name": "text",
"value": "text"
}
]
}
],
"messages": [
{
"role": "system",
"content": "text"
}
]
}
}{
"result": {
"id": "text"
}
}This API allows you to retrieve a specific LLM app by its ID.
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.
No content
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/apps/{app_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
No content
This API allows you to update an existing LLM app's properties.
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, optional): Name of the app.
description (string, optional): Description of the app.
category (string, optional): Category of the app.
published (boolean, optional): Whether the app is published.
enabled (boolean, optional): Whether the app is enabled.
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
Invalid request parameters.
No content
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/apps/{app_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
No content
This API allows you to delete an LLM app by its ID.
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.
No content
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/apps/{app_id} HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Accept: */*
No content
REST APIからLLM Appを実行します。JSONリクエストに対応しています。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
Execution mode. Use "sync" for synchronous responses or "stream" for streaming responses. Default is "sync".
syncPossible values: Whether to maintain conversation state. Set to true to enable conversation history. When true, conversationId must be provided for follow-up messages.
falseConversation ID for continuing a previous conversation. Required when isStateful is true for follow-up messages. Use the conversation.id from the previous response.
Name of the LLM model to use. Must be a registered model name (lowercase). See model registration documentation for available models.
ID of the LLM prompt to use
ID of the Generative Answer prompt group to use
Controls the randomness of the output. Higher values make the output more random. Range is typically 0 to 2.
0List of required variable names to include in the response
Successfully executed the LLM App
Error message if an error occurred
Bad request
Unauthorized - Invalid or missing authentication token
Access denied. The project is inactive or the request IP is not allowed.
Rate limit exceeded
Internal server error
POST /webapi/apps/{app_id}/run HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 355
{
"chat": {
"message": "text",
"source": {
"knowledgeBaseIds": [
"text"
],
"folderIds": [
"text"
],
"webSites": [
"text"
]
},
"useNodeDefaultInputSource": false
},
"inputs": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"mode": "sync",
"isStateful": false,
"conversationId": "text",
"llmModel": "text",
"llmPromptId": "text",
"gaPromptGroupId": "text",
"temperature": 0,
"requiredVariables": [
"text"
]
}{
"result": {
"id": "text",
"name": "text",
"type": "campaign",
"category": "General",
"responses": [
{
"id": "text",
"type": "text",
"message": "text",
"source": {},
"sender": "text",
"createdAt": "2024-09-23T04:53:12.675",
"completed": true,
"citations": [
{
"clueId": "text",
"source": "text",
"title": "text",
"knowledgeBaseId": "text",
"pageNo": 1,
"url": "text",
"text": "text"
}
],
"error": {
"timestamp": 1,
"nodeId": "text",
"nodeType": "text",
"errorType": "text",
"errorObject": {}
},
"intermediateStep": {
"completed": true,
"key": "text",
"createdAt": "2026-01-01T00:00:00.000Z",
"statusMessage": "text",
"markdownMessage": "text"
}
}
],
"variables": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"conversation": {
"id": "text",
"state": "text"
}
},
"error": "text"
}このAPIはスキルを実行し、最終的なテキスト回答をJSON形式で返します。このAPIは、スキルがエンティティ抽出のために設計されている場合にも、使用できます。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
スキルのIDです。Alliのダッシュボードでスキルをクリックすると、URLはhttps://app.alli.ai/projects/PROJECT_ID/campaigns/SKILL_IDのようになります。URL内のSKILL_IDを入力してください。
スキルを実行するための入力テキストです。
変数は、スキル内の変数を設定するためのJSONオブジェクトです。Alliにおける変数について詳は、ユーザーガイドをご覧ください。
正常に実行されました。
スキル実行からの最終テキスト出力。
エラーが発生した場合、ここにエラーメッセージが含まれます。
不正なリクエスト
許可されていないリクエストです。
Access denied. The project is inactive or the request IP is not allowed.
Internal server error.
POST /webapi/skill HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"id": "text",
"text": "text",
"variables": {}
}{
"result": "text",
"errors": [
"text"
]
}スキルを使用して会話を開始します。注意:このエンドポイントは現在、会話応答ノード、Q&Aノード、回答生成ノードとしか互換性がありません。アプリには対応していません。
認証用の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/start_conversation HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"placement": "text"
}{
"result": {
"conversation": {
"id": "text",
"project": {
"nluLanguage": "text"
},
"chats": {
"edges": [
{
"node": {
"id": "text",
"message": "text",
"createdAt": 1,
"chatOptionInfos": [
{
"shortenOption": "text",
"longOption": "text",
"style": {
"bgColor": "text",
"bold": true,
"fontColor": "text",
"italic": true,
"lineColor": "text",
"underline": true
},
"meta": "text"
}
],
"isDeleted": true
}
}
]
}
}
},
"errors": {}
}管理者側で会話ステータスを終了することができます。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
The conversation ID to end
Conversation ended successfully
Error information if the request fails
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/end_conversation_by_agent HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"id": "text"
}{
"result": {
"conversation": {
"id": "text",
"completedTime": 1,
"state": "text",
"__typename": "text"
},
"__typename": "text"
},
"errors": {}
}既存の会話においてユーザーとしてメッセージを送信します。注意: このエンドポイントは現在、メッセージノード、Q&Aノード、ドキュメントノード、回答生成ノードとのみ互換性があります。
認証用のAPIキー
任意: このリクエストに使用するメンバーのメールアドレス
任意: このリクエストに使用するユーザーのメールアドレス
任意: このリクエストに使用するユーザーのID
会話で送信するメッセージ。null または空の文字列にはできません。
メッセージを送信したい会話のユニーク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/send_chat HTTP/1.1
Host: backend-ja.alli.ai
API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"message": "text",
"conversationId": "text"
}{
"result": {
"responses": [
{
"id": "text",
"message": "text",
"createdAt": 1,
"chatOptionInfos": [
{
"shortenOption": "text",
"longOption": "text",
"style": {
"bgColor": "text",
"bold": true,
"fontColor": "text",
"italic": true,
"lineColor": "text",
"underline": true
},
"meta": "text"
}
],
"isDeleted": true
}
],
"state": "text"
},
"errors": {}
}Last updated