Documentation is being updated. Some sections may not reflect the latest features.

Executarea unui Workflow

Rulați un workflow programatic prin intermediul API-ului.

Endpoint

POST /api/v1/execute

Cerere

Headers

Header Valoare
Authorization Bearer YOUR_API_KEY
Content-Type application/json

Body

{
  "workflow_id": "wf_abc123",
  "inputs": {
    "prompt": "Analyze this text...",
    "user_id": "user_456"
  },
  "async": false
}
Câmp Tip Descriere
workflow_id string Obligatoriu. Workflow-ul de executat
inputs object Variabilele de intrare pentru workflow
async boolean Dacă este true, returnează imediat un execution_id

Răspuns

Sincron (async: false)

{
  "success": true,
  "execution_id": "exec_789",
  "status": "completed",
  "output": {
    "result": "Analysis complete..."
  },
  "duration_ms": 1250
}

Asincron (async: true)

{
  "success": true,
  "execution_id": "exec_789",
  "status": "running"
}

Interogați /api/v1/executions/{execution_id} pentru a verifica starea.

AI AssistantPowered by Ubex
Beta
Ask me anything about Ubex workflows, nodes, or the API.
~/

Salut 👋

Cu ce te putem ajuta astăzi?