获取模板运行
获取模板运行
获取模板运行:其根据各输出汇总的 status,以及每个输出完成后的状态和下载 URL。
路径参数
template_id
模板的 ID,如 ElevenLabs 应用中或通过 GET /v1/flows/templates 所示。
run_id
请求头
xi-api-key
响应
成功响应
id
运行的唯一标识符。
template_id
此次运行执行的模板,使运行多个模板的 webhook 使用方无需维护运行与模板的映射即可区分各次运行。
version_id
此次运行执行的模板版本。创建运行时即会解析,因此使用 latest 启动的运行会记录实际执行的具体版本。
status
运行状态由各输出状态汇总而成:输出开始前为 pending,任一输出未完成时为 generating,所有输出完成后为 completed,所有输出结束且至少一项失败时为 failed。completed 和 failed 为终态:运行达到其中任一状态时,将触发 flows_template_run webhook。
允许的值:
outputs
The run’s outputs, keyed by output port id. Each is a TemplateOutput discriminated on type, the type of its port’s content_schema.
错误
422
Unprocessable Entity Error