POST https://qw-openapi-tx.dustess.com/ai/v1/agent/AICallback?accessToken=
Content-Type: application/json| 请求参数名 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| callbackKey | string | 回调key | true |
| businessData | string | 业务数据,JSON字符串格式 | false |
回调key说明: key格式: ai_callback_<uuid>,如ai_callback_82b0c5de-e942-11f0-96eb-52cb3153882a
businessData说明: 传入的JSON字符串会原样传递给AI
json - Request-Example:{
"callbackKey": "ai_callback_82b0c5de-e942-11f0-96eb-52cb3153882a",
"businessData": "{\"quote_id\":\"123456\",\"price\":\"1000.00\",\"product_name\":\"测试产品\",\"valid_until\":\"2026-01-10\"}"
}| 响应参数名 | 类型 | 说明 |
|---|---|---|
| code | int32 | 响应码,0=成功 |
| msg | string | 消息提示 |
| success | bool | 是否成功请求 |
| traceId | string | 请求链路id |
{
"code": 0,
"msg": "success",
"success": true,
"data": {},
"traceId": "1601ca8f-1ee0-9725-81ba-d49016bc1a34"
}| 错误码 | 说明 |
|---|---|
| 4001 | 回调key不存在 |
| 4002 | 回调key已过期 |
| 4003 | 回调key已使用(针对一次性key) |
| 5000 | 内部服务错误 |
{
"code": 4001,
"msg": "callback key not found",
"success": false,
"data": {},
"traceId": "88146ad5-ac5f-9758-9ebb-0f13eb8ae973"
}