Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
提交人工审批结果(适用于需要审批的工作流)
POST http://localhost:8080/api/v1/approvals/decision
X-API-Key: sk_test_123456
X-API-Key
Content-Type
application/json
traceparent
workflow_id
approval_id
approved
feedback
modified_action
run_id
approved_by
{ "workflow_id": "task-123", "approval_id": "appr-456", "approved": true, "feedback": "已审核,允许执行", "modified_action": "", "run_id": "" }
{ "status": "sent", "success": true, "message": "Approval appr-456 processed successfully", "workflow_id": "task-123", "run_id": "", "approval_id": "appr-456" }
{ "error": "..." }
curl -X POST "http://localhost:8080/api/v1/approvals/decision" \ -H "X-API-Key: $API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "task-123", "approval_id": "appr-456", "approved": true, "feedback": "同意执行" }'
import httpx httpx.post( "http://localhost:8080/api/v1/approvals/decision", headers={"X-API-Key": api_key, "Content-Type": "application/json"}, json={"workflow_id": wid, "approval_id": appr, "approved": False, "feedback": "风险较高"} )
http://localhost:8081/approvals/decision
此页面对您有帮助吗?