https://retellai.com/?utm_source=discord&utm_medium=seo logo
publishing pathway via api call after pathway upda...
# ❓・ai-evy-support
r
@AI Evy publishing pathway via api call after pathway update does not implement the changes
a
Thanks for tagging me @ruta1212_29251. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, when conversation flows (pathways) don't implement changes after publishing, the most common issue is related to agent versioning. [(1) ]() When you make changes to your conversation flow and publish the agent, you must ensure you're selecting the correct version during actual calls. The sources indicate a known pattern where conversation flows work correctly in test environments but fail during production calls if the wrong version is selected. Key debugging steps: 1. Verify you've published the agent after making pathway changes 2. Confirm you're using the correct agent version in your API calls 3. Test in both test and production environments to isolate the issue 4. Review call transcripts in the history tab to see node transitions and identify where changes aren't being applied Unfortunately, the available sources don't contain specific API endpoints or code examples for publishing pathways via API. The sources primarily cover the Call API endpoints for listing and updating calls. [(2) ]() [(3) ]() Check out these potentially useful sources: [Debug guide]() , [Components]() Would you like me to provide a general answer based on my broader knowledge about API-based agent publishing? **
​ To learn more, see the sources I considered: [[1] Discord message from @manjotghatora on 2025-11-02](https://discord.com/channels/1186424376300679209/1294891368505937952/1434686066476187798) [[2] Update Call](https://docs.retellai.com/api-references/update-call) [[3] List Calls](https://docs.retellai.com/api-references/list-calls) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
r
how to take the latest version then
@AI Evy
a
Thanks for the follow-up, @ruta1212_29251. I'll get back to you soon.
### Answer When you want to use the latest version of an agent, simply omit the
version
parameter in your API calls. [(1) ]() If you don't specify a version number, the SDK will default to the latest version of the agent. For example, when creating a phone call: [(2) ]()
Copy code
javascript
const phoneCallResponse = await client.call.createPhoneCall({
  from_number: '+14157774444',
  to_number: '+12137774445',
}) ;
Or when retrieving agent information: [(1) ]()
Copy code
get_agent() // Gets the latest version of the agent.
The key point is that if the version number is not specified when using the Retell SDK, it will default to the latest version of the agent. However, if you want to ensure a phone number uses a specific version, you can attach it via the "Phone Numbers" tab in the dashboard. If you select
Draft
, it will always fetch the latest version of the agent.
​ To learn more, see the sources I considered: [[1] Setup versioning for agents](https://docs.retellai.com/agent/version) [[2] Create Phone Call](https://docs.retellai.com/api-references/create-phone-call) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.