Request
| Basic information | |
|---|---|
| HTTP URL | https://oapi.dingtalk.io/topapi/chat/qrcode/get |
| HTTP Method | POST |
| Supported app types | appType-Internal app |
| Required permissions | permission-qyapi_chat_base_read-Read permission for basic information of DingTalk Group Management |
Query parameters
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| access_token | String | Yes | 30c36943eaxxxx | The app credential used to call this API. Obtain it through the API for getting the access_token of an internal app. |
Request body
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| chatid | String | Yes | chat3234dfs423a | The chatid of the group chat. Call the API for creating a group chat to obtain the value of the chatid parameter. |
| userid | String | Yes | manager4220 | The userId of the user who shares the QR code. |
Request example
Response
Response body
| Name | Type | Example | Description |
|---|---|---|---|
| result | String | https://test/action/join?1233 | The link to join the group chat. |
| success | Boolean | true | Whether the call succeeded. - true: Success - false: Failed |
| errcode | Number | 0 | The return code. |
| errmsg | String | ok | The description of the return code. |
| request_id | String | 2tgtcjyjhptd | The request ID. |
Response example
Error codes
If an error occurs when you call this API, refer to the Global error codes document to find a solution based on the error message.| Error code (errorcode) | Error message (errmsg) | Solution |
|---|---|---|
| 34001 | Invalid chat ID | Check whether the chatId is correct. |
| 40003 | Invalid userid | Check whether the userid is correct. |
| 60124 | The user is not in this group chat | Check whether the userid is correct. |
| 400001 | System error | Try again later. |