Workflow API in python
# support
a
the vapi sdk does not match the docs for the workflow interfaces
v
You are correct—the Vapi Python SDK does not currently match the latest workflow API as described in the docs. As a workaround, you can use Python's
requests
library to interact with the workflow endpoints directly. Here’s a minimal example for creating a workflow:
Copy code
python
import requests

url = "https://api.vapi.ai/workflow"
headers = {
    "Authorization": "Bearer YOUR_VAPI_API_KEY",
    "Content-Type": "application/json"
}
data = {
    "name": "My Workflow",
    "nodes": [{"type": "start", "name": "Start"}],
    "edges": []
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
Replace
YOUR_VAPI_API_KEY
with your actual API key. This approach lets you use all workflow features even if the SDK is not up to date. Sources: - [Vapi Workflows API Reference](https://docs.vapi.ai/api-reference/workflow/workflow-controller-create) - [Vapi Workflows Quickstart](https://docs.vapi.ai/workflows/quickstart)
v
Hey Alex! can you please explain what do you mean by VAPI SDK does not match the docs for workflow interfaces. I want to know what exactly you are trying to get done with VAPI SDK? What's not matching for you?
a
I was just trying to follow the tutorial for the python sdk
v
Hey Alex, thanks for sharing the info let me work on it.
2 Views