


sys_lastMessageI18n。{\"zh_CN\":\"蚂蚁分工\",\"zh_TW\":\"螞蟻分工\",\"zh_HK\":\"螞蟻分工\",\"ja_JP\":\"アリの分業\",\"en_US\":\"Ant division of labor\"}""cardData": { "cardParamMap": { "sys_lastMessageI18n": "{\"zh_CN\":\"蚂蚁分工\",\"zh_TW\":\"螞蟻分工\",\"zh_HK\":\"螞蟻分工\",\"ja_JP\":\"アリの分業\",\"en_US\":\"Ant division of labor\"}"}}| 应用类型 | 是否支持 | 权限 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 支持 | chat相关接口的管理权限 | API Explorer |
| 第三方企业应用 | 支持 | chat相关接口的管理权限 | API Explorer |
| 第三方个人应用 | 暂不支持 | chat相关接口的管理权限 | 暂不支持 |
| HttpCode | 错误码 | 错误信息 | 说明 |
|---|---|---|---|
| 400 | param.empty | 入参为空 | 入参为空 |
| 400 | callbackUrl.empty | 回调地址为空 | 回调地址为空 |
| 400 | param.invalid | 无效参数 | 无效参数 |
| 400 | permission.checkFailed | 发送动态卡片权限校验失败 | 发送动态卡片权限校验失败 |
| 400 | queryChatbot.wrong | 查询机器人失败 | 查询机器人失败 |
| 400 | cardInstance.wrong | 创建卡片实例失败,先检查卡片模板是否已发布 | 创建卡片实例失败,先检查卡片模板是否已发布 |
| 400 | cidParse.wrong | 单聊会话ID解码失败 | 单聊会话ID解码失败 |
| 400 | card.templateEmpty | 卡片模板ID为空 | 卡片模板ID为空 |
| 400 | userInfo.convertError | 消息接收者UID解码错误 | 消息接收者UID解码错误 |
| 400 | card.outTraceIdError | 卡片业务标识信息格式非法 | 卡片业务标识信息格式非法 |
| 400 | card.outTraceIdEmpty | 业务标识outTrackId为空 | 业务标识outTrackId为空 |
| 400 | chatbot.notFound | 机器人不存在 | 机器人不存在 |
| 400 | invalidParameter.cid.empty | 单聊会话id为空 | 单聊会话id为空 |
| 400 | sendCardMessageFailed | 发送卡片失败 | 发送卡片失败 |
| 400 | duplicateKey | 卡片模板占位符有重复Key | 卡片模板占位符有重复Key |
| 400 | getPictureFailed | 获取图片url失败 | 获取图片url失败 |
| 400 | org.notOwn.group | 单聊会话不属于当前企业 | 单聊会话不属于当前企业 |
| 400 | send.oa.timeout | 发工作通知超时,请稍后重试 | 发工作通知超时,请稍后重试 |
| 400 | outTrackId.exceed.limit | outTrackId长度超限 | outTrackId长度超限 |
| 500 | systemBusy | 系统繁忙 | 系统异常错误 |
| 500 | systemError | 系统错误 | 系统错误 |
curl --location --request POST 'https://api.dingtalk.com/v1.0/im/privateChat/interactiveCards/send' \
--header 'x-acs-dingtalk-access-token;' \
--header 'Content-Type: application/json' \
--data-raw 'POST /v1.0/im/privateChat/interactiveCards/send HTTP/1.1
Host:api.dingtalk.com
x-acs-dingtalk-access-token:String
Content-Type:application/json
{
"cardTemplateId" : "String",
"openConversationId" : "String",
"receiverUserIdList" : [ "String" ],
"outTrackId" : "String",
"robotCode" : "String",
"callbackRouteKey" : "String",
"cardData" : {
"cardParamMap" : {
"key" : "String"
}
},
"privateData" : {
"key" : {
"cardParamMap" : {
"key" : "String"
}
}
},
"userIdType" : Integer,
"atOpenIds" : {
"key" : "String"
},
"cardOptions" : {
"supportForward" : Boolean
},
"pullStrategy" : Boolean
}'{
"success": true,
"result": {
"processQueryKey": "string"
}
}
【钉钉】API开发者 微信交流群
用微信扫右侧二维码,加入【钉钉】API开发者 交流群,互助沟通

扫码加入交流群