获取工单消息详情
GET
https://open.feishu.cn/open-apis/helpdesk/v1/tickets/{ticket_id}/messages
错误码
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 | 检查是否申请正确权限 |
500 | 155000 | Internal error | 内部错误,请联系我们 |
401 | 154001 | Unauthorized, please check you have the correct access | 检查Authorization 和 X-Lark-Helpdesk-Authorization 是否正确,应用和服务台属于同一租户 |
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.feishu.cn/open-apis/helpdesk/v1/tickets//messages?time_start=&time_end=&page=&page_size=' \
--header 'Authorization;'
响应示例响应示例
{
"code": 0,
"msg": "success",
"data": {
"messages": [
{
"id": "6948728206392295444",
"message_id": "6949088236610273307",
"message_type": "text",
"created_at": "1617960686000",
"content": "content",
"user_name": "李宁",
"avatar_url": "https://internal-api-lark-file.feishu-boe.cn/static-resource/v1/3e73cdce-54b0-4c6a-8226-b131fb2825dj~?image_size=72x72&cut_type=&quality=&format=image&sticker_format=.webp",
"user_id": "ou_37019b7c830210acd88fdce886e25c71"
}
],
"total": 100
}
}
请求参数
Path 参数
ticket_id
string
必需
Query 参数
time_start
integer
可选
time_end
integer
可选
page
integer
可选
page_size
integer
可选
Header 参数
Authorization
string
必需
默认值:
Bearer {{access_token}}
Content-Type
string
必需
默认值:
application/json; charset=utf-8
返回响应
修改于 2023-02-02 06:48:59