Run Recipe via REST API
This provides instructions on how to execute Omnitool recipes through the REST API, enabling seamless integration into your system.
Last updated
Was this helpful?
Was this helpful?
/generateJwtToken exec Workflow 3600000POST http://127.0.0.1:1688/api/v1/workflow/execAuthorization: Bearer <token>curl -X POST http://127.0.0.1:1688/api/v1/workflow/exec -H "Authorization: Bearer <token>"{ "workflow": "<recipe_id>", "args": {} }{
"workflow": "<recipe_id>",
"args": {
"text": "Example text",
"images": "http://example.com/image.png"
}
}
{ "result": { "status": "JOB_STARTED", "jobId": "bd999ed9-f2af-49cf-b8e1-fd9c3d2a5425", "sender": "omni" } }curl -X GET http://127.0.0.1:1688/api/v1/workflow/results?jobId=<job_id> -H "Authorization: Bearer <token>"