Skip to main content

API overview

API standards and multilingual preset SDKs

The OpenAPI of this product (DianJin/2024-06-28) uses the ROA signature style. We have encapsulated SDKs for common programming languages for developers. Developers can download the SDK to directly call this product's OpenAPI without worrying about technical details. If the existing SDK does not meet your needs, you can use the signature mechanism for self-signing integration. Since the details of self-signing are very complex, it may take around 5 business days. Therefore, we recommend joining our DingTalk service group (147535001692) and conducting signature integration under expert guidance. Before using the API, you need to prepare your identity account and access key (AccessKey) to effectively access the API through client tools (such as SDK and CLI). For details, see Obtain an AccessKey.

Custom signature scenarios

If your business scenario has special requirements and you need to integrate the API through self-signing, we recommend consulting our technical support team first (DingTalk service group: 147535001692) to obtain professional guidance and ensure efficient integration.

Account and security preparation

Alibaba Cloud accounts have full administrative permissions over all resources. Once an AccessKey is compromised, all associated resources will be at risk of unauthorized access. To ensure security, it is recommended to create a RAM user with only API access permissions and configure its AccessKey, while configuring RAM policies based on the principle of least privilege (PoLP). Use the Alibaba Cloud account only in specific scenarios where Alibaba Cloud account permissions are explicitly required.

Platform capabilities - document library

API

Title

Description

UpdateDocumentChunkUpdate document block contentUpdate the text content of a document chunk in a document.
GetAppConfigObtain Configuration InformationRetrieve app configuration.
CreateLibraryCreate a document libraryCreates a document library. A document library isolates document and index data. If your use case requires frequent natural language search by category, create multiple libraries to isolate different data types. You can customize vector and text indexes by format.
GetLibraryListRetrieve document library listRetrieve the document library list. The list includes document names, descriptions, and unique identifiers.
GetLibraryObtain document library detailsRetrieves the detailed configuration of a document library, including its name, description, and index settings.
UploadDocumentFileUpload a document to a document library. The system parses the document, splits it into chunks, and builds an index.
GetDocumentUrlObtain the document download linkRetrieve a download URL for a document. The URL expires after 1 hour.
PreviewDocumentPreview documentPreview documents. Retrieve document download links, types, and titles. Use this operation to preview documents.
GetFilterDocumentListQuery document list by metadata filtersThis operation retrieves a list of documents. You can filter documents by metadata or use paging.
GetDocumentListRetrieve Document ListRetrieves a list of documents from a document library. This operation supports paged queries and filtering by document status.
DeleteDocumentDelete DocumentDeletes a document. After deletion, you cannot view the original document or recall it.
UpdateDocumentUpdate DocumentUpdates the title, metadata, and other information of a document.
CreatePredefinedDocumentCreate a predefined documentCreates document chunks based on your business scenarios.
GetDocumentChunkListRetrieve document chunk listRetrieve a list of document chunks. You can filter them by query conditions.
RecallDocumentdocument recallYou can retrieve document chunks from a document library using text. You can specify the number of chunks to retrieve, filter them by metadata conditions, and choose whether to complete the document chunks.
GetParseResultObtain document parsing resultRetrieve document parsing results. You can query the document's parsing status and obtain the parsing results.
ReIndexReindexReindexing reprocesses the specified document by parsing it, splitting it into chunks, and building a new index.
UpdateLibraryUpdate Document LibraryUpdates a document library. You can update the library name, description, and index configuration.
DeleteLibraryDelete document libraryDelete a document library. ⚠️ This operation deletes the library and all its associated documents.
RunLibraryChatGenerationGenerate Document Library SessionGenerates a chat response from a document library. You can ask questions in natural language, and the system retrieves relevant information to provide a summarized answer.
GetHistoryListByBizTypeRetrieve conversation history by business typeRetrieve conversation history records by business type.
InvokePluginInvoke PluginCall a plugin and retrieve its response.

Platform capabilities - applications

API

Title

Description

EndToEndRealTimeDialogReal-time speech dialogueThis API uses the WebSocket protocol to perform real-time conversational transcription, intent recognition, and speech synthesis. It supports various audio formats for both input and output to ensure real-time performance and high compatibility.
RunDialogAnalysisGenerate Conversation Analysis ResultRetrieves session analysis results through a streaming API.
RunAgentRun agentRun an agent. This API supports both streaming and non-streaming responses.
CreateDialogCreate an outbound call sessionCreates an outbound call session.
RealTimeDialogReal-time SessionStarts a real-time session. After you create a session by calling the CreateDialog API, use this API to conduct the real-time interaction.
RealtimeDialogAssistReal-Time Session AssistanceProvides real-time dialog assistance after a session is created using CreateDialog. Note: This operation returns multiple intents, tags, and SOP flows. Unlike real-time sessions, it does not support streaming responses.
GetDialogDetailRetrieve session detailsRetrieve session details.
GetDialogLogRetrieve conversation logsRetrieves records of real-time conversations and the results of intent analysis.
GetDialogAnalysisResultRetrieve Conversation Analysis ResultRetrieve session analysis results. You can retrieve results in batches by specifying a list of session IDs or a time range.
CreateDialogAnalysisTaskCreate Conversation Analysis JobCreates a session analysis task. After the task is created, use the session ID with GetDialogAnalysisResult to retrieve the results.
RebuildTaskRebuild JobRebuilds an existing task. You cannot rebuild tasks that are queued or currently executing.
EvictTaskCancel JobTerminate the job.
GetTaskStatusObtain Job StatusGets the status of a task.
CreateDocsSummaryTaskCreate a multi-document summarization jobCreates a multi-document summary task.
CreateAnnualDocSummaryTaskCreate a document summarization job by yearCreate a task to summarize documents by year.
CreatePdfTranslateTaskCreate a PDF Document Translation JobCreate a PDF document translation task. Submit the task to start asynchronous translation.
CreateFinReportSummaryTaskCreate a Financial Report Summary JobCreates a financial report summary.
GetSummaryTaskResultRetrieve Financial Report Summary Job ResultRetrieves the result of a financial report summary task.
GetTaskResultRetrieve ResultRetrieves the result of an asynchronous task.
CreateQualityCheckTaskCreate a quality inspection jobCreates a quality check task.
GetQualityCheckTaskResultObtain quality inspection ResultRetrieve quality check results.
RecognizeIntentionIntent recognitionDetects intents. This operation supports global and hierarchical intent detection, attitude detection, and enterprise detection.
GenDocQaResultParse Q&A pairs from a documentParses question and answer (Q&A) pairs from a document. You can use the UpdateQaLibrary API to update the Q&A pairs.
UpdateQaLibraryUpdate Q&A Pair LibraryUpdates a Q&A library. After the update, use the GenDocQaResult API to parse the Q&A pairs.
SubmitChatQuestionsubmit question ListSubmit a list of questions and retrieve results by calling the `GetChatQuestionResp` API.
GetChatQuestionRespRetrieve Q&A resultsRetrieves the Q&A results generated by the SubmitChatQuestion API.
RunChatResultGenerationGenerate conversation resultGenerates chat responses. You can select a model for the conversation and choose streaming or non-streaming output.

Others

API

Title

Description

DashscopeAsyncTaskFinishEventDashscope asynchronous job completion callback eventA callback event that indicates the completion of a Dashscope asynchronous task.
Agent Development
Agent Context
Agent Governance & Evolution
Store
Application Marketplace