HTTP状态码 | 错误码 | 描述 | 排查建议 |
---|---|---|---|
400 | 154000 | Bad request, please check your request body | 请求不合法,请检查参数 |
401 | 154001 | Unauthorized, please check you have the correct access | 检查Authorization 和 X-Lark-Helpdesk-Authorization 是否正确,应用和服务台属于同一租户 |
403 | 154003 | Please check you have the correct access | 检查是否申请正确权限 |
404 | 154004 | Resource not found | 资源不存在,请检查ID值 |
405 | 154005 | Method Forbidden | 检查是否有权限创建推送 |
500 | 155000 | Internal error | 内部错误,请联系我们 |
curl --location --request POST 'https://open.feishu.cn/open-apis/helpdesk/v1/message?user_id_type=open_id' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"msg_type": "post",
"content": "{\"post\":{\"zh_cn\":{\"title\":\"some title\",\"content\":[[{\"tag\":\"text\",\"text\":\"some content\"}]]}}}",
"receiver_id": "ou_7346484524",
"receive_type": "chat"
}'
{
"code": 0,
"msg": "success",
"data": {
"message_id": "om_7054301238434"
}
}