获取webhook事件详情
POST
/task/openapi/getWebhookDetail
请求参数
Authorization
Header 参数
Host
string
必需
示例值:
www.runninghub.cn
Body 参数application/json
apiKey
string
可选
示例值:
{{apiKey}}
taskId
string
可选
示例值:
1904154698679771137
示例
{
"apiKey": "{{apiKey}}",
"taskId": "1904154698679771137"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.runninghub.cn/task/openapi/getWebhookDetail' \
--header 'Host: www.runninghub.cn' \
--header 'Content-Type: application/json' \
--data-raw '{
"apiKey": "请输入自己的apiKey",
"taskId": "1904154698679771137"
}'
返回响应
🟢200成功
application/json
Body
code
integer
可选
msg
string
返回信息
data
null
数据
示例
{
"code": 0,
"msg": "success",
"data": {
"id": "1904444422778503169",
"userApiKey": "******************",
"taskId": "1904444422770114561",
"webhookUrl": "https://your-webhook-url",
"eventData": "{\"code\":0,\"msg\":\"success\",\"data\":[{\"fileUrl\":\"https://rh-images.xiaoyaoyou.com/de0db6f2564c8697b07df55a77f07be9/output/ComfyUI_00059_hnona_1742889987.png\",\"fileType\":\"png\",\"taskCostTime\":78,\"nodeId\":\"9\"}]}",
"callbackStatus": "FAILED",
"callbackResponse": "I/O error on POST request for \"https://your-webhook-url\": Remote host terminated the handshake",
"retryCount": 3,
"createTime": "2025-03-25T16:05:07",
"updateTime": "2025-03-25T16:08:10"
}
}
修改于 2025-03-26 09:40:21