It's possible to call the API locally:
const response = await fetch("http://localhost:8000/api/jobs/run", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
workflow_id: workflowId,
params: params,
}),
});
const outputs = await response.json();
See here for more details: https://github.com/nodetool-ai/nodetoolWe'll be launching a cloud version soon that let's you deploy your workflow in the cloud with easy API access.