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

Ejecutar Workflow

Ejecute un workflow de forma programática a través de la API.

Endpoint

POST /api/v1/execute

Solicitud

Headers

Header Valor
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
}
Campo Tipo Descripción
workflow_id string Obligatorio. El workflow a ejecutar
inputs object Variables de entrada para el workflow
async boolean Si es true, devuelve inmediatamente un execution_id

Respuesta

Síncrona (async: false)

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

Asíncrona (async: true)

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

Consulte /api/v1/executions/{execution_id} para verificar el estado.

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

Hola 👋

¿Cómo podemos ayudarte hoy?