Skip to main content
App data in a dedicated cluster environment is stored in a private environment and cannot access the public network. As a result, the YiDA OpenAPI on the DingTalk Open Platform cannot retrieve this data. You must call the OpenAPI from within the cluster environment. The cluster-environment OpenAPI is essentially the same as on the DingTalk Open Platform, differing only in the host and the required AK/SK. This article explains how to call the YiDA OpenAPI in a dedicated cluster environment.
Note:YiDA Dedicated currently exposes its high-frequency data service APIs. Based on the YiDA API capabilities available on the DingTalk Open Platform as of December 31, 2023, a total of 52 OpenAPIs are available.

Call Flow

Calling YiDA APIs in a cluster environment is similar to calling them on the DingTalk Open Platform. All related OpenAPIs on the DingTalk Open Platform are called via api.dingtalk.com. For cluster-edition OpenAPI, simply replace api.dingtalk.com with your organization’s cluster-edition YiDA domain.
  1. Obtain the domain of your organization’s YiDA dedicated cluster, for example, ddyd.corp.com.
  2. Obtain the AK and SK for your organization’s cluster edition.
Contact your organization’s DingTalk admin. Sign in to the DingTalk Open Platform, search for “YiDA Dedicated Cluster” under internal apps, and get the relevant information from the app named YiDA Dedicated Cluster Authentication App.
1

Step 1

Use the AK/SK obtained in the previous step to call the /v1.0/oauth2/accessToken endpoint and obtain the app’s access_token. For request parameters, refer to Obtain the access_token for an internal app.
On the Open Platform, the call is https://api.dingtalk.com/v1.0/oauth2/accessToken.Assuming your organization’s YiDA domain is https://your-org-private-yida-domain.com, the cluster-edition call is:https://your-org-private-yida-domain.com/v1.0/oauth2/accessTokenThe access_token is valid for 2 hours by default.
2

Call YiDA APIs with the access_token

The DingTalk Open Platform provides SDKs in Java, PHP, Python, and .NET for developers. Cluster-edition OpenAPI supports similar calls.
Internal apps and third-party enterprise apps share the same Server-side SDK. Click either of the links below to download it.
  • Internal app: Download the Server-side SDK.
  • Third-party enterprise app: Download the Server-side SDK.
  1. If you use the DingTalk Open Platform SDK, apply the following changes:
Change 1: If the domain uses http, set config.protocol = “http”. Change 2: Explicitly set client._endpoint to your organization’s actual YiDA domain.

Cluster API List

YiDA provides a rich set of open API capabilities, enabling developers to integrate YiDA with enterprise business systems. Currently, APIs are primarily open for forms, workflows, and apps.
ModuleStandard Server APIDescription
WorkflowStart a YiDA approval processStart a YiDA approval process on the DingTalk Open Platform.
Delete a workflow instanceDelete a workflow instance.
Terminate a workflow instanceTerminate a workflow instance.
Get a list of instance IDsGet a list of instance IDs.
Get multiple workflow instances in bulkGet details of multiple workflow instances by their IDs in bulk.
Get a workflow instanceGet workflow instance information from YiDA.
Get a workflow instance by IDGet the details of a workflow instance by its ID.
FormGet the form list of a specified appGet the form list of an app with pagination.
Get component information in a formGet component information in a form or workflow form by form ID.
Query form instance dataQuery form instance data.
Save form dataCreate a YiDA form instance without an approval process.
Update form dataUpdate form data.
Query form dataQuery form data by form instance ID.
Get the value of an employee componentGet the value of an employee component.
Get the list of form component definitionsGet the list of form component definitions.
Get subform component dataGet subform component data by form instance ID and subform component ID.
Delete form dataDelete form data.
Get multiple form instance IDsGet multiple form instance IDs.
Get multiple form instances in bulkGet details of multiple form instances in bulk.
Delete multiple form instances in bulkDelete multiple form instance records in bulk.
Create multiple form instances in bulkCreate multiple form instance records in bulk.
Update component values in form instances in bulkUpdate component values in YiDA form instances in bulk by form instance ID.
Create or update a form instanceCreate or update a form instance using filters.
Query form instance data with advanced query conditions (including subform component data)Get form instance details using filters.
Query form instance data with advanced query conditions (excluding subform component data)Get form instance details using filters, excluding subform component data.
Update form instances in bulk with form instance dataUpdate form instance information in bulk using YiDA form component data.
Query form change recordsQuery form change records.
Approval taskGet approval recordsGet approval records.
Accept or decline a YiDA approval taskAccept or decline a YiDA approval task.
Transfer a taskTransfer a task.
Submit a commentSubmit a comment on a form or workflow instance.
Query comments on YiDA form instances in bulkQuery all comments on YiDA forms in bulk.
AppQuery the YiDA app listQuery the list of YiDA apps in your organization.