Ir al contenido

Esquema de un workflow

GET/v1/teams/:teamId/workflows/:workflowId/schema

Gratis · sin scope

Los workflows se crean en el panel de Pictulab. Este endpoint devuelve las entradas que necesita uno para ejecutarlo por API.

Parámetro de ruta Descripción
teamId ID del equipo de la API key.
workflowId ID del workflow.
curl https://api.beta.pictulab.com/v1/teams/$TEAM_ID/workflows/$WORKFLOW_ID/schema \
-H "Authorization: Bearer $PICTULAB_API_KEY"
{
"workflow_id": "3b9f0c1e-…",
"name": "Fichas de producto",
"description": "…",
"required_inputs": [
{ "key": "image_n1", "type": "image", "label": "Foto del producto", "node_id": "n1", "source": "reference_image" },
{ "key": "nombre_producto", "type": "string", "label": "nombre_producto", "node_id": "n2", "source": "variable" }
],
"optional_inputs": [
{ "key": "estilo", "type": "string", "label": "estilo", "default": "minimalista", "source": "variable" }
],
"outputs": 3,
"is_active": true
}
key type Origen
prompt_<nodeId> string Nodo de prompt sin texto.
image_<nodeId> image Nodo de imagen de referencia. Obligatorio si el nodo no tiene imagen.
<nombre> string Variable {{nombre}} usada en algún texto del workflow.

outputs es el número de salidas del workflow.