
| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | chat相关接口的管理权限 | API Explorer |
| 第三方企业应用 | 支持 | chat相关接口的管理权限 | API Explorer |
| 第三方个人应用 | 暂不支持 | chat相关接口的管理权限 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | queryEmployInfoFailed | 查询企业员工信息失败 | 查询企业员工信息失败 |
| 400 | invalidParameter | 无效的参数 | 无效的参数 |
| 400 | notEmptyParameter | 缺失必填的参数 | 缺失必填的参数 |
| 400 | emptyUserId | 用户ID为空 | 用户ID为空 |
| 400 | decryptOpenconversationIdFailed | 群ID解码失败 | 群ID解码失败 |
| 400 | contentSecurityChckFailed | 卡片内容不符合安全规范 | 卡片内容不符合安全规范 |
| 400 | cardTemplateInvalid | 卡片模板无效 | 卡片模板无效 |
| 400 | chatbotNotInstall | 机器人未安装 | 机器人未安装 |
| 400 | userNotExist | 用户不存在 | 用户不存在 |
| 400 | invalidParameter.param.empty | 入参为空 | 入参为空 |
| 400 | invalidParameter.cid.empty | 群id为空 | 群id为空 |
| 400 | invalidParameter.cardTemplate.notFound | 不存在的卡片模板 | 不存在的卡片模板 |
| 400 | paramBlank | 请求参数为空 | 请求参数为空 |
| 400 | sendCardMessageFailed | 发送卡片失败 | 发送卡片失败 |
| 400 | cidDecryptError | 群ID解析失败 | 群ID解析失败 |
| 400 | sceneGroupNotFound | 非场景群 | 非场景群 |
| 400 | chatbotNotFound | 不存在的机器人 | 不存在的机器人 |
| 400 | uidDecryptError | 消息接收者UID解码错误 | 消息接收者UID解码错误 |
| 400 | duplicateKey | 卡片模板占位符有重复Key | 卡片模板占位符有重复Key |
| 400 | getPictureFailed | 获取图片url失败 | 获取图片url失败 |
| 400 | contentCheckError | 卡片内容校验失败 | 卡片内容校验失败 |
| 400 | outTrackIdLengthLimited | 超过卡片 业务标识信息长度 | 超过卡片业务标识信息长度 |
| 500 | systemBusy | 系统繁忙 | 系统异常错误 |
curl --location --request POST 'https://api.dingtalk.com/v1.0/im/interactiveCards/templates/send' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"cardTemplateId" : "String",
"openConversationId" : "String",
"singleChatReceiver" : "String",
"outTrackId" : "String",
"robotCode" : "String",
"callbackUrl" : "String",
"cardData" : "String",
"sendOptions" : {
"atUserListJson" : "String",
"atAll" : Boolean,
"receiverListJson" : "String",
"cardPropertyJson" : "String"
}
}'{
"processQueryKey": "string"
}
【钉钉】API开发者 微信交流群
用微信扫右侧二维码,加入【钉钉】API开发者 交流群,互助沟通

扫码加入交流群