根据 ID 获取 Forward Schedule。
请求头
|
Header |
是否必填 |
说明 |
|
Authorization |
是 |
|
路径参数
|
参数 |
类型 |
是否必填 |
说明 |
|
|
string |
是 |
Forward Schedule ID。 |
示例请求
curl -s -X GET 'https://api.qoder.com.cn/api/v1/forward/schedules/sched_019f00112233445566778899aabbccdd' \
-H "Authorization: Bearer $QODER_PAT"
示例响应
HTTP 200 OK
{
"id": "sched_019f00112233445566778899aabbccdd",
"identity_id": "idn_019eabc123",
"template_id": "tmpl_support",
"name": "Daily tech brief",
"description": "Generate a daily technology news summary",
"status": "active",
"initial_events": [
{
"type": "user.message",
"content": "Summarize current technology news in five bullet points."
}
],
"execution": {
"session_mode": "new_session",
"max_concurrent_runs": 1,
"max_attempts": 1,
"timeout_ms": 300000
},
"trigger_policy": {
"type": "cron",
"expression": "0 9 * * *",
"timezone": "Asia/Shanghai",
"upcoming_runs_at": [
"2026-06-23T01:00:00Z"
]
},
"environment_id": "env_019e64e01a137caf953ac2ac7b42ec5c",
"sinks": [],
"metadata": {},
"created_at": "2026-06-22T10:00:00Z",
"updated_at": "2026-06-22T10:00:00Z"
}
响应字段
|
字段 |
类型 |
说明 |
|
返回值 |
object |
完整 Schedule 对象。 |
错误
|
HTTP |
Type |
Code |
触发条件 |
|
404 |
|
|
Schedule 不存在或当前调用方不可见。 |
|
401 |
|
|
PAT 无效或已过期。 |
备注
-
status只表达active或paused;归档状态通过archived_at表达。 -
Schedule 对象不暴露 Vault、Memory Store、原始环境变量等运行时私有字段。