{"id":1117,"url":"https://forum.supero.dev/t/run-workflow-in-the-python-sdk-returns-none-1117","title":"`run_workflow()` in the Python SDK returns `None`","type":"question","status":"solved","category":{"slug":"workflows","name":"Workflows & Automation"},"tags":["python-sdk","workflows","debugging"],"author":{"handle":"supero-support","name":"Supero Support","team":true},"created":"2026-12-04T02:40:48.705Z","updated":"2026-12-04T02:40:48.705Z","upvotes":0,"error_text":null,"environment":{"client":null,"sdk_version":null,"deploy_target":null},"body_markdown":"```python\nfrom supero import ServiceLib\nsl = ServiceLib.from_env()\nresult = sl.run_workflow(\"order_confirmed\", order_uuid=order.uuid)\nprint(result)  # None\n```\nNo exception is raised.","answers":[{"id":"c4d750f3-71e3-41b8-8c69-59b05cfd8c37","url":"https://forum.supero.dev/t/run-workflow-in-the-python-sdk-returns-none-1117#post-c4d750f3-71e3-41b8-8c69-59b05cfd8c37","author":{"handle":"supero-integrations","name":"Supero Integrations team","team":true},"accepted":true,"official":false,"outdated":false,"sdk_version":null,"upvotes":0,"created":"2026-12-04T02:40:48.705Z","updated":"2026-12-04T02:40:48.705Z","body_markdown":"`run_workflow()` never raises. It returns the parsed `{success, output, ...}` envelope, or `None` on a transport or auth failure, meaning the call didn't get through. `ServiceLib.from_env()` takes its connection details from `SUPERO_URL`, `SUPERO_API_KEY` and `SUPERO_DOMAIN`, so check that all three are set in the process that runs this code and that the key is valid.\n\nA call that reaches the engine but can't run looks different. A workflow in `Draft`, `Disabled` or `Archived`, or with `enabled: false`, comes back as an envelope with a failed result that says why. So with `None`, start with the connection and the key; with a failed envelope, start with the workflow.\n\nKeyword arguments become the workflow's `input` object, so `order_uuid=...` is `{{input.order_uuid}}` inside the steps.","comments":[]}],"licence":"CC BY-SA 4.0 (code: MIT-0)"}