Back to Dify

Web API

api/openapi/markdown/web-openapi.md

1.16.153.5 KB
Original Source

Web API

Public APIs for web applications including file uploads, chat interactions, and app management

Version: 1.0

Available authorizations

Bearer (HTTP, bearer)

Use the Service API key as a Bearer token in the Authorization header. Bearer format: API_KEY


web

Web application API operations

[POST] /audio-to-text

Convert audio to text

Convert audio file to text using speech-to-text service.

Responses

CodeDescriptionSchema
200Successapplication/json: AudioToTextResponse
400Bad Request
401Unauthorized
403Forbidden
413Audio file too large
415Unsupported audio type
500Internal Server Error

[POST] /chat-messages

Create a chat message for conversational applications.

Request Body

RequiredSchema
Yesapplication/json: ChatMessagePayload

Responses

CodeDescriptionSchema
200Successapplication/json: GeneratedAppResponse
400Bad Request
401Unauthorized
403Forbidden
404App Not Found
500Internal Server Error

[POST] /chat-messages/{task_id}/stop

Stop a running chat message task.

Parameters

NameLocated inDescriptionRequiredSchema
task_idpathTask ID to stopYesstring

Responses

CodeDescriptionSchema
200Successapplication/json: SimpleResultResponse
400Bad Request
401Unauthorized
403Forbidden
404Task Not Found
500Internal Server Error

[POST] /completion-messages

Create a completion message for text generation applications.

Request Body

RequiredSchema
Yesapplication/json: CompletionMessagePayload

Responses

CodeDescriptionSchema
200Successapplication/json: GeneratedAppResponse
400Bad Request
401Unauthorized
403Forbidden
404App Not Found
500Internal Server Error

[POST] /completion-messages/{task_id}/stop

Stop a running completion message task.

Parameters

NameLocated inDescriptionRequiredSchema
task_idpathTask ID to stopYesstring

Responses

CodeDescriptionSchema
200Successapplication/json: SimpleResultResponse
400Bad Request
401Unauthorized
403Forbidden
404Task Not Found
500Internal Server Error

[GET] /conversations

Retrieve paginated list of conversations for a chat application.

Parameters

NameLocated inDescriptionRequiredSchema
last_idqueryNostring
limitqueryNointeger,
Default: 20
pinnedqueryNoboolean
sort_byqueryNostring,
Available values: "-created_at", "-updated_at", "created_at", "updated_at",
Default: -updated_at

Responses

CodeDescriptionSchema
200Successapplication/json: ConversationInfiniteScrollPagination
400Bad Request
401Unauthorized
403Forbidden
404App Not Found or Not a Chat App
500Internal Server Error

[DELETE] /conversations/{c_id}

Delete a specific conversation.

Parameters

NameLocated inDescriptionRequiredSchema
c_idpathConversation UUIDYesstring (uuid)

Responses

CodeDescription
204Conversation deleted successfully
400Bad Request
401Unauthorized
403Forbidden
404Conversation Not Found or Not a Chat App
500Internal Server Error

[POST] /conversations/{c_id}/name

Rename a specific conversation with a custom name or auto-generate one.

Parameters

NameLocated inDescriptionRequiredSchema
c_idpathConversation UUIDYesstring (uuid)
auto_generatequeryAuto-generate conversation nameNoboolean
namequeryNew conversation nameNostring

Request Body

RequiredSchema
Yesapplication/json: ConversationRenamePayload

Responses

CodeDescriptionSchema
200Conversation renamed successfullyapplication/json: SimpleConversation
400Bad Request
401Unauthorized
403Forbidden
404Conversation Not Found or Not a Chat App
500Internal Server Error

[PATCH] /conversations/{c_id}/pin

Pin a specific conversation to keep it at the top of the list.

Parameters

NameLocated inDescriptionRequiredSchema
c_idpathConversation UUIDYesstring (uuid)

Responses

CodeDescriptionSchema
200Conversation pinned successfullyapplication/json: ResultResponse
400Bad Request
401Unauthorized
403Forbidden
404Conversation Not Found or Not a Chat App
500Internal Server Error

[PATCH] /conversations/{c_id}/unpin

Unpin a specific conversation to remove it from the top of the list.

Parameters

NameLocated inDescriptionRequiredSchema
c_idpathConversation UUIDYesstring (uuid)

Responses

CodeDescriptionSchema
200Conversation unpinned successfullyapplication/json: ResultResponse
400Bad Request
401Unauthorized
403Forbidden
404Conversation Not Found or Not a Chat App
500Internal Server Error

[POST] /email-code-login

Send email verification code for login

Request Body

RequiredSchema
Yesapplication/json: EmailCodeLoginSendPayload

Responses

CodeDescriptionSchema
200Email code sent successfullyapplication/json: SimpleResultDataResponse
400Bad request - invalid email format
404Account not found

[POST] /email-code-login/validity

Verify email code and complete login

Request Body

RequiredSchema
Yesapplication/json: EmailCodeLoginVerifyPayload

Responses

CodeDescriptionSchema
200Email code verified and login successfulapplication/json: AccessTokenResultResponse
400Bad request - invalid code or token
401Invalid token or expired code
404Account not found

[POST] /files/upload

Upload a file for use in web applications

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

Responses

CodeDescriptionSchema
201File uploaded successfullyapplication/json: FileResponse
400Bad request - invalid file or parameters
413File too large
415Unsupported file type

[POST] /forgot-password

Send password reset email

Request Body

RequiredSchema
Yesapplication/json: ForgotPasswordSendPayload

Responses

CodeDescriptionSchema
200Password reset email sent successfullyapplication/json: SimpleResultDataResponse
400Bad request - invalid email format
404Account not found
429Too many requests - rate limit exceeded

[POST] /forgot-password/resets

Reset user password with verification token

Request Body

RequiredSchema
Yesapplication/json: ForgotPasswordResetPayload

Responses

CodeDescriptionSchema
200Password reset successfullyapplication/json: SimpleResultResponse
400Bad request - invalid parameters or password mismatch
401Invalid or expired token
404Account not found

[POST] /forgot-password/validity

Verify password reset token validity

Request Body

RequiredSchema
Yesapplication/json: ForgotPasswordCheckPayload

Responses

CodeDescriptionSchema
200Token is validapplication/json: VerificationTokenResponse
400Bad request - invalid token format
401Invalid or expired token

[GET] /form/human_input/{form_token}

Get human input form definition by token

Get a human input form definition by token GET /api/form/human_input/<form_token>

Parameters

NameLocated inDescriptionRequiredSchema
form_tokenpathHuman input form tokenYesstring

Responses

CodeDescriptionSchema
200Form retrieved successfullyapplication/json: HumanInputFormDefinitionResponse
403Forbidden
404Form not found
412Form already submitted or expired
429Too many requests

[POST] /form/human_input/{form_token}

Submit human input form by token

Submit a human input form by token POST /api/form/human_input/<form_token>

Request body: { "inputs": { "content": "User input content" }, "action": "Approve" }

Parameters

NameLocated inDescriptionRequiredSchema
form_tokenpathHuman input form tokenYesstring

Request Body

RequiredSchema
Yesapplication/json: HumanInputFormSubmitPayload

Responses

CodeDescriptionSchema
200Form submitted successfullyapplication/json: HumanInputFormSubmitResponse
400Bad request - invalid submission data
404Form not found
412Form already submitted or expired
429Too many requests

[POST] /form/human_input/{form_token}/upload-token

Issue an upload token for a human input form

Issue an upload token for an active human input form POST /api/form/human_input/<form_token>/upload-token

Parameters

NameLocated inDescriptionRequiredSchema
form_tokenpathHuman input form tokenYesstring

Responses

CodeDescriptionSchema
200Upload token issued successfullyapplication/json: HumanInputUploadTokenResponse
404Form not found
412Form already submitted or expired
429Too many requests

[POST] /human-input-forms/files

Upload one local file or remote URL file for a HITL human input form

Responses

CodeDescriptionSchema
201File uploaded successfullyapplication/json: FileResponse

[POST] /login

Authenticate user and login

Authenticate user for web application access

Request Body

RequiredSchema
Yesapplication/json: LoginPayload

Responses

CodeDescriptionSchema
200Authentication successfulapplication/json: AccessTokenResultResponse
400Bad request - invalid email or password format
401Authentication failed - email or password mismatch
403Account banned or login disabled
404Account not found

[GET] /login/status

Check login status

Parameters

NameLocated inDescriptionRequiredSchema
app_codequeryWeb app codeNostring
user_idqueryEnd user session IDNostring

Responses

CodeDescriptionSchema
200Login statusapplication/json: LoginStatusResponse
401Login status

[POST] /logout

Logout user from web application

Responses

CodeDescriptionSchema
200Logout successfulapplication/json: SimpleResultResponse

[GET] /messages

Retrieve paginated list of messages from a conversation in a chat application.

Parameters

NameLocated inDescriptionRequiredSchema
conversation_idqueryConversation ID.Yesstring
first_idqueryThe 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.Nostring
limitqueryNumber of chat history messages to return per request.Nointeger,
Default: 20

Responses

CodeDescriptionSchema
200Successapplication/json: WebMessageInfiniteScrollPagination
400Bad Request
401Unauthorized
403Forbidden
404Conversation Not Found or Not a Chat App
500Internal Server Error

[POST] /messages/{message_id}/feedbacks

Submit feedback (like/dislike) for a specific message.

Parameters

NameLocated inDescriptionRequiredSchema
message_idpathMessage UUIDYesstring (uuid)
contentqueryFeedback contentNostring
ratingqueryFeedback ratingNostring,
Available values: "dislike", "like"

Request Body

RequiredSchema
Yesapplication/json: MessageFeedbackPayload

Responses

CodeDescriptionSchema
200Feedback submitted successfullyapplication/json: ResultResponse
400Bad Request
401Unauthorized
403Forbidden
404Message Not Found
500Internal Server Error

[GET] /messages/{message_id}/more-like-this

Generate a new completion similar to an existing message (completion apps only).

Parameters

NameLocated inDescriptionRequiredSchema
response_modequeryResponse modeYesstring,
Available values: "blocking", "streaming"
message_idpathYesstring (uuid)

Responses

CodeDescriptionSchema
200Successapplication/json: GeneratedAppResponse
400Bad Request - Not a completion app or feature disabled
401Unauthorized
403Forbidden
404Message Not Found
500Internal Server Error

[GET] /messages/{message_id}/suggested-questions

Get suggested follow-up questions after a message (chat apps only).

Parameters

NameLocated inDescriptionRequiredSchema
message_idpathMessage UUIDYesstring (uuid)

Responses

CodeDescriptionSchema
200Successapplication/json: SuggestedQuestionsResponse
400Bad Request - Not a chat app or feature disabled
401Unauthorized
403Forbidden
404Message Not Found or Conversation Not Found
500Internal Server Error

[GET] /meta

Get app meta

Retrieve the metadata for a specific app.

Responses

CodeDescriptionSchema
200Successapplication/json: AppMetaResponse
400Bad Request
401Unauthorized
403Forbidden
404App Not Found
500Internal Server Error

[GET] /parameters

Retrieve app parameters

Retrieve the parameters for a specific app.

Responses

CodeDescriptionSchema
200Successapplication/json: Parameters
400Bad Request
401Unauthorized
403Forbidden
404App Not Found
500Internal Server Error

[GET] /passport

Get authentication passport for web application access

Parameters

NameLocated inDescriptionRequiredSchema
user_idqueryEnd user session IDNostring

Responses

CodeDescriptionSchema
200Passport retrieved successfullyapplication/json: PassportAccessTokenResponse
401Unauthorized - missing app code or invalid authentication
404Application or user not found

[POST] /remote-files/upload

Upload a file from a remote URL

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: RemoteFileUploadError: Failed to fetch file from remote URL FileTooLargeError: File exceeds size limit UnsupportedFileTypeError: File type not supported

Request Body

RequiredSchema
Yesapplication/json: RemoteFileUploadPayload

Responses

CodeDescriptionSchema
201Remote file uploaded successfullyapplication/json: FileWithSignedUrl
400Bad request - invalid URL or parameters
413File too large
415Unsupported file type
500Failed to fetch remote file

[GET] /remote-files/{url}

Get information about a remote file

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

Parameters

NameLocated inDescriptionRequiredSchema
urlpathYesstring

Responses

CodeDescriptionSchema
200Remote file information retrieved successfullyapplication/json: RemoteFileInfo
400Bad request - invalid URL
404Remote file not found
500Failed to fetch remote file

[GET] /saved-messages

Retrieve paginated list of saved messages for a completion application.

Parameters

NameLocated inDescriptionRequiredSchema
last_idqueryNostring
limitqueryNointeger,
Default: 20

Responses

CodeDescriptionSchema
200Successapplication/json: SavedMessageInfiniteScrollPagination
400Bad Request - Not a completion app
401Unauthorized
403Forbidden
404App Not Found
500Internal Server Error

[POST] /saved-messages

Save a specific message for later reference.

Parameters

NameLocated inDescriptionRequiredSchema
message_idqueryMessage UUID to saveYesstring

Request Body

RequiredSchema
Yesapplication/json: SavedMessageCreatePayload

Responses

CodeDescriptionSchema
200Message saved successfullyapplication/json: ResultResponse
400Bad Request - Not a completion app
401Unauthorized
403Forbidden
404Message Not Found
500Internal Server Error

[DELETE] /saved-messages/{message_id}

Remove a message from saved messages.

Parameters

NameLocated inDescriptionRequiredSchema
message_idpathMessage UUID to deleteYesstring (uuid)

Responses

CodeDescription
204Message removed successfully
400Bad Request - Not a completion app
401Unauthorized
403Forbidden
404Message Not Found
500Internal Server Error

[GET] /site

Retrieve app site info

Retrieve app site information and configuration.

Responses

CodeDescriptionSchema
200Successapplication/json: WebAppSiteResponse
400Bad Request
401Unauthorized
403Forbidden
404App Not Found
500Internal Server Error

[GET] /system-features

Get the non-sensitive bootstrap snapshot exposed before authentication

Get the non-sensitive bootstrap snapshot exposed before Console or Web authentication. This is not a general feature registry. 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.

Authentication configuration must be available before the authentication flow can be selected.

Responses

CodeDescriptionSchema
200System features retrieved successfullyapplication/json: SystemFeatureModel
500Internal server error

[POST] /text-to-audio

Convert text to audio

Convert text to audio using text-to-speech service.

Request Body

RequiredSchema
Yesapplication/json: TextToAudioPayload

Responses

CodeDescription
200Success
400Bad Request
401Unauthorized
403Forbidden
500Internal Server Error

[GET] /webapp/access-mode

Retrieve the access mode for a web application (public or restricted).

Parameters

NameLocated inDescriptionRequiredSchema
appCodequeryApplication codeNostring
appIdqueryApplication IDNostring

Responses

CodeDescriptionSchema
200Successapplication/json: AccessModeResponse
400Bad Request
500Internal Server Error

[GET] /webapp/permission

Check if user has permission to access a web application.

Parameters

NameLocated inDescriptionRequiredSchema
appIdqueryApplication IDYesstring

Responses

CodeDescriptionSchema
200Successapplication/json: BooleanResultResponse
400Bad Request
401Unauthorized
500Internal Server Error

[POST] /workflows/run

Run workflow

Execute a workflow with provided inputs and files.

Request Body

RequiredSchema
Yesapplication/json: WorkflowRunPayload

Responses

CodeDescriptionSchema
200Successapplication/json: GeneratedAppResponse
400Bad Request
401Unauthorized
403Forbidden
404App Not Found
500Internal Server Error

[POST] /workflows/tasks/{task_id}/stop

Stop workflow task

Stop a running workflow task.

Parameters

NameLocated inDescriptionRequiredSchema
task_idpathTask ID to stopYesstring

Responses

CodeDescriptionSchema
200Successapplication/json: SimpleResultResponse
400Bad Request
401Unauthorized
403Forbidden
404Task Not Found
500Internal Server Error

default

Default namespace

[GET] /workflow/{task_id}/events

Get workflow execution events stream after resume

GET /api/workflow/<task_id>/events

Returns Server-Sent Events stream.

Parameters

NameLocated inDescriptionRequiredSchema
task_idpathYesstring

Responses

CodeDescriptionSchema
200SSE event streamapplication/json: EventStreamResponse

Schemas

AccessModeResponse

NameTypeDescriptionRequired
accessModestringYes

AccessTokenData

NameTypeDescriptionRequired
access_tokenstringYes

AccessTokenResultResponse

NameTypeDescriptionRequired
dataAccessTokenDataYes
resultstringYes

AgentThought

NameTypeDescriptionRequired
answerstringNo
chain_idstringNo
created_atintegerNo
files[ string ]Yes
idstringYes
message_idstringYes
observationstringNo
positionintegerYes
thoughtstringNo
toolstringNo
tool_inputstringNo
tool_labelsJSONValueYes

AppAccessModeQuery

NameTypeDescriptionRequired
appCodestringApplication codeNo
appIdstringApplication IDNo

AppMetaResponse

NameTypeDescriptionRequired
tool_iconsobjectTool icon metadata keyed by tool nameNo

AppMode

NameTypeDescriptionRequired
AppModestring

AppPermissionQuery

NameTypeDescriptionRequired
appIdstringApplication IDYes

AudioToTextResponse

NameTypeDescriptionRequired
textstringYes

BooleanResultResponse

NameTypeDescriptionRequired
resultbooleanYes

BrandingModel

NameTypeDescriptionRequired
application_titlestringYes
enabledbooleanYes
faviconstringYes
login_page_logostringYes
workspace_logostringYes

ButtonStyle

Button styles for user actions.

NameTypeDescriptionRequired
ButtonStylestringButton styles for user actions.

ChatMessagePayload

NameTypeDescriptionRequired
conversation_idstringConversation IDNo
files[ object ]Files to be processedNo
inputsobjectInput variables for the chatYes
parent_message_idstringParent message IDNo
querystringUser query/messageYes
response_modestringResponse mode: blocking or streamingNo
retriever_fromstring,
Default: web_appSource of retrieverNo

CompletionMessagePayload

NameTypeDescriptionRequired
files[ object ]Files to be processedNo
inputsobjectInput variables for the completionYes
querystringQuery text for completionNo
response_modestringResponse mode: blocking or streamingNo
retriever_fromstring,
Default: web_appSource of retrieverNo

ConversationInfiniteScrollPagination

NameTypeDescriptionRequired
data[ SimpleConversation ]Yes
has_morebooleanYes
limitintegerYes

ConversationListQuery

NameTypeDescriptionRequired
last_idstringNo
limitinteger,
Default: 20No
pinnedbooleanNo
sort_bystring,
Available values: "-created_at", "-updated_at", "created_at", "updated_at",
Default: -updated_atEnum: "-created_at", "-updated_at", "created_at", "updated_at"No

ConversationRenamePayload

NameTypeDescriptionRequired
auto_generatebooleanAutomatically generate the conversation name. When true, the name field is ignored.No
namestringConversation name. Required when auto_generate is false.No

DeploymentEdition

Enum representing the deployment edition of the platform.

NameTypeDescriptionRequired
DeploymentEditionstringEnum representing the deployment edition of the platform.

EmailCodeLoginSendPayload

NameTypeDescriptionRequired
emailstringYes
languagestringNo

EmailCodeLoginVerifyPayload

NameTypeDescriptionRequired
codestringYes
emailstringYes
tokenstringYes

EventStreamResponse

NameTypeDescriptionRequired
EventStreamResponsestring

ExecutionContentType

NameTypeDescriptionRequired
ExecutionContentTypestring

FileInputConfig

NameTypeDescriptionRequired
allowed_file_extensions[ string ]No
allowed_file_types[ FileType ]No
allowed_file_upload_methods[ FileTransferMethod ]No
output_variable_namestringYes
typestringNo

FileListInputConfig

NameTypeDescriptionRequired
allowed_file_extensions[ string ]No
allowed_file_types[ FileType ]No
allowed_file_upload_methods[ FileTransferMethod ]No
number_limitsintegerNo
output_variable_namestringYes
typestringNo

FileResponse

NameTypeDescriptionRequired
conversation_idstringNo
created_atintegerNo
created_bystringNo
extensionstringNo
file_keystringNo
idstringYes
mime_typestringNo
namestringYes
original_urlstringNo
preview_urlstringNo
referencestringNo
sizeintegerYes
source_urlstringNo
tenant_idstringNo
user_idstringNo

FileTransferMethod

NameTypeDescriptionRequired
FileTransferMethodstring

FileType

NameTypeDescriptionRequired
FileTypestring

FileWithSignedUrl

NameTypeDescriptionRequired
created_atintegerYes
created_bystringYes
extensionstringYes
idstringYes
mime_typestringYes
namestringYes
sizeintegerYes
urlstringYes

ForgotPasswordCheckPayload

NameTypeDescriptionRequired
codestringYes
emailstringYes
tokenstringYes

ForgotPasswordResetPayload

NameTypeDescriptionRequired
new_passwordstringYes
password_confirmstringYes
tokenstringYes

ForgotPasswordSendPayload

NameTypeDescriptionRequired
emailstringYes
languagestringNo

FormInputConfig

NameTypeDescriptionRequired
FormInputConfigParagraphInputConfig
SelectInputConfig
FileInputConfig
FileListInputConfig

GeneratedAppResponse

NameTypeDescriptionRequired
GeneratedAppResponse

HumanInputContent

NameTypeDescriptionRequired
form_definitionHumanInputFormDefinitionNo
form_submission_dataHumanInputFormSubmissionDataNo
submittedbooleanYes
typeExecutionContentTypeNo
workflow_run_idstringYes

HumanInputFileUploadFormPayload

Parsed multipart form fields for HITL uploads.

NameTypeDescriptionRequired
urlstringRemote file URLNo

HumanInputFormDefinition

NameTypeDescriptionRequired
actions[ UserActionConfig ]No
display_in_uibooleanNo
expiration_timeintegerYes
form_contentstringYes
form_idstringYes
form_tokenstringNo
inputs[ FormInputConfig ]No
node_idstringYes
node_titlestringYes
resolved_default_valuesobjectNo

HumanInputFormDefinitionResponse

NameTypeDescriptionRequired
expiration_timeintegerYes
form_contentstringYes
inputs[ FormInputConfig ]Yes
resolved_default_valuesobjectYes
siteWebAppSiteResponseNo
user_actions[ UserActionConfig ]Yes

HumanInputFormSubmissionData

NameTypeDescriptionRequired
action_idstringYes
action_textstringYes
node_idstringYes
node_titlestringYes
rendered_contentstringYes
submitted_dataobjectNo

HumanInputFormSubmitPayload

NameTypeDescriptionRequired
actionstringID of the action button the recipient selected. Must match one of the id values from the form's user_actions list.Yes
inputsobjectSubmitted 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

NameTypeDescriptionRequired

HumanInputUploadTokenResponse

NameTypeDescriptionRequired
expires_atintegerYes
upload_tokenstringYes

JSONObject

NameTypeDescriptionRequired
JSONObjectobject

JSONValue

NameTypeDescriptionRequired
JSONValuestring
integer
number
boolean
object
[ object ]

JSONValueType

NameTypeDescriptionRequired
JSONValueType

JsonValue

NameTypeDescriptionRequired
JsonValue

LicenseStatus

NameTypeDescriptionRequired
LicenseStatusstring

LicenseStatusModel

NameTypeDescriptionRequired
statusLicenseStatusYes

LoginPayload

NameTypeDescriptionRequired
emailstringYes
passwordstringYes

LoginStatusQuery

NameTypeDescriptionRequired
app_codestringWeb app codeNo
user_idstringEnd user session IDNo

LoginStatusResponse

NameTypeDescriptionRequired
app_logged_inbooleanYes
logged_inbooleanYes

MessageFeedbackPayload

NameTypeDescriptionRequired
contentstringOptional text feedback providing additional detail.No
ratingstringFeedback rating. Set to null to revoke previously submitted feedback.No

MessageFile

NameTypeDescriptionRequired
belongs_tostringNo
filenamestringYes
idstringYes
mime_typestringNo
sizeintegerNo
transfer_methodstringYes
typestringYes
upload_file_idstringNo
urlstringNo

MessageListQuery

NameTypeDescriptionRequired
conversation_idstringConversation ID.Yes
first_idstringThe 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
limitinteger,
Default: 20Number of chat history messages to return per request.No

MessageMoreLikeThisQuery

NameTypeDescriptionRequired
response_modestring,
Available values: "blocking", "streaming"Response mode
Enum: "blocking", "streaming"Yes

ParagraphInputConfig

Form input definition.

NameTypeDescriptionRequired
defaultStringSourceNo
output_variable_namestringYes
typestringNo

Parameters

NameTypeDescriptionRequired
annotation_replyJSONObjectYes
file_uploadJSONObjectYes
more_like_thisJSONObjectYes
opening_statementNo
retriever_resourceJSONObjectYes
sensitive_word_avoidanceJSONObjectYes
speech_to_textJSONObjectYes
suggested_questions[ string ]Yes
suggested_questions_after_answerJSONObjectYes
system_parametersSystemParametersYes
text_to_speechJSONObjectYes
user_input_form[ JSONObject ]Yes

PassportAccessTokenResponse

NameTypeDescriptionRequired
access_tokenstringYes

PassportQuery

NameTypeDescriptionRequired
user_idstringEnd user session IDNo

PluginInstallationPermissionModel

NameTypeDescriptionRequired
plugin_installation_scopePluginInstallationScopeYes
restrict_to_marketplace_onlybooleanYes

PluginInstallationScope

NameTypeDescriptionRequired
PluginInstallationScopestring

RemoteFileInfo

NameTypeDescriptionRequired
file_lengthintegerYes
file_typestringYes

RemoteFileUploadPayload

NameTypeDescriptionRequired
urlstring (uri)Remote file URLYes

ResultResponse

NameTypeDescriptionRequired
resultstringYes

RetrieverResource

NameTypeDescriptionRequired
contentstringNo
created_atintegerNo
data_source_typestringNo
dataset_idstringNo
dataset_namestringNo
document_idstringNo
document_namestringNo
hit_countintegerNo
idstringNo
index_node_hashstringNo
message_idstringNo
positionintegerYes
scorenumberNo
segment_idstringNo
segment_positionintegerNo
summarystringNo
word_countintegerNo

SavedMessageCreatePayload

NameTypeDescriptionRequired
message_idstringYes

SavedMessageInfiniteScrollPagination

NameTypeDescriptionRequired
data[ SavedMessageItem ]Yes
has_morebooleanYes
limitintegerYes

SavedMessageItem

NameTypeDescriptionRequired
answerstringYes
created_atintegerNo
feedbackSimpleFeedbackNo
idstringYes
inputsobjectYes
message_files[ MessageFile ]Yes
querystringYes

SavedMessageListQuery

NameTypeDescriptionRequired
last_idstringNo
limitinteger,
Default: 20No

SelectInputConfig

NameTypeDescriptionRequired
option_sourceStringListSourceYes
output_variable_namestringYes
typestringNo

SimpleConversation

NameTypeDescriptionRequired
created_atintegerNo
idstringYes
inputsobjectYes
introductionstringNo
namestringYes
statusstringYes
updated_atintegerNo

SimpleFeedback

NameTypeDescriptionRequired
ratingstringNo

SimpleResultDataResponse

NameTypeDescriptionRequired
datastringYes
resultstringYes

SimpleResultResponse

NameTypeDescriptionRequired
resultstringYes

StringListSource

NameTypeDescriptionRequired
selector[ string ]No
typeValueSourceTypeYes
value[ string ]No

StringSource

Default configuration for form inputs.

NameTypeDescriptionRequired
selector[ string ]No
typeValueSourceTypeYes
valuestringNo

SuggestedQuestionsResponse

NameTypeDescriptionRequired
data[ string ]Yes

SystemFeatureModel

Non-sensitive bootstrap snapshot exposed before Console or Web authentication.

NameTypeDescriptionRequired
brandingBrandingModelYes
deployment_editionDeploymentEditionYes
enable_app_deploybooleanYes
enable_change_emailboolean,
Default: trueYes
enable_collaboration_modeboolean,
Default: trueYes
enable_creators_platformbooleanYes
enable_email_code_loginbooleanYes
enable_email_password_loginboolean,
Default: trueYes
enable_explore_bannerbooleanYes
enable_learn_appboolean,
Default: trueYes
enable_marketplacebooleanYes
enable_social_oauth_loginbooleanYes
enable_step_by_step_tourbooleanYes
is_allow_registerbooleanYes
is_email_setupbooleanYes
knowledge_fs_enabledbooleanYes
licenseLicenseStatusModelYes
plugin_installation_permissionPluginInstallationPermissionModelYes
rbac_enabledbooleanYes
sso_enforced_for_signinbooleanYes
sso_enforced_for_signin_protocolstringYes
webapp_authWebAppAuthModelYes

SystemParameters

NameTypeDescriptionRequired
audio_file_size_limitintegerYes
file_size_limitintegerYes
image_file_size_limitintegerYes
video_file_size_limitintegerYes
workflow_file_upload_limitintegerYes

TextToAudioPayload

NameTypeDescriptionRequired
message_idstringMessage ID. Takes priority over text when both are provided.No
streamingbooleanReserved for compatibility; TTS response streaming is determined by the provider output.No
textstringSpeech content to convert.No
voicestringVoice 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 as text_to_speech.voice.No

UserActionConfig

User action configuration.

NameTypeDescriptionRequired
button_styleButtonStyleNo
idstringYes
titlestringYes

ValueSourceType

ValueSourceType records whether the value comes from a static setting in form definition, or a variable while the workflow is running.

NameTypeDescriptionRequired
ValueSourceTypestringValueSourceType records whether the value comes from a static setting in form definition, or a variable while the workflow is running.

VerificationTokenResponse

NameTypeDescriptionRequired
emailstringYes
is_validbooleanYes
tokenstringYes

WebAppAuthModel

NameTypeDescriptionRequired
allow_email_code_loginbooleanYes
allow_email_password_loginbooleanYes
allow_public_accessboolean,
Default: trueYes
allow_ssobooleanYes
enabledbooleanYes
sso_configWebAppAuthSSOModelYes

WebAppAuthSSOModel

NameTypeDescriptionRequired
protocolstringYes

WebAppCustomConfigResponse

NameTypeDescriptionRequired
remove_webapp_brandbooleanYes
replace_webapp_logostringNo

WebAppSiteResponse

NameTypeDescriptionRequired
app_idstringYes
can_replace_logobooleanYes
custom_configWebAppCustomConfigResponseNo
enable_sitebooleanYes
end_user_idstringNo
modeAppModeYes
model_configWebModelConfigResponseNo
planstringYes
siteWebSiteResponseYes

WebMessageInfiniteScrollPagination

NameTypeDescriptionRequired
data[ WebMessageListItem ]Yes
has_morebooleanYes
limitintegerYes

WebMessageListItem

NameTypeDescriptionRequired
agent_thoughts[ AgentThought ]Yes
answerstringYes
answer_tokensintegerNo
conversation_idstringYes
created_atintegerNo
currencystringNo
errorstringNo
extra_contents[ HumanInputContent ]Yes
feedbackSimpleFeedbackNo
idstringYes
inputsobjectYes
message_files[ MessageFile ]Yes
message_tokensintegerNo
metadataJSONValueTypeNo
parent_message_idstringNo
provider_response_latencynumberNo
querystringYes
retriever_resources[ RetrieverResource ]Yes
statusstringYes
total_pricestringNo
total_tokensintegerYes

WebModelConfigResponse

NameTypeDescriptionRequired
modelNo
more_like_thisNo
opening_statementstringNo
pre_promptstringNo
suggested_questionsNo
suggested_questions_after_answerNo
user_input_formNo

WebSiteResponse

NameTypeDescriptionRequired
chat_color_themestringNo
chat_color_theme_invertedbooleanYes
copyrightstringNo
custom_disclaimerstringNo
default_languagestringNo
descriptionstringNo
iconstringNo
icon_backgroundstringNo
icon_typestringNo
icon_urlstringNo
input_placeholderstringNo
privacy_policystringNo
prompt_publicbooleanNo
show_workflow_stepsbooleanNo
titlestringYes
use_icon_as_answer_iconbooleanNo

WorkflowRunPayload

NameTypeDescriptionRequired
files[ 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 and use the returned id as upload_file_id with transfer_method: local_file.No
inputsobjectKey-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 response to discover the variable names and types expected by your app.Yes