2026-05-09 12:01:47 +09:00
# Web API
Public APIs for web applications including file uploads, chat interactions, and app management
## Version: 1.0
2026-06-12 16:52:19 +09:00
### Available authorizations
2026-06-17 22:25:30 +08:00
#### Bearer (HTTP, bearer)
Use the Service API key as a Bearer token in the Authorization header.
Bearer format: API_KEY
2026-05-09 12:01:47 +09:00
---
## web
Web application API operations
2026-06-12 16:52:19 +09:00
### [POST] /audio-to-text
**Convert audio to text**
2026-05-09 12:01:47 +09:00
Convert audio file to text using speech-to-text service.
2026-11-24 15:59:58 +00:00
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **multipart/form-data** : { ** "file"**: binary }<br> |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-07-09 13:23:13 +09:00
| 200 | Success | **application/json** : [AudioToTextResponse ](#audiototextresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [AppUnavailableError ](#appunavailableerror )<br>[CompletionRequestError ](#completionrequesterror )<br>[ModelCurrentlyNotSupportError ](#modelcurrentlynotsupporterror )<br>[NoAudioUploadedError ](#noaudiouploadederror )<br>[ProviderNotInitializeError ](#providernotinitializeerror )<br>[ProviderNotSupportSpeechToTextError ](#providernotsupportspeechtotexterror )<br>[ProviderQuotaExceededError ](#providerquotaexceedederror )<br>[SpeechToTextDisabledError ](#speechtotextdisablederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 413 | Audio file too large | **application/json** : [AudioTooLargeError ](#audiotoolargeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 415 | Unsupported audio type | **application/json** : [UnsupportedAudioTypeError ](#unsupportedaudiotypeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /chat-messages
2026-05-09 12:01:47 +09:00
Create a chat message for conversational applications.
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [ChatMessagePayload ](#chatmessagepayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [GeneratedAppResponse ](#generatedappresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [AgentNotPublishedError ](#agentnotpublishederror )<br>[AppUnavailableError ](#appunavailableerror )<br>[CompletionRequestError ](#completionrequesterror )<br>[ModelCurrentlyNotSupportError ](#modelcurrentlynotsupporterror )<br>[NotChatAppError ](#notchatapperror )<br>[ProviderNotInitializeError ](#providernotinitializeerror )<br>[ProviderQuotaExceededError ](#providerquotaexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | App Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 429 | Too Many Requests | **application/json** : [RateLimitError ](#ratelimiterror )<br>[ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /chat-messages/{task_id}/stop
2026-05-09 12:01:47 +09:00
Stop a running chat message task.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| task_id | path | Task ID to stop | Yes | string |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Success | **application/json** : [SimpleResultResponse ](#simpleresultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [NotChatAppError ](#notchatapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | Task Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /completion-messages
2026-05-09 12:01:47 +09:00
Create a completion message for text generation applications.
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [CompletionMessagePayload ](#completionmessagepayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [GeneratedAppResponse ](#generatedappresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [AppUnavailableError ](#appunavailableerror )<br>[CompletionRequestError ](#completionrequesterror )<br>[ModelCurrentlyNotSupportError ](#modelcurrentlynotsupporterror )<br>[NotCompletionAppError ](#notcompletionapperror )<br>[ProviderNotInitializeError ](#providernotinitializeerror )<br>[ProviderQuotaExceededError ](#providerquotaexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | App Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /completion-messages/{task_id}/stop
2026-05-09 12:01:47 +09:00
Stop a running completion message task.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| task_id | path | Task ID to stop | Yes | string |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Success | **application/json** : [SimpleResultResponse ](#simpleresultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [NotCompletionAppError ](#notcompletionapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | Task Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /conversations
2026-05-09 12:01:47 +09:00
Retrieve paginated list of conversations for a chat application.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-12 22:25:53 +08:00
| last_id | query | | No | string |
| limit | query | | No | integer, <br>**Default:** 20 |
| pinned | query | | No | boolean |
| sort_by | query | | No | string, <br>**Available values:** "-created_at", "-updated_at", "created_at", "updated_at", <br>**Default:** -updated_at |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [ConversationInfiniteScrollPagination ](#conversationinfinitescrollpagination )<br> |
2026-10-28 03:26:06 +00:00
| 400 | Invalid conversation list query or app mode does not match the API route. | **application/json** : [NotChatAppError ](#notchatapperror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-28 03:26:06 +00:00
| 404 | `conversation_cursor_not_found` : Cursor is outside the current list. `conversation_not_found` : The app or user is no longer available. | **application/json** : [ConversationCursorNotFoundError ](#conversationcursornotfounderror )<br>[ConversationNotFoundError ](#conversationnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [DELETE] /conversations/{c_id}
2026-05-09 12:01:47 +09:00
Delete a specific conversation.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-17 22:25:30 +08:00
| c_id | path | Conversation UUID | Yes | string (uuid) |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-10-14 08:25:50 +00:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 204 | Conversation deleted successfully | |
| 400 | Bad Request | **application/json** : [NotChatAppError ](#notchatapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-27 07:38:42 +00:00
| 404 | `conversation_not_found` : Conversation does not exist for this user and app. | **application/json** : [ConversationNotFoundError ](#conversationnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /conversations/{c_id}/name
2026-05-09 12:01:47 +09:00
Rename a specific conversation with a custom name or auto-generate one.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-17 22:25:30 +08:00
| c_id | path | Conversation UUID | Yes | string (uuid) |
2026-05-09 12:01:47 +09:00
| auto_generate | query | Auto-generate conversation name | No | boolean |
| name | query | New conversation name | No | string |
2026-06-12 22:25:53 +08:00
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [ConversationRenamePayload ](#conversationrenamepayload )<br> |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-10-27 06:59:24 +00:00
| 200 | Conversation renamed successfully; model failure preserves the existing name. | **application/json** : [SimpleConversation ](#simpleconversation )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [NotChatAppError ](#notchatapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-27 06:59:24 +00:00
| 404 | `conversation_not_found` : Conversation does not exist. `conversation_first_message_not_found` : No first message is available for automatic naming. | **application/json** : [ConversationFirstMessageNotFoundError ](#conversationfirstmessagenotfounderror )<br>[ConversationNotFoundError ](#conversationnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 422 | Invalid conversation rename payload. | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [PATCH] /conversations/{c_id}/pin
2026-05-09 12:01:47 +09:00
Pin a specific conversation to keep it at the top of the list.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-17 22:25:30 +08:00
| c_id | path | Conversation UUID | Yes | string (uuid) |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Conversation pinned successfully | **application/json** : [ResultResponse ](#resultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [NotChatAppError ](#notchatapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-27 07:38:42 +00:00
| 404 | `conversation_not_found` : Conversation does not exist for this user and app. | **application/json** : [ConversationNotFoundError ](#conversationnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [PATCH] /conversations/{c_id}/unpin
2026-10-27 07:38:42 +00:00
Remove the current user's pin. Succeeds when the conversation is already unpinned.
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-17 22:25:30 +08:00
| c_id | path | Conversation UUID | Yes | string (uuid) |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Conversation unpinned successfully | **application/json** : [ResultResponse ](#resultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [NotChatAppError ](#notchatapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-27 07:38:42 +00:00
| 404 | `conversation_not_found` : The app or user is no longer available. | **application/json** : [ConversationNotFoundError ](#conversationnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /email-code-login
2026-05-09 12:01:47 +09:00
Send email verification code for login
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [EmailCodeLoginSendPayload ](#emailcodeloginsendpayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Email code sent successfully | **application/json** : [SimpleResultDataResponse ](#simpleresultdataresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad request - invalid email format | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [AuthenticationFailedError ](#authenticationfailederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Account not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /email-code-login/validity
2026-05-09 12:01:47 +09:00
Verify email code and complete login
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [EmailCodeLoginVerifyPayload ](#emailcodeloginverifypayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Email code verified and login successful | **application/json** : [AccessTokenResultResponse ](#accesstokenresultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad request - invalid code or token | **application/json** : [AccountBannedError ](#accountbannederror )<br>[EmailCodeError ](#emailcodeerror )<br>[InvalidEmailError ](#invalidemailerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Invalid token or expired code | **application/json** : [AuthenticationFailedError ](#authenticationfailederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Account not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /files/upload
**Upload a file for use in web applications**
2026-05-09 12:01:47 +09:00
Upload a file for use in web applications
Accepts file uploads for use within web applications, supporting
multiple file types with automatic validation and storage.
Args:
app_model: The associated application model
end_user: The end user uploading the file
Form Parameters:
file: The file to upload (required)
source: Optional source type (datasets or None)
Returns:
dict: File information including ID, URL, and metadata
int: HTTP status code 201 for success
Raises:
NoFileUploadedError: No file provided in request
TooManyFilesError: Multiple files provided (only one allowed)
FilenameNotExistsError: File has no filename
FileTooLargeError: File exceeds size limit
UnsupportedFileTypeError: File type not supported
2026-09-03 04:42:30 +00:00
BlockedFileExtensionError: File extension is blocked
2026-05-09 12:01:47 +09:00
2026-11-24 13:39:41 +00:00
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **multipart/form-data** : { ** "file"**: binary }<br> |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 201 | File uploaded successfully | **application/json** : [FileResponse ](#fileresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | - `no_file_uploaded` : No file was provided in the request. - `too_many_files` : Only one file is allowed per request. - `filename_not_exists_error` : The uploaded file has no filename. - `file_extension_blocked` : The file extension is blocked for security reasons. | **application/json** : [FileExtensionBlockedError ](#fileextensionblockederror )<br>[FilenameNotExistsError ](#filenamenotexistserror )<br>[NoFileUploadedError ](#nofileuploadederror )<br>[TooManyFilesError ](#toomanyfileserror )<br>[ErrorResponse ](#errorresponse )<br> |
| 413 | `file_too_large` : File size exceeded. | **application/json** : [FileTooLargeError ](#filetoolargeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 415 | `unsupported_file_type` : File type not allowed. | **application/json** : [UnsupportedFileTypeError ](#unsupportedfiletypeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /forgot-password
2026-05-09 12:01:47 +09:00
Send password reset email
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [ForgotPasswordSendPayload ](#forgotpasswordsendpayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Password reset email sent successfully | **application/json** : [SimpleResultDataResponse ](#simpleresultdataresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad request - invalid email format | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [AuthenticationFailedError ](#authenticationfailederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Account not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 429 | Too many requests - rate limit exceeded | **application/json** : [EmailSendIpLimitError ](#emailsendiplimiterror )<br>[PasswordResetRateLimitExceededError ](#passwordresetratelimitexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /forgot-password/resets
2026-05-09 12:01:47 +09:00
Reset user password with verification token
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [ForgotPasswordResetPayload ](#forgotpasswordresetpayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Password reset successfully | **application/json** : [SimpleResultResponse ](#simpleresultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad request - invalid parameters or password mismatch | **application/json** : [InvalidOrExpiredTokenError ](#invalidorexpiredtokenerror )<br>[PasswordMismatchError ](#passwordmismatcherror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Invalid or expired token | **application/json** : [AuthenticationFailedError ](#authenticationfailederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Account not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /forgot-password/validity
2026-05-09 12:01:47 +09:00
Verify password reset token validity
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [ForgotPasswordCheckPayload ](#forgotpasswordcheckpayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Token is valid | **application/json** : [VerificationTokenResponse ](#verificationtokenresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad request - invalid token format | **application/json** : [EmailCodeError ](#emailcodeerror )<br>[InvalidEmailError ](#invalidemailerror )<br>[InvalidOrExpiredTokenError ](#invalidorexpiredtokenerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Invalid or expired token | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 429 | Too Many Requests | **application/json** : [EmailPasswordResetLimitError ](#emailpasswordresetlimiterror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-10-30 02:43:31 +00:00
### [GET] /form/human-input/v2/public/{form_token}
Read a public v2 form definition by delivery token without an OTP or login session.
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| form_token | path | | Yes | string |
#### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Form definition | **application/json** : [FormDefinitionResponse ](#formdefinitionresponse )<br> |
| 404 | Form not found | **application/json** : [HumanInputFormNotFoundError ](#humaninputformnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 412 | Form already submitted or expired | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
### [POST] /form/human-input/v2/public/{form_token}
Submit a form with inputs, an action, and email verification proof.
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| form_token | path | | Yes | string |
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [HumanInputV2FormSubmitRequest ](#humaninputv2formsubmitrequest )<br> |
#### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Form submitted | **application/json** : [FormSubmitResponse ](#formsubmitresponse )<br> |
| 400 | Invalid form or email proof | **application/json** : [HumanInputChallengeExpiredError ](#humaninputchallengeexpirederror )<br>[HumanInputChallengeStaleError ](#humaninputchallengestaleerror )<br>[HumanInputInvalidOtpError ](#humaninputinvalidotperror )<br>[InvalidInputError ](#invalidinputerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Form not found | **application/json** : [HumanInputFormNotFoundError ](#humaninputformnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 409 | Workflow not active | **application/json** : [WorkflowNotActiveError ](#workflownotactiveerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 412 | Already submitted or expired | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 422 | Invalid request body | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 503 | Email verification unavailable | **application/json** : [HumanInputV2UnavailableError ](#humaninputv2unavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
### [POST] /form/human-input/v2/public/{form_token}/access-request
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| form_token | path | | Yes | string |
#### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [FormAccessRequestResponse ](#formaccessrequestresponse )<br> |
| 404 | Not Found | **application/json** : [HumanInputFormNotFoundError ](#humaninputformnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 412 | Precondition Failed | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 429 | Too Many Requests | **application/json** : [HumanInputAccessRateLimitExceededError ](#humaninputaccessratelimitexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 503 | Service Unavailable | **application/json** : [HumanInputAccessDeliveryFailedError ](#humaninputaccessdeliveryfailederror )<br>[HumanInputV2UnavailableError ](#humaninputv2unavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
### [POST] /form/human-input/v2/public/{form_token}/upload-token
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| form_token | path | | Yes | string |
#### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [FormUploadTokenResponse ](#formuploadtokenresponse )<br> |
| 403 | Forbidden | **application/json** : [InvalidUploadTokenError ](#invaliduploadtokenerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Form not found | **application/json** : [HumanInputFormNotFoundError ](#humaninputformnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 412 | Already submitted or expired | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
### [GET] /form/human-input/v2/{form_token}
Read a v2 form using the original EndUser's Web App passport.
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| form_token | path | | Yes | string |
#### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Form retrieved | **application/json** : [WebAppHumanInputV2FormDefinitionResponse ](#webapphumaninputv2formdefinitionresponse )<br> |
| 401 | Invalid passport | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | Form not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 409 | Already submitted | **application/json** : [AlreadySubmittedError ](#alreadysubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 410 | Expired | **application/json** : [ExpiredError ](#expirederror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
### [POST] /form/human-input/v2/{form_token}
Submit a v2 form using the original EndUser's Web App passport.
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| form_token | path | | Yes | string |
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [WebAppHumanInputV2SubmitPayload ](#webapphumaninputv2submitpayload )<br> |
#### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Approval accepted | **application/json** : [WebAppHumanInputV2SubmitResponse ](#webapphumaninputv2submitresponse )<br> |
| 400 | Invalid inputs | **application/json** : [InvalidInputError ](#invalidinputerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Invalid passport | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | Form not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 409 | Already submitted or workflow not active | **application/json** : [AlreadySubmittedError ](#alreadysubmittederror )<br>[WorkflowNotActiveError ](#workflownotactiveerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 410 | Expired | **application/json** : [ExpiredError ](#expirederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 422 | Invalid request body | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-06-12 16:52:19 +09:00
### [GET] /form/human_input/{form_token}
**Get human input form definition by token**
2026-05-09 12:01:47 +09:00
2026-07-09 13:23:13 +09:00
Get a human input form definition by token
2026-05-09 12:01:47 +09:00
GET /api/form/human_input/<form_token>
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-07-09 13:23:13 +09:00
| form_token | path | Human input form token | Yes | string |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-07-09 13:23:13 +09:00
| 200 | Form retrieved successfully | **application/json** : [HumanInputFormDefinitionResponse ](#humaninputformdefinitionresponse )<br> |
2026-10-14 08:25:50 +00:00
| 403 | Forbidden | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | Form not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 412 | Form already submitted or expired | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 429 | Too many requests | **application/json** : [WebFormRateLimitExceededError ](#webformratelimitexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /form/human_input/{form_token}
**Submit human input form by token**
2026-05-09 12:01:47 +09:00
2026-07-09 13:23:13 +09:00
Submit a human input form by token
2026-05-09 12:01:47 +09:00
POST /api/form/human_input/<form_token>
Request body:
{
"inputs": {
"content": "User input content"
},
"action": "Approve"
}
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-07-09 13:23:13 +09:00
| form_token | path | Human input form token | Yes | string |
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [HumanInputFormSubmitPayload ](#humaninputformsubmitpayload )<br> |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-07-09 13:23:13 +09:00
| 200 | Form submitted successfully | **application/json** : [HumanInputFormSubmitResponse ](#humaninputformsubmitresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad request - invalid submission data | **application/json** : [InvalidFormDataError ](#invalidformdataerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Form not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 412 | Form already submitted or expired | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 429 | Too many requests | **application/json** : [WebFormRateLimitExceededError ](#webformratelimitexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /form/human_input/{form_token}/upload-token
**Issue an upload token for a human input form**
2026-06-04 09:54:28 +08:00
2026-07-09 13:23:13 +09:00
Issue an upload token for an active human input form
2026-06-04 09:54:28 +08:00
POST /api/form/human_input/<form_token>/upload-token
2026-06-12 16:52:19 +09:00
#### Parameters
2026-06-04 09:54:28 +08:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-07-09 13:23:13 +09:00
| form_token | path | Human input form token | Yes | string |
2026-06-04 09:54:28 +08:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-06-04 09:54:28 +08:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-07-09 13:23:13 +09:00
| 200 | Upload token issued successfully | **application/json** : [HumanInputUploadTokenResponse ](#humaninputuploadtokenresponse )<br> |
2026-10-14 08:25:50 +00:00
| 404 | Form not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 412 | Form already submitted or expired | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 429 | Too many requests | **application/json** : [WebFormRateLimitExceededError ](#webformratelimitexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-06-04 09:54:28 +08:00
2026-06-12 16:52:19 +09:00
### [POST] /human-input-forms/files
**Upload one local file or remote URL file for a HITL human input form**
2026-06-04 09:54:28 +08:00
2026-11-24 13:39:41 +00:00
#### Request Body
| Required | Schema |
| -------- | ------ |
| No | **multipart/form-data** : { ** "file"**: binary, ** "url"**: string }<br> |
2026-06-12 16:52:19 +09:00
#### Responses
2026-06-04 09:54:28 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 201 | File uploaded successfully | **application/json** : [FileResponse ](#fileresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [FileExtensionBlockedError ](#fileextensionblockederror )<br>[FilenameNotExistsError ](#filenamenotexistserror )<br>[MalformedUploadTokenError ](#malformeduploadtokenerror )<br>[NoFileUploadedError ](#nofileuploadederror )<br>[RemoteFileAccessDeniedError ](#remotefileaccessdeniederror )<br>[RemoteFileInvalidUrlError ](#remotefileinvalidurlerror )<br>[RemoteFileUrlBlockedError ](#remotefileurlblockederror )<br>[TooManyFilesError ](#toomanyfileserror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [UploadTokenRequiredError ](#uploadtokenrequirederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 403 | Forbidden | **application/json** : [InvalidUploadTokenError ](#invaliduploadtokenerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Not Found | **application/json** : [RemoteFileNotFoundError ](#remotefilenotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 412 | Precondition Failed | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 413 | Request Entity Too Large | **application/json** : [FileTooLargeError ](#filetoolargeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 415 | Unsupported Media Type | **application/json** : [UnsupportedFileTypeError ](#unsupportedfiletypeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 502 | Bad Gateway | **application/json** : [RemoteFileInvalidResponseError ](#remotefileinvalidresponseerror )<br>[RemoteFileUnavailableError ](#remotefileunavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-06-04 09:54:28 +08:00
2026-10-30 02:43:31 +00:00
### [POST] /human-input/v2/files
Upload a file or a remote URL using a v2 upload grant.
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| Authorization | header | Bearer v2 upload grant | Yes | string |
#### Request Body
| Required | Schema |
| -------- | ------ |
| No | **multipart/form-data** : { ** "file"**: binary, ** "url"**: string }<br> |
#### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 201 | File uploaded | **application/json** : [FileWithSignedUrl ](#filewithsignedurl )<br> |
| 400 | Invalid upload | **application/json** : [FileExtensionBlockedError ](#fileextensionblockederror )<br>[FilenameNotExistsError ](#filenamenotexistserror )<br>[MalformedUploadTokenError ](#malformeduploadtokenerror )<br>[NoFileUploadedError ](#nofileuploadederror )<br>[RemoteFileAccessDeniedError ](#remotefileaccessdeniederror )<br>[RemoteFileInvalidUrlError ](#remotefileinvalidurlerror )<br>[RemoteFileUrlBlockedError ](#remotefileurlblockederror )<br>[TooManyFilesError ](#toomanyfileserror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Grant required | **application/json** : [UploadTokenRequiredError ](#uploadtokenrequirederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 403 | Invalid grant | **application/json** : [InvalidUploadTokenError ](#invaliduploadtokenerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Form not found | **application/json** : [HumanInputFormNotFoundError ](#humaninputformnotfounderror )<br>[RemoteFileNotFoundError ](#remotefilenotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 412 | Form inactive | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 413 | Request Entity Too Large | **application/json** : [FileTooLargeError ](#filetoolargeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 415 | Unsupported Media Type | **application/json** : [UnsupportedFileTypeError ](#unsupportedfiletypeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 502 | Bad Gateway | **application/json** : [RemoteFileInvalidResponseError ](#remotefileinvalidresponseerror )<br>[RemoteFileUnavailableError ](#remotefileunavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
### [POST] /human-input/v2/files/remote
Fetch a remote file using a v2 upload grant.
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| Authorization | header | | Yes | string |
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [HumanInputV2RemoteUploadPayload ](#humaninputv2remoteuploadpayload )<br> |
#### Responses
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 201 | File uploaded | **application/json** : [FileWithSignedUrl ](#filewithsignedurl )<br> |
| 400 | Invalid upload | **application/json** : [FileExtensionBlockedError ](#fileextensionblockederror )<br>[FilenameNotExistsError ](#filenamenotexistserror )<br>[MalformedUploadTokenError ](#malformeduploadtokenerror )<br>[NoFileUploadedError ](#nofileuploadederror )<br>[RemoteFileAccessDeniedError ](#remotefileaccessdeniederror )<br>[RemoteFileInvalidUrlError ](#remotefileinvalidurlerror )<br>[RemoteFileUrlBlockedError ](#remotefileurlblockederror )<br>[TooManyFilesError ](#toomanyfileserror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Grant required | **application/json** : [UploadTokenRequiredError ](#uploadtokenrequirederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 403 | Invalid grant | **application/json** : [InvalidUploadTokenError ](#invaliduploadtokenerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Form not found | **application/json** : [HumanInputFormNotFoundError ](#humaninputformnotfounderror )<br>[RemoteFileNotFoundError ](#remotefilenotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 412 | Form inactive | **application/json** : [HumanInputFormExpiredError ](#humaninputformexpirederror )<br>[HumanInputFormSubmittedError ](#humaninputformsubmittederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 413 | Request Entity Too Large | **application/json** : [FileTooLargeError ](#filetoolargeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 415 | Unsupported Media Type | **application/json** : [UnsupportedFileTypeError ](#unsupportedfiletypeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 502 | Bad Gateway | **application/json** : [RemoteFileInvalidResponseError ](#remotefileinvalidresponseerror )<br>[RemoteFileUnavailableError ](#remotefileunavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-06-12 16:52:19 +09:00
### [POST] /login
**Authenticate user and login**
2026-05-09 12:01:47 +09:00
Authenticate user for web application access
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [LoginPayload ](#loginpayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Authentication successful | **application/json** : [AccessTokenResultResponse ](#accesstokenresultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad request - invalid email or password format | **application/json** : [AccountBannedError ](#accountbannederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Authentication failed - email or password mismatch | **application/json** : [AuthenticationFailedError ](#authenticationfailederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Account not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /login/status
2026-05-09 12:01:47 +09:00
Check login status
2026-06-12 22:25:53 +08:00
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| app_code | query | Web app code | No | string |
| user_id | query | End user session ID | No | string |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Login status | **application/json** : [LoginStatusResponse ](#loginstatusresponse )<br> |
2026-10-14 08:25:50 +00:00
| 401 | Login status | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-20 05:52:18 +00:00
| 404 | App not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 503 | Web app access service unavailable | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /logout
2026-05-09 12:01:47 +09:00
Logout user from web application
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Logout successful | **application/json** : [SimpleResultResponse ](#simpleresultresponse )<br> |
2026-10-14 08:25:50 +00:00
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /messages
2026-05-09 12:01:47 +09:00
Retrieve paginated list of messages from a conversation in a chat application.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-18 16:43:39 +08:00
| conversation_id | query | Conversation ID. | Yes | string |
| first_id | query | The ID of the first chat record on the current page. Omit this value to fetch the latest messages; for subsequent pages, use the first message ID from the current list to fetch older messages. | No | string |
| limit | query | Number of chat history messages to return per request. | No | integer, <br>**Default:** 20 |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [WebMessageInfiniteScrollPagination ](#webmessageinfinitescrollpagination )<br> |
2026-10-27 02:04:44 +00:00
| 400 | Bad Request - Not a chat app or app unavailable | **application/json** : [AppUnavailableError ](#appunavailableerror )<br>[NotChatAppError ](#notchatapperror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-27 02:04:44 +00:00
| 404 | Conversation, First Message, or End User Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /messages/{message_id}/feedbacks
2026-05-09 12:01:47 +09:00
Submit feedback (like/dislike) for a specific message.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-17 22:25:30 +08:00
| message_id | path | Message UUID | Yes | string (uuid) |
2026-05-09 12:01:47 +09:00
| content | query | Feedback content | No | string |
2026-06-12 16:52:19 +09:00
| rating | query | Feedback rating | No | string, <br>**Available values:** "dislike", "like" |
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [MessageFeedbackPayload ](#messagefeedbackpayload )<br> |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Feedback submitted successfully | **application/json** : [ResultResponse ](#resultresponse )<br> |
2026-10-26 09:46:11 +00:00
| 400 | `message_feedback_rating_required` : Cannot revoke feedback that does not exist. `app_unavailable` : App is no longer available. | **application/json** : [AppUnavailableError ](#appunavailableerror )<br>[MessageFeedbackRatingRequiredError ](#messagefeedbackratingrequirederror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-26 09:46:11 +00:00
| 403 | Forbidden | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 404 | Message Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /messages/{message_id}/more-like-this
2026-05-09 12:01:47 +09:00
Generate a new completion similar to an existing message (completion apps only).
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-12 16:52:19 +09:00
| response_mode | query | Response mode | Yes | string, <br>**Available values:** "blocking", "streaming" |
2026-06-17 22:25:30 +08:00
| message_id | path | | Yes | string (uuid) |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [GeneratedAppResponse ](#generatedappresponse )<br> |
2026-10-26 09:09:42 +00:00
| 400 | Bad Request - Not a completion app, app unavailable, or model invocation failed | **application/json** : [AppUnavailableError ](#appunavailableerror )<br>[CompletionRequestError ](#completionrequesterror )<br>[ModelCurrentlyNotSupportError ](#modelcurrentlynotsupporterror )<br>[NotCompletionAppError ](#notcompletionapperror )<br>[ProviderNotInitializeError ](#providernotinitializeerror )<br>[ProviderQuotaExceededError ](#providerquotaexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-26 09:09:42 +00:00
| 403 | Forbidden - Access denied or more-like-this disabled | **application/json** : [AppMoreLikeThisDisabledError ](#appmorelikethisdisablederror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 404 | Message Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /messages/{message_id}/suggested-questions
2026-10-26 08:12:51 +00:00
Get suggested follow-up questions after a message (chat apps only). If no usable model can be resolved or the model call to generate questions fails, the response is HTTP 200 with an empty data list. Model invocation failures during history token counting instead return HTTP 400 with `completion_request_error` .
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-17 22:25:30 +08:00
| message_id | path | Message UUID | Yes | string (uuid) |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Success | **application/json** : [SuggestedQuestionsResponse ](#suggestedquestionsresponse )<br> |
2026-10-26 08:12:51 +00:00
| 400 | Bad Request - Not a chat app or app unavailable; `completion_request_error` when model invocation fails while counting history tokens. | **application/json** : [AppUnavailableError ](#appunavailableerror )<br>[CompletionRequestError ](#completionrequesterror )<br>[ModelCurrentlyNotSupportError ](#modelcurrentlynotsupporterror )<br>[NotChatAppError ](#notchatapperror )<br>[ProviderNotInitializeError ](#providernotinitializeerror )<br>[ProviderQuotaExceededError ](#providerquotaexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-10-26 08:12:51 +00:00
| 403 | Forbidden - Access denied or suggested questions disabled | **application/json** : [AppSuggestedQuestionsAfterAnswerDisabledError ](#appsuggestedquestionsafteranswerdisablederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | App, End User, Message, or Conversation Not Found | **application/json** : [AgentVersionNotFoundError ](#agentversionnotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
2026-10-14 08:25:50 +00:00
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /meta
**Get app meta**
2026-05-09 12:01:47 +09:00
Retrieve the metadata for a specific app.
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [AppMetaResponse ](#appmetaresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [AppUnavailableError ](#appunavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | App Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /parameters
**Retrieve app parameters**
2026-05-09 12:01:47 +09:00
Retrieve the parameters for a specific app.
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [Parameters ](#parameters )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [AgentNotPublishedError ](#agentnotpublishederror )<br>[AppUnavailableError ](#appunavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | App Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /passport
2026-05-09 12:01:47 +09:00
Get authentication passport for web application access
2026-06-12 22:25:53 +08:00
#### Parameters
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| user_id | query | End user session ID | No | string |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-07-06 16:53:21 +09:00
| 200 | Passport retrieved successfully | **application/json** : [PassportAccessTokenResponse ](#passportaccesstokenresponse )<br> |
2026-10-14 08:25:50 +00:00
| 401 | Unauthorized - missing app code or invalid authentication | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | Application or user not found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /remote-files/upload
**Upload a file from a remote URL**
2026-05-09 12:01:47 +09:00
Upload a file from a remote URL
Downloads a file from the provided remote URL and uploads it
to the platform storage for use in web applications.
Args:
app_model: The associated application model
end_user: The end user making the request
JSON Parameters:
url: The remote URL to download the file from (required)
Returns:
dict: File information including ID, signed URL, and metadata
int: HTTP status code 201 for success
Raises:
2026-09-03 06:00:13 +00:00
RemoteFileInvalidUrlError: Remote file URL is invalid
RemoteFileUrlBlockedError: Remote file URL is blocked
RemoteFileNotFoundError: Remote file does not exist
RemoteFileAccessDeniedError: Remote file requires authorization
RemoteFileUnavailableError: Remote file is unavailable
RemoteFileInvalidResponseError: Remote file response is invalid
2026-05-09 12:01:47 +09:00
FileTooLargeError: File exceeds size limit
UnsupportedFileTypeError: File type not supported
2026-06-12 22:25:53 +08:00
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [RemoteFileUploadPayload ](#remotefileuploadpayload )<br> |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 201 | Remote file uploaded successfully | **application/json** : [FileWithSignedUrl ](#filewithsignedurl )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Invalid, blocked, or inaccessible remote file URL | **application/json** : [FileExtensionBlockedError ](#fileextensionblockederror )<br>[RemoteFileAccessDeniedError ](#remotefileaccessdeniederror )<br>[RemoteFileInvalidUrlError ](#remotefileinvalidurlerror )<br>[RemoteFileUrlBlockedError ](#remotefileurlblockederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Remote file not found | **application/json** : [RemoteFileNotFoundError ](#remotefilenotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 413 | File too large | **application/json** : [FileTooLargeError ](#filetoolargeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 415 | Unsupported file type | **application/json** : [UnsupportedFileTypeError ](#unsupportedfiletypeerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 422 | Request payload validation failed | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal server error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 502 | Remote file unavailable or returned an invalid response | **application/json** : [RemoteFileInvalidResponseError ](#remotefileinvalidresponseerror )<br>[RemoteFileUnavailableError ](#remotefileunavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /remote-files/{url}
**Get information about a remote file**
2026-05-09 12:01:47 +09:00
Get information about a remote file
Retrieves basic information about a file located at a remote URL,
including content type and content length.
Args:
app_model: The associated application model
end_user: The end user making the request
url: URL-encoded path to the remote file
Returns:
dict: Remote file information including type and length
Raises:
HTTPException: If the remote file cannot be accessed
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| url | path | | Yes | string |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Remote file information retrieved successfully | **application/json** : [RemoteFileInfo ](#remotefileinfo )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Invalid, blocked, or inaccessible remote file URL | **application/json** : [RemoteFileAccessDeniedError ](#remotefileaccessdeniederror )<br>[RemoteFileInvalidUrlError ](#remotefileinvalidurlerror )<br>[RemoteFileUrlBlockedError ](#remotefileurlblockederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | Remote file not found | **application/json** : [RemoteFileNotFoundError ](#remotefilenotfounderror )<br>[ErrorResponse ](#errorresponse )<br> |
| 500 | Internal server error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 502 | Remote file unavailable or returned an invalid response | **application/json** : [RemoteFileInvalidResponseError ](#remotefileinvalidresponseerror )<br>[RemoteFileUnavailableError ](#remotefileunavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /saved-messages
2026-05-09 12:01:47 +09:00
Retrieve paginated list of saved messages for a completion application.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-12 22:25:53 +08:00
| last_id | query | | No | string |
| limit | query | | No | integer, <br>**Default:** 20 |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [SavedMessageInfiniteScrollPagination ](#savedmessageinfinitescrollpagination )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request - Not a completion app | **application/json** : [NotCompletionAppError ](#notcompletionapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | App Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /saved-messages
2026-05-09 12:01:47 +09:00
Save a specific message for later reference.
2026-06-12 22:25:53 +08:00
#### Request Body
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [SavedMessageCreatePayload ](#savedmessagecreatepayload )<br> |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Message saved successfully | **application/json** : [ResultResponse ](#resultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request - Not a completion app | **application/json** : [NotCompletionAppError ](#notcompletionapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | Message Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [DELETE] /saved-messages/{message_id}
2026-05-09 12:01:47 +09:00
Remove a message from saved messages.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
2026-06-17 22:25:30 +08:00
| message_id | path | Message UUID to delete | Yes | string (uuid) |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-10-14 08:25:50 +00:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 204 | Message removed successfully | |
| 400 | Bad Request - Not a completion app | **application/json** : [NotCompletionAppError ](#notcompletionapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | Message Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /site
**Retrieve app site info**
2026-05-09 12:01:47 +09:00
Retrieve app site information and configuration.
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-07-09 13:23:13 +09:00
| 200 | Success | **application/json** : [WebAppSiteResponse ](#webappsiteresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 403 | Forbidden | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | App Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /system-features
2026-07-25 10:01:12 +08:00
**Get the non-sensitive bootstrap snapshot exposed before authentication**
2026-05-09 12:01:47 +09:00
2026-07-25 10:01:12 +08:00
Get the non-sensitive bootstrap snapshot exposed before Console or Web authentication. This is not a general feature registry.
2026-05-09 12:01:47 +09:00
This endpoint is akin to the `SystemFeatureApi` endpoint in api/controllers/console/feature.py,
except it is intended for use by the web app, instead of the console dashboard.
2026-07-25 10:01:12 +08:00
Authentication configuration must be available before the authentication flow can be selected.
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | System features retrieved successfully | **application/json** : [SystemFeatureModel ](#systemfeaturemodel )<br> |
2026-10-14 08:25:50 +00:00
| 500 | Internal server error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /text-to-audio
**Convert text to audio**
2026-05-09 12:01:47 +09:00
Convert text to audio using text-to-speech service.
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [TextToAudioPayload ](#texttoaudiopayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-10-14 08:25:50 +00:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | |
| 400 | Bad Request | **application/json** : [AppUnavailableError ](#appunavailableerror )<br>[CompletionRequestError ](#completionrequesterror )<br>[ModelCurrentlyNotSupportError ](#modelcurrentlynotsupporterror )<br>[ProviderNotInitializeError ](#providernotinitializeerror )<br>[ProviderQuotaExceededError ](#providerquotaexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /webapp/access-mode
2026-05-09 12:01:47 +09:00
Retrieve the access mode for a web application (public or restricted).
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| appCode | query | Application code | No | string |
| appId | query | Application ID | No | string |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Success | **application/json** : [AccessModeResponse ](#accessmoderesponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [InvalidParamError ](#invalidparamerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | App Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 503 | Web App Access Service Unavailable | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [GET] /webapp/permission
2026-05-09 12:01:47 +09:00
Check if user has permission to access a web application.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| appId | query | Application ID | Yes | string |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Success | **application/json** : [BooleanResultResponse ](#booleanresultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 503 | Web App Access Service Unavailable | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /workflows/run
**Run workflow**
2026-05-09 12:01:47 +09:00
Execute a workflow with provided inputs and files.
2026-06-12 16:52:19 +09:00
#### Request Body
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
| Required | Schema |
| -------- | ------ |
| Yes | **application/json** : [WorkflowRunPayload ](#workflowrunpayload )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | Success | **application/json** : [GeneratedAppResponse ](#generatedappresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [CompletionRequestError ](#completionrequesterror )<br>[ModelCurrentlyNotSupportError ](#modelcurrentlynotsupporterror )<br>[NotWorkflowAppError ](#notworkflowapperror )<br>[ProviderNotInitializeError ](#providernotinitializeerror )<br>[ProviderQuotaExceededError ](#providerquotaexceedederror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 403 | Forbidden | **application/json** : [TriggerWorkflowServiceModeUnavailableError ](#triggerworkflowservicemodeunavailableerror )<br>[ErrorResponse ](#errorresponse )<br> |
| 404 | App Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 429 | Too Many Requests | **application/json** : [RateLimitError ](#ratelimiterror )<br>[ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
2026-06-12 16:52:19 +09:00
### [POST] /workflows/tasks/{task_id}/stop
**Stop workflow task**
2026-05-09 12:01:47 +09:00
Stop a running workflow task.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| task_id | path | Task ID to stop | Yes | string |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
2026-06-12 16:52:19 +09:00
| 200 | Success | **application/json** : [SimpleResultResponse ](#simpleresultresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [NotWorkflowAppError ](#notworkflowapperror )<br>[ErrorResponse ](#errorresponse )<br> |
| 401 | Unauthorized | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 404 | Task Not Found | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| 500 | Internal Server Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
---
## default
Default namespace
2026-06-12 16:52:19 +09:00
### [GET] /workflow/{task_id}/events
**Get workflow execution events stream after resume**
2026-05-09 12:01:47 +09:00
GET /api/workflow/<task_id>/events
Returns Server-Sent Events stream.
2026-11-13 06:44:37 +00:00
Requires a run owned by the current app and end user. Pending V1 forms
expose only Web App recipient tokens; invalid ownership returns 404.
2026-06-12 16:52:19 +09:00
#### Parameters
2026-05-09 12:01:47 +09:00
| Name | Located in | Description | Required | Schema |
| ---- | ---------- | ----------- | -------- | ------ |
| task_id | path | | Yes | string |
2026-06-12 16:52:19 +09:00
#### Responses
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
| Code | Description | Schema |
| ---- | ----------- | ------ |
| 200 | SSE event stream | **application/json** : [EventStreamResponse ](#eventstreamresponse )<br> |
2026-10-14 08:25:50 +00:00
| 400 | Bad Request | **application/json** : [InvalidParamError ](#invalidparamerror )<br>[ErrorResponse ](#errorresponse )<br> |
| default | Error | **application/json** : [ErrorResponse ](#errorresponse )<br> |
2026-05-09 12:01:47 +09:00
---
2026-06-12 16:52:19 +09:00
### Schemas
2026-05-09 12:01:47 +09:00
2026-05-19 14:13:20 +08:00
#### AccessModeResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| accessMode | string | | Yes |
#### AccessTokenData
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| access_token | string | | Yes |
#### AccessTokenResultResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| data | [AccessTokenData ](#accesstokendata ) | | Yes |
| result | string | | Yes |
2026-10-14 08:25:50 +00:00
#### AccountBannedError
Account is banned.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AccountBannedError | | Account is banned. | |
#### AgentNotPublishedError
Agent has not been published. Please publish the Agent before using the web app.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AgentNotPublishedError | | Agent has not been published. Please publish the Agent before using the web app. | |
2026-06-12 22:25:53 +08:00
#### AgentThought
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-07-08 20:05:04 +08:00
| answer | string | | No |
2026-06-12 22:25:53 +08:00
| chain_id | string | | No |
| created_at | integer | | No |
| files | [ string ] | | Yes |
| id | string | | Yes |
| message_id | string | | Yes |
| observation | string | | No |
| position | integer | | Yes |
| thought | string | | No |
| tool | string | | No |
2026-11-27 03:44:31 +00:00
| tool_activity | [AgentToolActivity ](#agenttoolactivity ) | | No |
2026-06-12 22:25:53 +08:00
| tool_input | string | | No |
2026-10-16 03:47:31 +00:00
| tool_labels | [AnyJSONValue ](#anyjsonvalue ) | Labels for tools used. | Yes |
2026-11-27 03:44:31 +00:00
#### AgentToolActivity
One native tool call's application-owned, persistable display metadata.
Native call identity is independent of its display name and the SQL thought
row. Tool inputs, credentials and successful observations remain outside
this sidecar; ``error`` is a bounded failure description for display.
Missing metadata on older thoughts conveys no execution or quota claim.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| call_limit | [ToolCallLimitMetadata](#toolcalllimitmetadata) | | No |
| error | string | | No |
| id | string | | Yes |
| run_id | string | | Yes |
| status | string, <br>**Available values:** "cancelled", "failed", "not_executed", "running", "started", "succeeded" | *Enum:* ` "cancelled"`, ` "failed"`, ` "not_executed"`, ` "running"`, ` "started"`, ` "succeeded"` | Yes |
| tool_call_id | string | | Yes |
| tool_name | string | | Yes |
2026-10-26 08:12:51 +00:00
#### AgentVersionNotFoundError
Agent config version not found.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AgentVersionNotFoundError | | Agent config version not found. | |
2026-10-30 02:43:31 +00:00
#### AlreadySubmittedError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AlreadySubmittedError | | | |
2026-10-16 03:47:31 +00:00
#### AnyJSONValue
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AnyJSONValue | | | |
2026-06-12 22:25:53 +08:00
2026-05-09 12:01:47 +09:00
#### AppAccessModeQuery
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-05-17 01:40:20 +09:00
| appCode | string | Application code | No |
| appId | string | Application ID | No |
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
#### AppMetaResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| tool_icons | object | Tool icon metadata keyed by tool name | No |
2026-07-27 10:57:18 +08:00
#### AppMode
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AppMode | string | | |
2026-10-14 08:25:50 +00:00
#### AppMoreLikeThisDisabledError
The 'More like this' feature is disabled. Please refresh your page.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AppMoreLikeThisDisabledError | | The 'More like this' feature is disabled. Please refresh your page. | |
2026-06-12 22:25:53 +08:00
#### AppPermissionQuery
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| appId | string | Application ID | Yes |
2026-10-14 08:25:50 +00:00
#### AppSuggestedQuestionsAfterAnswerDisabledError
The 'Suggested Questions After Answer' feature is disabled. Please refresh your page.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AppSuggestedQuestionsAfterAnswerDisabledError | | The 'Suggested Questions After Answer' feature is disabled. Please refresh your page. | |
#### AppUnavailableError
App unavailable, please check your app configurations.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AppUnavailableError | | App unavailable, please check your app configurations. | |
2026-07-09 13:23:13 +09:00
#### AudioToTextResponse
2026-06-12 22:25:53 +08:00
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| text | string | | Yes |
2026-10-14 08:25:50 +00:00
#### AudioTooLargeError
Audio size exceeded. {message}
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AudioTooLargeError | | Audio size exceeded. {message} | |
#### AuthenticationFailedError
Invalid email or password.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| AuthenticationFailedError | | Invalid email or password. | |
2026-05-19 14:13:20 +08:00
#### BooleanResultResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| result | boolean | | Yes |
#### BrandingModel
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| application_title | string | | Yes |
| enabled | boolean | | Yes |
| favicon | string | | Yes |
| login_page_logo | string | | Yes |
| workspace_logo | string | | Yes |
2026-06-12 22:25:53 +08:00
#### ButtonStyle
Button styles for user actions.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ButtonStyle | string | Button styles for user actions. | |
2026-05-09 12:01:47 +09:00
#### ChatMessagePayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-05-17 01:40:20 +09:00
| conversation_id | string | Conversation ID | No |
| files | [ object ] | Files to be processed | No |
2026-05-09 12:01:47 +09:00
| inputs | object | Input variables for the chat | Yes |
2026-05-17 01:40:20 +09:00
| parent_message_id | string | Parent message ID | No |
2026-05-09 12:01:47 +09:00
| query | string | User query/message | Yes |
2026-08-31 04:37:07 +00:00
| response_mode | string, <br>**Available values:** "blocking", "streaming" | Response mode: blocking or streaming | No |
2026-06-12 16:52:19 +09:00
| retriever_from | string, <br>**Default:** web_app | Source of retriever | No |
2026-05-09 12:01:47 +09:00
#### CompletionMessagePayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-05-17 01:40:20 +09:00
| files | [ object ] | Files to be processed | No |
2026-05-09 12:01:47 +09:00
| inputs | object | Input variables for the completion | Yes |
| query | string | Query text for completion | No |
2026-08-31 04:37:07 +00:00
| response_mode | string, <br>**Available values:** "blocking", "streaming" | Response mode: blocking or streaming | No |
2026-06-12 16:52:19 +09:00
| retriever_from | string, <br>**Default:** web_app | Source of retriever | No |
2026-05-09 12:01:47 +09:00
2026-10-14 08:25:50 +00:00
#### CompletionRequestError
Completion request failed.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| CompletionRequestError | | Completion request failed. | |
2026-10-28 03:26:06 +00:00
#### ConversationCursorNotFoundError
The conversation cursor is not in the current list. Refresh the list and try again.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ConversationCursorNotFoundError | | The conversation cursor is not in the current list. Refresh the list and try again. | |
2026-10-27 06:59:24 +00:00
#### ConversationFirstMessageNotFoundError
The conversation has no message from which to generate a name.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ConversationFirstMessageNotFoundError | | The conversation has no message from which to generate a name. | |
2026-06-12 22:25:53 +08:00
#### ConversationInfiniteScrollPagination
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| data | [ [SimpleConversation](#simpleconversation) ] | | Yes |
| has_more | boolean | | Yes |
| limit | integer | | Yes |
2026-05-09 12:01:47 +09:00
#### ConversationListQuery
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-05-17 01:40:20 +09:00
| last_id | string | | No |
2026-06-12 16:52:19 +09:00
| limit | integer, <br>**Default:** 20 | | No |
2026-05-17 01:40:20 +09:00
| pinned | boolean | | No |
2026-06-12 16:52:19 +09:00
| sort_by | string, <br>**Available values:** "-created_at", "-updated_at", "created_at", "updated_at", <br>**Default:** -updated_at | *Enum:* ` "-created_at"`, ` "-updated_at"`, ` "created_at"`, ` "updated_at"` | No |
2026-05-09 12:01:47 +09:00
2026-10-27 06:59:24 +00:00
#### ConversationNotFoundError
The conversation was not found for this user and app.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ConversationNotFoundError | | The conversation was not found for this user and app. | |
2026-05-09 12:01:47 +09:00
#### ConversationRenamePayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-06-18 16:43:39 +08:00
| auto_generate | boolean | Automatically generate the conversation name. When ` true`, the ` name` field is ignored. | No |
| name | string | Conversation name. Required when ` auto_generate` is ` false`. | No |
2026-05-09 12:01:47 +09:00
2026-07-24 15:15:02 +08:00
#### DeploymentEdition
Enum representing the deployment edition of the platform.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| DeploymentEdition | string | Enum representing the deployment edition of the platform. | |
2026-10-14 08:25:50 +00:00
#### EmailCodeError
Email code is invalid or expired.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| EmailCodeError | | Email code is invalid or expired. | |
2026-05-09 12:01:47 +09:00
#### EmailCodeLoginSendPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| email | string | | Yes |
2026-05-17 01:40:20 +09:00
| language | string | | No |
2026-05-09 12:01:47 +09:00
#### EmailCodeLoginVerifyPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| code | string | | Yes |
| email | string | | Yes |
| token | string | | Yes |
2026-10-14 08:25:50 +00:00
#### EmailPasswordResetLimitError
Too many failed password reset attempts. Please try again in 24 hours.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| EmailPasswordResetLimitError | | Too many failed password reset attempts. Please try again in 24 hours. | |
#### EmailSendIpLimitError
Too many emails have been sent from this IP address recently. Please try again later.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| EmailSendIpLimitError | | Too many emails have been sent from this IP address recently. Please try again later. | |
#### ErrorResponse
Documented non-2xx body emitted by ``register_external_error_handlers``.
``params`` and ``details`` appear only on the errors that set them. The schema
stays open because ``HTTPException.data`` may carry extra keys.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| code | string | | Yes |
| details | object | | No |
| message | string | | Yes |
| params | string | | No |
| status | integer | | Yes |
2026-06-12 22:25:53 +08:00
#### EventStreamResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| EventStreamResponse | string | | |
#### ExecutionContentType
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ExecutionContentType | string | | |
2026-10-30 02:43:31 +00:00
#### ExpiredError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ExpiredError | | | |
2026-10-14 08:25:50 +00:00
#### FileExtensionBlockedError
The file extension is blocked for security reasons.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| FileExtensionBlockedError | | The file extension is blocked for security reasons. | |
2026-06-12 22:25:53 +08:00
#### FileInputConfig
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| allowed_file_extensions | [ string ] | | No |
| allowed_file_types | [ [FileType](#filetype) ] | | No |
| allowed_file_upload_methods | [ [FileTransferMethod](#filetransfermethod) ] | | No |
| output_variable_name | string | | Yes |
| type | string | | No |
#### FileListInputConfig
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| allowed_file_extensions | [ string ] | | No |
| allowed_file_types | [ [FileType](#filetype) ] | | No |
| allowed_file_upload_methods | [ [FileTransferMethod](#filetransfermethod) ] | | No |
| number_limits | integer | | No |
| output_variable_name | string | | Yes |
| type | string | | No |
2026-05-09 12:01:47 +09:00
#### FileResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-05-17 01:40:20 +09:00
| conversation_id | string | | No |
| created_at | integer | | No |
| created_by | string | | No |
| extension | string | | No |
| file_key | string | | No |
2026-08-25 10:54:14 +00:00
| id | string (uuid) | | Yes |
2026-05-17 01:40:20 +09:00
| mime_type | string | | No |
2026-05-09 12:01:47 +09:00
| name | string | | Yes |
2026-05-17 01:40:20 +09:00
| original_url | string | | No |
| preview_url | string | | No |
2026-06-10 12:04:32 +09:00
| reference | string | | No |
2026-05-09 12:01:47 +09:00
| size | integer | | Yes |
2026-05-17 01:40:20 +09:00
| source_url | string | | No |
| tenant_id | string | | No |
| user_id | string | | No |
2026-05-09 12:01:47 +09:00
2026-10-14 08:25:50 +00:00
#### FileTooLargeError
File size exceeded. {message}
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| FileTooLargeError | | File size exceeded. {message} | |
2026-06-12 22:25:53 +08:00
#### FileTransferMethod
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| FileTransferMethod | string | | |
#### FileType
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| FileType | string | | |
2026-05-09 12:01:47 +09:00
#### FileWithSignedUrl
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-05-19 14:13:20 +08:00
| created_at | integer | | Yes |
| created_by | string | | Yes |
| extension | string | | Yes |
2026-05-09 12:01:47 +09:00
| id | string | | Yes |
2026-05-19 14:13:20 +08:00
| mime_type | string | | Yes |
2026-05-09 12:01:47 +09:00
| name | string | | Yes |
| size | integer | | Yes |
2026-05-19 14:13:20 +08:00
| url | string | | Yes |
2026-05-09 12:01:47 +09:00
2026-10-14 08:25:50 +00:00
#### FilenameNotExistsError
The specified filename does not exist.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| FilenameNotExistsError | | The specified filename does not exist. | |
2026-05-09 12:01:47 +09:00
#### ForgotPasswordCheckPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| code | string | | Yes |
| email | string | | Yes |
| token | string | | Yes |
#### ForgotPasswordResetPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| new_password | string | | Yes |
| password_confirm | string | | Yes |
| token | string | | Yes |
#### ForgotPasswordSendPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| email | string | | Yes |
2026-05-17 01:40:20 +09:00
| language | string | | No |
2026-05-09 12:01:47 +09:00
2026-10-30 02:43:31 +00:00
#### FormAccessRequestResponse
Response body returned after creating one OTP challenge.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| challenge_token | string | The token used to complete the OTP challenge. | Yes |
| expires_in_seconds | integer | Seconds until the current OTP challenge expires. | Yes |
| resend_after_seconds | integer | Seconds until another OTP challenge may be requested. | Yes |
#### FormDefinitionResponse
Response body containing a resolved human-input form definition.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| expiration_time | integer | Unix timestamp when the current form expires. | Yes |
| form_content | string | Rendered form body shown to the approver. | No |
| inputs | [ [FormInputConfig](#forminputconfig) ] | Resolved form input definitions. | No |
| resolved_default_values | object | Default values after variable resolution and stringification. | No |
| user_actions | [ [UserActionConfig](#useractionconfig) ] | Action buttons that can complete the form. | No |
2026-06-12 22:25:53 +08:00
#### FormInputConfig
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| FormInputConfig | [ParagraphInputConfig](#paragraphinputconfig)<br>[SelectInputConfig](#selectinputconfig)<br>[FileInputConfig](#fileinputconfig)<br>[FileListInputConfig](#filelistinputconfig) | | |
2026-10-30 02:43:31 +00:00
#### FormSubmitResponse
Empty response body returned after a Human Input v2 form submission.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
#### FormUploadTokenResponse
Response body returned when issuing a Human Input v2 upload token.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| expires_at | integer | | Yes |
| upload_token | string | | Yes |
2026-06-12 22:25:53 +08:00
#### GeneratedAppResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| GeneratedAppResponse | | | |
2026-10-30 02:43:31 +00:00
#### HumanInputAccessDeliveryFailedError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| HumanInputAccessDeliveryFailedError | | | |
#### HumanInputAccessRateLimitExceededError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| HumanInputAccessRateLimitExceededError | | | |
2026-11-17 13:44:16 +00:00
#### HumanInputActionResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| button_style | [ButtonStyle](#buttonstyle) | | Yes |
| id | string | | Yes |
| title | string | | Yes |
2026-10-30 02:43:31 +00:00
#### HumanInputChallengeExpiredError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| HumanInputChallengeExpiredError | | | |
#### HumanInputChallengeStaleError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| HumanInputChallengeStaleError | | | |
2026-06-12 22:25:53 +08:00
#### HumanInputContent
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| form_definition | [HumanInputFormDefinition](#humaninputformdefinition) | | No |
| form_submission_data | [HumanInputFormSubmissionData](#humaninputformsubmissiondata) | | No |
| submitted | boolean | | Yes |
| type | [ExecutionContentType](#executioncontenttype) | | No |
| workflow_run_id | string | | Yes |
2026-06-04 09:54:28 +08:00
#### HumanInputFileUploadFormPayload
Parsed multipart form fields for HITL uploads.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-06-12 16:52:19 +09:00
| url | string | Remote file URL | No |
2026-06-04 09:54:28 +08:00
2026-06-12 22:25:53 +08:00
#### HumanInputFormDefinition
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| actions | [ [UserActionConfig](#useractionconfig) ] | | No |
| display_in_ui | boolean | | No |
| expiration_time | integer | | Yes |
| form_content | string | | Yes |
| form_id | string | | Yes |
| form_token | string | | No |
2026-10-30 02:43:31 +00:00
| form_version | string, <br>**Available values:** "1", "2", <br>**Default:** 1 | *Enum:* ` "1"`, ` "2"` | No |
2026-06-12 22:25:53 +08:00
| inputs | [ [FormInputConfig](#forminputconfig) ] | | No |
| node_id | string | | Yes |
| node_title | string | | Yes |
| resolved_default_values | object | | No |
#### HumanInputFormDefinitionResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| expiration_time | integer | | Yes |
2026-07-09 13:23:13 +09:00
| form_content | string | | Yes |
| inputs | [ [FormInputConfig](#forminputconfig) ] | | Yes |
2026-06-12 22:25:53 +08:00
| resolved_default_values | object | | Yes |
2026-07-09 13:23:13 +09:00
| site | [WebAppSiteResponse](#webappsiteresponse) | | No |
| user_actions | [ [UserActionConfig](#useractionconfig) ] | | Yes |
2026-06-12 22:25:53 +08:00
2026-10-14 08:25:50 +00:00
#### HumanInputFormExpiredError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| HumanInputFormExpiredError | | | |
2026-10-30 02:43:31 +00:00
#### HumanInputFormNotFoundError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| HumanInputFormNotFoundError | | | |
2026-06-12 22:25:53 +08:00
#### HumanInputFormSubmissionData
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| action_id | string | | Yes |
| action_text | string | | Yes |
| node_id | string | | Yes |
| node_title | string | | Yes |
| rendered_content | string | | Yes |
| submitted_data | object | | No |
#### HumanInputFormSubmitPayload
2026-10-30 02:43:31 +00:00
Legacy Human Input v1 submit payload shared by existing runtime surfaces.
2026-06-12 22:25:53 +08:00
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-06-18 16:43:39 +08:00
| action | string | ID of the action button the recipient selected. Must match one of the ` id` values from the form's ` user_actions` list. | Yes |
2026-06-12 22:25:53 +08:00
| inputs | object | Submitted human input values keyed by output variable name. Use a string for paragraph or select input values, a file mapping for file inputs, and a list of file mappings for file-list inputs. Local file mappings use ` transfer_method=local_file` with ` upload_file_id`; remote file mappings use ` transfer_method=remote_url` with ` url` or ` remote_url`. | Yes |
#### HumanInputFormSubmitResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-10-14 08:25:50 +00:00
#### HumanInputFormSubmittedError
2026-10-30 02:43:31 +00:00
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| HumanInputFormSubmittedError | | | |
#### HumanInputInvalidOtpError
2026-10-14 08:25:50 +00:00
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-10-30 02:43:31 +00:00
| HumanInputInvalidOtpError | | | |
2026-10-14 08:25:50 +00:00
2026-06-04 09:54:28 +08:00
#### HumanInputUploadTokenResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| expires_at | integer | | Yes |
| upload_token | string | | Yes |
2026-10-30 02:43:31 +00:00
#### HumanInputV2FormSubmitRequest
Public Human Input v2 submit payload, independent from the v1 form contract.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| action | string | Identifier of the selected Human Input v2 action. | Yes |
| challenge_token | string | OTP challenge token returned by the Human Input v2 access-request endpoint. | No |
| inputs | object | Submitted form values keyed by output variable name. | Yes |
| otp_code | string | OTP code required when the current Human Input v2 approver uses email proof. | No |
#### HumanInputV2RemoteUploadPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| url | string (uri) | | Yes |
#### HumanInputV2UnavailableError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| HumanInputV2UnavailableError | | | |
2026-10-14 08:25:50 +00:00
#### InvalidEmailError
The email address is not valid.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| InvalidEmailError | | The email address is not valid. | |
#### InvalidFormDataError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| InvalidFormDataError | | | |
2026-10-30 02:43:31 +00:00
#### InvalidInputError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| InvalidInputError | | | |
2026-10-14 08:25:50 +00:00
#### InvalidOrExpiredTokenError
The token is invalid or has expired.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| InvalidOrExpiredTokenError | | The token is invalid or has expired. | |
#### InvalidParamError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| InvalidParamError | | | |
#### InvalidUploadTokenError
Upload token is invalid or expired.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| InvalidUploadTokenError | | Upload token is invalid or expired. | |
2026-06-12 22:25:53 +08:00
#### JSONValueType
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| JSONValueType | | | |
#### JsonValue
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| JsonValue | | | |
2026-10-23 03:34:59 +00:00
#### KnowledgeFsCitation
Immutable evidence identity; no signed URLs, tokens or storage keys.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| artifact_hash | string | | Yes |
| control_space_id | string | | Yes |
| document_asset_id | string | | Yes |
| document_title | string | | No |
| document_version | integer | | No |
| end_offset | integer | | No |
| id | string | | Yes |
| node_id | string | | Yes |
| page_number | integer | | No |
| parse_artifact_id | string | | No |
| section_path | [ string ] | | No |
| space_name | string | | Yes |
| start_offset | integer | | No |
2026-05-19 14:13:20 +08:00
#### LicenseStatus
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| LicenseStatus | string | | |
2026-07-24 15:15:02 +08:00
#### LicenseStatusModel
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| status | [LicenseStatus](#licensestatus) | | Yes |
2026-05-09 12:01:47 +09:00
#### LoginPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| email | string | | Yes |
| password | string | | Yes |
2026-06-12 22:25:53 +08:00
#### LoginStatusQuery
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| app_code | string | Web app code | No |
| user_id | string | End user session ID | No |
2026-05-19 14:13:20 +08:00
#### LoginStatusResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| app_logged_in | boolean | | Yes |
| logged_in | boolean | | Yes |
2026-10-14 08:25:50 +00:00
#### MalformedUploadTokenError
The upload token is malformed.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| MalformedUploadTokenError | | The upload token is malformed. | |
2026-05-09 12:01:47 +09:00
#### MessageFeedbackPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-06-18 16:43:39 +08:00
| content | string | Optional text feedback providing additional detail. | No |
2026-08-31 04:37:07 +00:00
| rating | string, <br>**Available values:** "dislike", "like" | Feedback rating. Set to ` null` to revoke previously submitted feedback. | No |
2026-05-09 12:01:47 +09:00
2026-10-26 09:46:11 +00:00
#### MessageFeedbackRatingRequiredError
A rating is required when there is no existing feedback to remove.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| MessageFeedbackRatingRequiredError | | A rating is required when there is no existing feedback to remove. | |
2026-06-12 22:25:53 +08:00
#### MessageFile
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| belongs_to | string | | No |
| filename | string | | Yes |
2026-08-25 10:54:14 +00:00
| id | string (uuid) | | Yes |
2026-06-12 22:25:53 +08:00
| mime_type | string | | No |
| size | integer | | No |
| transfer_method | string | | Yes |
| type | string | | Yes |
| upload_file_id | string | | No |
| url | string | | No |
2026-05-09 12:01:47 +09:00
#### MessageListQuery
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-06-18 16:43:39 +08:00
| conversation_id | string | Conversation ID. | Yes |
| first_id | string | The ID of the first chat record on the current page. Omit this value to fetch the latest messages; for subsequent pages, use the first message ID from the current list to fetch older messages. | No |
| limit | integer, <br>**Default:** 20 | Number of chat history messages to return per request. | No |
2026-05-09 12:01:47 +09:00
#### MessageMoreLikeThisQuery
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-06-12 16:52:19 +09:00
| response_mode | string, <br>**Available values:** "blocking", "streaming" | Response mode<br>*Enum:* ` "blocking"`, ` "streaming"` | Yes |
2026-05-09 12:01:47 +09:00
2026-10-14 08:25:50 +00:00
#### ModelCurrentlyNotSupportError
Dify Hosted OpenAI trial currently not support the GPT-4 model.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ModelCurrentlyNotSupportError | | Dify Hosted OpenAI trial currently not support the GPT-4 model. | |
#### NoAudioUploadedError
Please upload your audio.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| NoAudioUploadedError | | Please upload your audio. | |
#### NoFileUploadedError
Please upload your file.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| NoFileUploadedError | | Please upload your file. | |
#### NotChatAppError
Please check if your app mode matches the right API route.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| NotChatAppError | | Please check if your app mode matches the right API route. | |
#### NotCompletionAppError
Please check if your Completion app mode matches the right API route.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| NotCompletionAppError | | Please check if your Completion app mode matches the right API route. | |
#### NotWorkflowAppError
Please check if your Workflow app mode matches the right API route.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| NotWorkflowAppError | | Please check if your Workflow app mode matches the right API route. | |
2026-06-12 22:25:53 +08:00
#### ParagraphInputConfig
Form input definition.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-08-26 05:05:36 +00:00
| default | [StringSource](#stringsource) | Raw default-value configuration for the paragraph input. Runtime-resolved values are exposed in the surrounding ` resolved_default_values` mapping. | No |
2026-06-12 22:25:53 +08:00
| output_variable_name | string | | Yes |
| type | string | | No |
#### Parameters
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-08-25 10:54:14 +00:00
| annotation_reply | { **"enabled"**: boolean } | | Yes |
| file_upload | { **"allowed_file_extensions"**: [ string ], **"allowed_file_types"**: [ string, <br>**Available values:** "audio", "custom", "document", "image", "video" ], **"allowed_file_upload_methods"**: [ string, <br>**Available values:** "local_file", "remote_url" ], **"enabled"**: boolean, **"image"**: { **"detail"**: string, **"enabled"**: boolean, **"number_limits"**: integer, **"transfer_methods"**: [ string ] }, **"number_limits"**: integer } | | Yes |
| more_like_this | { **"enabled"**: boolean } | | Yes |
2026-06-12 22:25:53 +08:00
| opening_statement | | | No |
2026-08-25 10:54:14 +00:00
| retriever_resource | { **"enabled"**: boolean } | | Yes |
| sensitive_word_avoidance | { **"enabled"**: boolean } | | Yes |
2026-11-03 09:49:33 +00:00
| show_thoughts | { **"enabled"**: boolean } | | No |
2026-08-25 10:54:14 +00:00
| speech_to_text | { **"enabled"**: boolean } | | Yes |
2026-06-12 22:25:53 +08:00
| suggested_questions | [ string ] | | Yes |
2026-08-25 10:54:14 +00:00
| suggested_questions_after_answer | { **"enabled"**: boolean } | | Yes |
2026-08-26 05:05:36 +00:00
| system_parameters | [SystemParameters](#systemparameters) | System-level parameter limits. | Yes |
2026-08-25 10:54:14 +00:00
| text_to_speech | { **"autoPlay"**: string, **"enabled"**: boolean, **"language"**: string, **"voice"**: string } | | Yes |
| user_input_form | [ object ] | | Yes |
2026-06-12 22:25:53 +08:00
2026-07-06 16:53:21 +09:00
#### PassportAccessTokenResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| access_token | string | | Yes |
2026-06-12 22:25:53 +08:00
#### PassportQuery
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| user_id | string | End user session ID | No |
2026-10-14 08:25:50 +00:00
#### PasswordMismatchError
The passwords do not match.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| PasswordMismatchError | | The passwords do not match. | |
#### PasswordResetRateLimitExceededError
Too many password reset emails have been sent. Please try again in {minutes} minutes.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| PasswordResetRateLimitExceededError | | Too many password reset emails have been sent. Please try again in {minutes} minutes. | |
2026-05-19 14:13:20 +08:00
#### PluginInstallationPermissionModel
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| plugin_installation_scope | [PluginInstallationScope](#plugininstallationscope) | | Yes |
| restrict_to_marketplace_only | boolean | | Yes |
#### PluginInstallationScope
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| PluginInstallationScope | string | | |
2026-10-14 08:25:50 +00:00
#### ProviderNotInitializeError
No valid model provider credentials found. Please go to Settings -> Model Provider to complete your provider credentials.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ProviderNotInitializeError | | No valid model provider credentials found. Please go to Settings -> Model Provider to complete your provider credentials. | |
#### ProviderNotSupportSpeechToTextError
Provider not support speech to text.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ProviderNotSupportSpeechToTextError | | Provider not support speech to text. | |
#### ProviderQuotaExceededError
Your quota for Dify Hosted OpenAI has been exhausted. Please go to Settings -> Model Provider to complete your own provider credentials.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ProviderQuotaExceededError | | Your quota for Dify Hosted OpenAI has been exhausted. Please go to Settings -> Model Provider to complete your own provider credentials. | |
#### RateLimitError
Rate Limit Error
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| RateLimitError | | Rate Limit Error | |
#### RemoteFileAccessDeniedError
The remote file cannot be accessed without authorization.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| RemoteFileAccessDeniedError | | The remote file cannot be accessed without authorization. | |
2026-05-09 12:01:47 +09:00
#### RemoteFileInfo
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| file_length | integer | | Yes |
| file_type | string | | Yes |
2026-10-14 08:25:50 +00:00
#### RemoteFileInvalidResponseError
The remote file server returned an invalid response.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| RemoteFileInvalidResponseError | | The remote file server returned an invalid response. | |
#### RemoteFileInvalidUrlError
The remote file URL is invalid.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| RemoteFileInvalidUrlError | | The remote file URL is invalid. | |
#### RemoteFileNotFoundError
The remote file could not be found.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| RemoteFileNotFoundError | | The remote file could not be found. | |
#### RemoteFileUnavailableError
The remote file is temporarily unavailable.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| RemoteFileUnavailableError | | The remote file is temporarily unavailable. | |
2026-05-09 12:01:47 +09:00
#### RemoteFileUploadPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| url | string (uri) | Remote file URL | Yes |
2026-10-14 08:25:50 +00:00
#### RemoteFileUrlBlockedError
The remote file URL is not allowed.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| RemoteFileUrlBlockedError | | The remote file URL is not allowed. | |
2026-11-17 13:44:16 +00:00
#### ResolvedFileListResponse
2026-10-30 02:43:31 +00:00
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-11-17 13:44:16 +00:00
| allowed_file_extensions | [ string ] | | Yes |
| allowed_file_types | [ [FileType](#filetype) ] | | Yes |
| allowed_file_upload_methods | [ [FileTransferMethod](#filetransfermethod) ] | | Yes |
| number_limits | integer | | Yes |
| output_variable_name | string | | Yes |
| type | string | | Yes |
#### ResolvedFileResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| allowed_file_extensions | [ string ] | | Yes |
| allowed_file_types | [ [FileType](#filetype) ] | | Yes |
| allowed_file_upload_methods | [ [FileTransferMethod](#filetransfermethod) ] | | Yes |
| output_variable_name | string | | Yes |
| type | string | | Yes |
#### ResolvedForm
Keep the existing resolved-form wire shape without exposing storage metadata.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| actions | [ [HumanInputActionResponse](#humaninputactionresponse) ] | | Yes |
2026-10-30 02:43:31 +00:00
| legacy_form_content | string | | Yes |
2026-11-17 13:44:16 +00:00
| parts | [ [ResolvedPartResponse](#resolvedpartresponse) ] | | Yes |
2026-10-30 02:43:31 +00:00
| title | string | | Yes |
2026-11-17 13:44:16 +00:00
#### ResolvedMarkdownResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| text | string | | Yes |
| type | string | | Yes |
#### ResolvedParagraphResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| default_value | string | | Yes |
| output_variable_name | string | | Yes |
| type | string | | Yes |
#### ResolvedPartResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ResolvedPartResponse | [ResolvedMarkdownResponse](#resolvedmarkdownresponse)<br>[ResolvedParagraphResponse](#resolvedparagraphresponse)<br>[ResolvedSelectResponse](#resolvedselectresponse)<br>[ResolvedFileResponse](#resolvedfileresponse)<br>[ResolvedFileListResponse](#resolvedfilelistresponse) | | |
#### ResolvedSelectResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| default_value | string | | Yes |
| options | [ string ] | | Yes |
| output_variable_name | string | | Yes |
| type | string | | Yes |
2026-05-19 14:13:20 +08:00
#### ResultResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| result | string | | Yes |
2026-06-12 22:25:53 +08:00
#### RetrieverResource
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| content | string | | No |
| created_at | integer | | No |
| data_source_type | string | | No |
| dataset_id | string | | No |
| dataset_name | string | | No |
2026-10-08 02:34:33 +00:00
| doc_metadata | object | | No |
2026-10-23 03:34:59 +00:00
| document_asset_id | string | | No |
2026-06-12 22:25:53 +08:00
| document_id | string | | No |
| document_name | string | | No |
2026-10-23 03:34:59 +00:00
| document_revision | integer | | No |
| document_version | integer | | No |
2026-10-08 02:34:33 +00:00
| files | [ object ] | | No |
2026-06-12 22:25:53 +08:00
| hit_count | integer | | No |
2026-08-25 10:54:14 +00:00
| id | string (uuid) | | No |
2026-06-12 22:25:53 +08:00
| index_node_hash | string | | No |
2026-10-23 03:34:59 +00:00
| knowledge_fs_citation | [KnowledgeFsCitation](#knowledgefscitation) | | No |
2026-08-25 10:54:14 +00:00
| message_id | string (uuid) | | No |
2026-10-08 02:34:33 +00:00
| page | integer | | No |
2026-06-12 22:25:53 +08:00
| position | integer | | Yes |
2026-10-08 02:34:33 +00:00
| retriever_from | string | | No |
2026-06-12 22:25:53 +08:00
| score | number | | No |
| segment_id | string | | No |
| segment_position | integer | | No |
| summary | string | | No |
2026-10-08 02:34:33 +00:00
| title | string | | No |
2026-06-12 22:25:53 +08:00
| word_count | integer | | No |
2026-08-06 12:51:32 +08:00
#### SSOProtocol
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| SSOProtocol | string | | |
2026-05-09 12:01:47 +09:00
#### SavedMessageCreatePayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| message_id | string | | Yes |
2026-06-12 22:25:53 +08:00
#### SavedMessageInfiniteScrollPagination
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| data | [ [SavedMessageItem](#savedmessageitem) ] | | Yes |
| has_more | boolean | | Yes |
| limit | integer | | Yes |
#### SavedMessageItem
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| answer | string | | Yes |
| created_at | integer | | No |
| feedback | [SimpleFeedback](#simplefeedback) | | No |
| id | string | | Yes |
| inputs | object | | Yes |
| message_files | [ [MessageFile](#messagefile) ] | | Yes |
| query | string | | Yes |
2026-05-09 12:01:47 +09:00
#### SavedMessageListQuery
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-05-17 01:40:20 +09:00
| last_id | string | | No |
2026-06-12 16:52:19 +09:00
| limit | integer, <br>**Default:** 20 | | No |
2026-05-09 12:01:47 +09:00
2026-06-12 22:25:53 +08:00
#### SelectInputConfig
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-08-26 05:05:36 +00:00
| option_source | [StringListSource](#stringlistsource) | Source of options for ` select` inputs. Present only when ` type` is ` select`. | Yes |
2026-06-12 22:25:53 +08:00
| output_variable_name | string | | Yes |
| type | string | | No |
2026-10-16 03:47:31 +00:00
#### ShallowJSONValue
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| ShallowJSONValue | string<br>integer<br>number<br>boolean<br>object<br>[ object ] | | |
2026-06-12 22:25:53 +08:00
#### SimpleConversation
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| created_at | integer | | No |
2026-08-25 10:54:14 +00:00
| id | string (uuid) | | Yes |
2026-06-12 22:25:53 +08:00
| inputs | object | | Yes |
| introduction | string | | No |
| name | string | | Yes |
| status | string | | Yes |
| updated_at | integer | | No |
#### SimpleFeedback
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| rating | string | | No |
2026-05-19 14:13:20 +08:00
#### SimpleResultDataResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| data | string | | Yes |
| result | string | | Yes |
#### SimpleResultResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-08-26 05:05:36 +00:00
| result | string | Operation result. | Yes |
2026-05-19 14:13:20 +08:00
2026-10-14 08:25:50 +00:00
#### SpeechToTextDisabledError
Speech to text is disabled.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| SpeechToTextDisabledError | | Speech to text is disabled. | |
2026-06-12 22:25:53 +08:00
#### StringListSource
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-08-26 05:05:36 +00:00
| selector | [ string ] | Variable reference path when ` type` is ` variable`. | No |
| type | [ValueSourceType](#valuesourcetype) | Origin of the options. ` constant` means ` value` lists the options literally; ` variable` means ` selector` points to an ` array[string]` workflow variable that provides them. | Yes |
| value | [ string ] | Literal option list when ` type` is ` constant`. | No |
2026-06-12 22:25:53 +08:00
#### StringSource
Default configuration for form inputs.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| selector | [ string ] | | No |
| type | [ValueSourceType](#valuesourcetype) | | Yes |
| value | string | | No |
2026-05-19 14:13:20 +08:00
#### SuggestedQuestionsResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| data | [ string ] | | Yes |
#### SystemFeatureModel
2026-07-25 10:01:12 +08:00
Non-sensitive bootstrap snapshot exposed before Console or Web authentication.
2026-05-19 14:13:20 +08:00
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-10-22 02:11:12 +00:00
| agent_tracing_api_collection_enabled | boolean | Deployment-level API gate for Agent trace collection, independent of workspace and provider configuration. Does not indicate Agent runtime, worker, or provider health or confirm trace delivery. | Yes |
2026-05-19 14:13:20 +08:00
| branding | [BrandingModel](#brandingmodel) | | Yes |
2026-07-24 15:15:02 +08:00
| deployment_edition | [DeploymentEdition](#deploymentedition) | | Yes |
2026-06-17 17:28:43 +08:00
| enable_app_deploy | boolean | | Yes |
2026-06-12 16:52:19 +09:00
| enable_change_email | boolean, <br>**Default:** true | | Yes |
2026-05-19 14:13:20 +08:00
| enable_creators_platform | boolean | | Yes |
| enable_email_code_login | boolean | | Yes |
2026-06-12 16:52:19 +09:00
| enable_email_password_login | boolean, <br>**Default:** true | | Yes |
2026-05-19 14:13:20 +08:00
| enable_explore_banner | boolean | | Yes |
2026-06-24 16:29:54 +08:00
| enable_learn_app | boolean, <br>**Default:** true | | Yes |
2026-05-19 14:13:20 +08:00
| enable_marketplace | boolean | | Yes |
| enable_social_oauth_login | boolean | | Yes |
2026-07-20 02:23:25 -07:00
| enable_step_by_step_tour | boolean | | Yes |
2026-05-19 14:13:20 +08:00
| is_allow_register | boolean | | Yes |
| is_email_setup | boolean | | Yes |
2026-07-24 15:15:02 +08:00
| license | [LicenseStatusModel](#licensestatusmodel) | | Yes |
2026-05-19 14:13:20 +08:00
| plugin_installation_permission | [PluginInstallationPermissionModel](#plugininstallationpermissionmodel) | | Yes |
2026-06-19 00:35:29 +08:00
| rbac_enabled | boolean | | Yes |
2026-05-19 14:13:20 +08:00
| sso_enforced_for_signin | boolean | | Yes |
2026-08-06 12:51:32 +08:00
| sso_enforced_for_signin_protocol | [SSOProtocol](#ssoprotocol) | | Yes |
2026-05-19 14:13:20 +08:00
| webapp_auth | [WebAppAuthModel](#webappauthmodel) | | Yes |
2026-06-12 22:25:53 +08:00
#### SystemParameters
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| audio_file_size_limit | integer | | Yes |
| file_size_limit | integer | | Yes |
| image_file_size_limit | integer | | Yes |
| video_file_size_limit | integer | | Yes |
| workflow_file_upload_limit | integer | | Yes |
2026-05-09 12:01:47 +09:00
#### TextToAudioPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-06-18 16:43:39 +08:00
| message_id | string | Message ID. Takes priority over ` text` when both are provided. | No |
2026-06-18 00:02:43 +08:00
| streaming | boolean | Reserved for compatibility; TTS response streaming is determined by the provider output. | No |
2026-06-18 16:43:39 +08:00
| text | string | Speech content to convert. | No |
| voice | string | Voice to use for text-to-speech. Available voices depend on the TTS provider configured for this app. Omit to use the app's configured voice when available; that value is exposed by [Get App Parameters](/api-reference/applications/get-app-parameters) as ` text_to_speech.voice`. | No |
2026-05-09 12:01:47 +09:00
2026-10-14 08:25:50 +00:00
#### TooManyFilesError
Only one file is allowed.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| TooManyFilesError | | Only one file is allowed. | |
2026-11-27 03:44:31 +00:00
#### ToolCallLimitMetadata
Usage at this call's dispatch boundary and its authoritative disposition.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| execution_status | string, <br>**Available values:** "executed", "not_executed", "unconfirmed" | *Enum:* ` "executed"`, ` "not_executed"`, ` "unconfirmed"` | Yes |
| limit | integer | | Yes |
| reason | string, <br>**Available values:** "call_limit_reached", "duplicate_tool_call" | | No |
| tool_identity | string | | Yes |
| used | integer | | Yes |
2026-10-14 08:25:50 +00:00
#### TriggerWorkflowServiceModeUnavailableError
This workflow uses a trigger entry and cannot be invoked through Web App, Service API, OpenAPI, or MCP.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| TriggerWorkflowServiceModeUnavailableError | | This workflow uses a trigger entry and cannot be invoked through Web App, Service API, OpenAPI, or MCP. | |
#### UnsupportedAudioTypeError
Audio type not allowed.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| UnsupportedAudioTypeError | | Audio type not allowed. | |
#### UnsupportedFileTypeError
File type not allowed.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| UnsupportedFileTypeError | | File type not allowed. | |
#### UploadTokenRequiredError
Upload token is required.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| UploadTokenRequiredError | | Upload token is required. | |
2026-06-12 22:25:53 +08:00
#### UserActionConfig
User action configuration.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| button_style | [ButtonStyle](#buttonstyle) | | No |
| id | string | | Yes |
| title | string | | Yes |
#### ValueSourceType
ValueSourceType records whether the value comes from a static setting
2026-07-26 06:50:52 +03:00
in form definition, or a variable while the workflow is running.
2026-06-12 22:25:53 +08:00
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-07-26 06:50:52 +03:00
| ValueSourceType | string | ValueSourceType records whether the value comes from a static setting in form definition, or a variable while the workflow is running. | |
2026-06-12 22:25:53 +08:00
2026-05-19 14:13:20 +08:00
#### VerificationTokenResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| email | string | | Yes |
| is_valid | boolean | | Yes |
| token | string | | Yes |
#### WebAppAuthModel
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| allow_email_code_login | boolean | | Yes |
| allow_email_password_login | boolean | | Yes |
2026-07-21 01:46:28 -07:00
| allow_public_access | boolean, <br>**Default:** true | | Yes |
2026-05-19 14:13:20 +08:00
| allow_sso | boolean | | Yes |
| enabled | boolean | | Yes |
| sso_config | [WebAppAuthSSOModel](#webappauthssomodel) | | Yes |
#### WebAppAuthSSOModel
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-08-06 12:51:32 +08:00
| protocol | [SSOProtocol](#ssoprotocol) | | Yes |
2026-05-19 14:13:20 +08:00
2026-07-09 13:23:13 +09:00
#### WebAppCustomConfigResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| remove_webapp_brand | boolean | | Yes |
| replace_webapp_logo | string | | No |
2026-10-30 02:43:31 +00:00
#### WebAppHumanInputV2FormDefinitionResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| expiration_time | integer | | Yes |
| resolved_form | [ResolvedForm](#resolvedform) | | Yes |
#### WebAppHumanInputV2SubmitPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| action | string | | Yes |
| inputs | object | | Yes |
#### WebAppHumanInputV2SubmitResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-07-09 13:23:13 +09:00
#### WebAppSiteResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| app_id | string | | Yes |
| can_replace_logo | boolean | | Yes |
| custom_config | [WebAppCustomConfigResponse](#webappcustomconfigresponse) | | No |
| enable_site | boolean | | Yes |
| end_user_id | string | | No |
2026-07-27 10:57:18 +08:00
| mode | [AppMode](#appmode) | | Yes |
2026-07-09 13:23:13 +09:00
| model_config | [WebModelConfigResponse](#webmodelconfigresponse) | | No |
| plan | string | | Yes |
| site | [WebSiteResponse](#websiteresponse) | | Yes |
2026-10-14 08:25:50 +00:00
#### WebFormRateLimitExceededError
Too many form requests. Please try again later.
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| WebFormRateLimitExceededError | | Too many form requests. Please try again later. | |
2026-06-12 22:25:53 +08:00
#### WebMessageInfiniteScrollPagination
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| data | [ [WebMessageListItem](#webmessagelistitem) ] | | Yes |
| has_more | boolean | | Yes |
| limit | integer | | Yes |
#### WebMessageListItem
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| agent_thoughts | [ [AgentThought](#agentthought) ] | | Yes |
| answer | string | | Yes |
2026-07-09 18:35:15 +08:00
| answer_tokens | integer | | No |
2026-08-25 10:54:14 +00:00
| conversation_id | string (uuid) | | Yes |
2026-06-12 22:25:53 +08:00
| created_at | integer | | No |
2026-07-09 18:35:15 +08:00
| currency | string | | No |
2026-06-12 22:25:53 +08:00
| error | string | | No |
| extra_contents | [ [HumanInputContent](#humaninputcontent) ] | | Yes |
| feedback | [SimpleFeedback](#simplefeedback) | | No |
2026-08-25 10:54:14 +00:00
| id | string (uuid) | | Yes |
2026-06-12 22:25:53 +08:00
| inputs | object | | Yes |
| message_files | [ [MessageFile](#messagefile) ] | | Yes |
2026-07-09 18:35:15 +08:00
| message_tokens | integer | | No |
2026-06-12 22:25:53 +08:00
| metadata | [JSONValueType](#jsonvaluetype) | | No |
| parent_message_id | string | | No |
2026-08-25 10:54:14 +00:00
| provider_response_latency | float | | No |
2026-06-12 22:25:53 +08:00
| query | string | | Yes |
| retriever_resources | [ [RetrieverResource](#retrieverresource) ] | | Yes |
| status | string | | Yes |
2026-07-09 18:35:15 +08:00
| total_price | string | | No |
| total_tokens | integer | | Yes |
2026-06-12 22:25:53 +08:00
2026-07-09 13:23:13 +09:00
#### WebModelConfigResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| model | | | No |
| more_like_this | | | No |
| opening_statement | string | | No |
| pre_prompt | string | | No |
| suggested_questions | | | No |
| suggested_questions_after_answer | | | No |
| user_input_form | | | No |
#### WebSiteResponse
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| chat_color_theme | string | | No |
| chat_color_theme_inverted | boolean | | Yes |
| copyright | string | | No |
| custom_disclaimer | string | | No |
| default_language | string | | No |
| description | string | | No |
| icon | string | | No |
| icon_background | string | | No |
| icon_type | string | | No |
2026-07-23 11:34:49 +08:00
| icon_url | string | | No |
2026-07-09 13:23:13 +09:00
| input_placeholder | string | | No |
| privacy_policy | string | | No |
| prompt_public | boolean | | No |
| show_workflow_steps | boolean | | No |
| title | string | | Yes |
| use_icon_as_answer_icon | boolean | | No |
2026-10-30 02:43:31 +00:00
#### WorkflowNotActiveError
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
| WorkflowNotActiveError | | | |
2026-05-09 12:01:47 +09:00
#### WorkflowRunPayload
| Name | Type | Description | Required |
| ---- | ---- | ----------- | -------- |
2026-08-25 10:54:14 +00:00
| files | [ object<br>object<br>object<br>object ] | File list for workflow system file inputs. Available when file upload is enabled for the workflow. To attach a local file, first upload it via [Upload File](/api-reference/files/upload-file) and use the returned ` id` as ` upload_file_id` with ` transfer_method: local_file`. | No |
2026-06-18 16:43:39 +08:00
| inputs | object | Key-value pairs for workflow input variables. Values for file-type variables should be arrays of file objects with ` type`, ` transfer_method`, and either ` url` or ` upload_file_id`. Refer to the ` user_input_form` field in the [Get App Parameters ](/api-reference/applications/get-app-parameters ) response to discover the variable names and types expected by your app. | Yes |