Alex
02/10/2026, 7:45 PMAI Evy
02/10/2026, 7:45 PMAI Evy
02/10/2026, 7:45 PMDraft, it will always fetch the latest (draft) version of the agent. [(1) ]()
To ensure your production calls use a published version instead of the draft:
1. Go to the Phone Numbers tab in the dashboard.
2. Check which version is assigned to your phone number.
3. If it shows Draft, that's why your calls are using unpublished changes.
To lock in a specific published version for production, select a specific version number (e.g., version 0, 1, 2) rather than Draft for that phone number.
Published versions cannot be changed, while the draft is always editable. When you publish, it creates a new version snapshot and a fresh draft you can continue editing.AI Evy
02/10/2026, 7:45 PMAI Evy
02/10/2026, 7:45 PMAlex
02/10/2026, 7:46 PMAI Evy
02/10/2026, 7:46 PMAI Evy
02/10/2026, 7:46 PMcreate_web_call API, you can specify a version number to control which agent version is used. [(1) ]()
If you don't specify a version, the SDK defaults to the latest version of the agent.
To ensure your web calls use a specific published version instead of the draft:
- Pass the version parameter when creating the web call
- Example: get_agent(version=2) gets version 2, while get_agent() gets the latest version
So if your web calls are picking up draft changes, you're likely not specifying a version number in your create_web_call request, which means it defaults to the latest (draft) version.
To lock in a published version, explicitly pass the version number when creating the web call.AI Evy
02/10/2026, 7:46 PMAI Evy
02/10/2026, 7:46 PMAlex
02/10/2026, 7:48 PMAI Evy
02/10/2026, 7:48 PMAI Evy
02/10/2026, 7:48 PMagent_version parameter [(2) ]()
javascript
const callResponse = await client.call.createWebCall({
agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
agent_version: 5 // specify your latest published version
}) ;
This means after each publish, you'd update the version number in your code to point to the newly published version.
Unfortunately, there's no documented "latest published" option that automatically excludes draft—you either get "draft" (by not specifying) or a specific version number.AI Evy
02/10/2026, 7:48 PMAI Evy
02/10/2026, 7:48 PM