| 应用类型 | 是否支持调用 | 权限申请方式 | API Explorer调试 |
|---|---|---|---|
| 企业内部应用 | 是 | 无需申请 | 调试 |
| 第三方企业应用 | 是 | 无需申请 | 调试 |
| 第三方个人应用 | 否 | — | — |
{
"msg": {
"voice": {
"duration": "100",
"media_id": "100"
},
"image": {
"media_id": "@123"
},
"oa": {
"head": {
"bgcolor": "bgcolor",
"text": "text"
},
"pc_message_url": "pc_message_url",
"status_bar": {
"status_value": "进行中",
"status_bg": "0xFFF65E5E"
},
"body": {
"file_count": "file_count",
"image": "image",
"form": {
"value": "value",
"key": "key"
},
"author": "author",
"rich": {
"unit": "unit",
"num": "num"
},
"title": "title",
"content": "content"
},
"message_url": "message_url"
},
"file": {
"media_id": "media_id"
},
"action_card": {
"btn_json_list": {
"action_url": "action_url",
"title": "title"
},
"single_url": "single_url",
"btn_orientation": "btn_orientation",
"single_title": "single_title",
"markdown": "markdown",
"title": "title"
},
"link": {
"picUrl": "picUrl",
"messageUrl": "messageUrl",
"text": "text",
"title": "title"
},
"markdown": {
"text": "text",
"title": "title"
},
"text": {
"content": "123"
},
"msgtype": "text"
},
"to_all_user": "false",
"agent_id": "123",
"dept_id_list": "123,456",
"userid_list": "123,456"
}curl --location --request POST 'http://127.0.0.1/topapi/message/corpconversation/asyncsend_v2?access_token=6d1bxxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"msg": {
"voice": {
"duration": "100",
"media_id": "100"
},
"image": {
"media_id": "@123"
},
"oa": {
"head": {
"bgcolor": "bgcolor",
"text": "text"
},
"pc_message_url": "pc_message_url",
"status_bar": {
"status_value": "进行中",
"status_bg": "0xFFF65E5E"
},
"body": {
"file_count": "file_count",
"image": "image",
"form": {
"value": "value",
"key": "key"
},
"author": "author",
"rich": {
"unit": "unit",
"num": "num"
},
"title": "title",
"content": "content"
},
"message_url": "message_url"
},
"file": {
"media_id": "media_id"
},
"action_card": {
"btn_json_list": {
"action_url": "action_url",
"title": "title"
},
"single_url": "single_url",
"btn_orientation": "btn_orientation",
"single_title": "single_title",
"markdown": "markdown",
"title": "title"
},
"link": {
"picUrl": "picUrl",
"messageUrl": "messageUrl",
"text": "text",
"title": "title"
},
"markdown": {
"text": "text",
"title": "title"
},
"text": {
"content": "123"
},
"msgtype": "text"
},
"to_all_user": "false",
"agent_id": "123",
"dept_id_list": "123,456",
"userid_list": "123,456"
}'{
"request_id": "string",
"errmsg": "string",
"errcode": 0,
"task_id": 0
}