API call description
This API only returns the delivery progress of work notifications sent within the past 7 days.Request
| Basic information | |
|---|---|
| HTTP URL | https://oapi.dingtalk.io/topapi/message/corpconversation/getsendprogress |
| HTTP Method | POST |
| Supported app types | appType-Internal app, appType-Third-party enterprise app |
| Required permissions | permission-qyapi_base-Basic permissions required for calling enterprise APIs |
Query parameter
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| access_token | String | Yes | bE74xxxx | The app credential used to call this API. - For an internal app, obtain it by calling the API for getting the access_token of an internal app. - For a third-party enterprise app, obtain it by calling the API for getting the access_token of a third-party enterprise. |
Request body
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| agent_id | Number | Yes | 836390886 | The Agent ID of the micro app used to send the message. - For an internal app, view it on the app details page of the Developer Backend. - For a third-party enterprise app, obtain it by calling the API for getting the enterprise authorization information. |
| task_id | Number | Yes | 256271667526 | The task ID returned by DingTalk when the message was sent. Call the Send work notifications API to get the value of task_id. Note Only tasks created within the past 24 hours can be queried. |
Request example
Response
Response body
| Name | Type | Example | Description |
|---|---|---|---|
| request_id | String | 5y2znla8tw3d | The request ID. |
| errcode | Number | 0 | The return code. |
| errmsg | String | ok | The description of the return code. |
| progress | AsyncSendProgress | The returned result. | |
| progress_in_percent | Number | 100 | The processing percentage. Value range: 0 to 100. |
| status | Number | 2 | The task execution status: - 0: Not started - 1: In progress - 2: Completed |
Response example
Error codes
If an error is returned when you call this API, refer to the Global error codes document for solutions based on the error message.| Error code (errorcode) | Error message (errmsg) | Solution |
|---|---|---|
| 40035 | Invalid parameter | Verify that task_id or agent_id is correct. |
| 500 | System error | An unknown system error occurred. |