メインコンテンツへスキップ
POST
/
workflows
/
run
A valid request URL is required to generate request examples
{
  "workflow_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "running",
    "created_at": 123,
    "finished_at": 123,
    "outputs": {},
    "error": "<string>",
    "elapsed_time": 123,
    "total_tokens": 123,
    "total_steps": 0
  }
}

承認

Authorization
string
header
必須

APIキー認証。

ボディ

application/json
inputs
object
必須

ワークフロー変数のキー/値ペア。ファイル配列タイプの変数の値はInputFileObjectWorkflowのリストである必要があります。

:
{
"user_query": "Translate this for me.",
"target_language": "French"
}
response_mode
enum<string>
必須

レスポンスモード。blockingの場合、Cloudflareのタイムアウトは100秒です。

利用可能なオプション:
streaming,
blocking
user
string
必須

ユーザー識別子。

レスポンス

ワークフロー実行が成功しました。構造はresponse_modeによって異なります。

  • blocking: WorkflowCompletionResponseを含むapplication/json
  • streaming: ChunkWorkflowEventストリームを含むtext/event-stream

blockingモードのワークフロー実行に対するレスポンス。

workflow_run_id
string<uuid>
task_id
string<uuid>
data
object