Versioning lets you update an agent while keeping other versions unchanged for production use. It has two main purposes:Documentation Index
Fetch the complete documentation index at: https://docs.retellai.com/llms.txt
Use this file to discover all available pages before exploring further.
- Lock in configuration: published versions cannot be changed, and you can attach specific versions to phone numbers or environment tags to lock in the agent configuration.
- Version control & history: you can create multiple draft versions from any past version, track your version history, and publish any draft when it’s ready.
How version numbers work
Version numbers start at V0 and go up by one each time you create a new version. The dashboard labels tell you whether a version is live or still in progress.| UI | Meaning |
|---|---|
V0, V1, V2, … | Published versions, immutable |
V3 (draft), V4 (draft), … | Draft versions — unpublished copies that reserve the next version number. The (draft) suffix means you can still edit and publish them. |
- You publish your first agent → V0 appears under Published.
- You create a new draft from V0 → the UI shows V1 (draft) under Draft.
- You publish that draft → V1 moves to Published and is no longer editable.
- You create another draft from V1 → V2 (draft) appears under Draft.
Published versions cannot be changed. Only versions labeled with (draft) can be edited.
How to manage versions
Click the version button in the upper right corner of the agent page to open the versions panel.
- Draft: unpublished versions that can still be edited.
- Published

prod, staging) are shown inline on the version entry.
Create a new draft
Click the + button in the versions panel to create a new draft from the currently selected version. The draft will show which version it was branched from.Publish a draft
You can publish any draft version. Select the draft in the versions panel, then click the Publish button in the upper right corner.

Delete a version
To delete a draft or published version, open the versions panel, select the version, and use the delete option. Published versions with active phone numbers or environment tags attached should have those removed before deleting.Environment Tags

prod, staging) to a version to instantly load the right settings — and move the tag to a different version to deploy without manually rerouting phone numbers, dynamic variables, etc.
A version can have multiple tags attached.
How environment tags work
Each agent comes withprod and staging tags by default. You can create up to 10 tags total per agent (including the defaults).
Tags serve two purposes:
-
Labels — tags appear directly on version entries in the panel, so you can see at a glance which versions are running in which environments (e.g. which version is
prod, which isstaging). - Environment-specific config — each tag carries its own set of dynamic variable values. When a tag is active on a version, those values are automatically injected, so the same agent behaves correctly across environments without duplicating configuration.
Configure tags
Click the Environment button in the agent header to apply a tag to the current version, or select Configure Tags to manage your tags.

- Create a new tag by clicking + Add in the left sidebar and giving it a name.
- Define environment dynamic variables — key/value pairs that are injected into the agent when that tag is active. This lets the same agent behave differently across environments without duplicating configuration.
- Up to 20 characters
- May contain lowercase letters, numbers,
-, or_ - Must start with a lowercase letter
- Cannot be
latest - Cannot match the pattern
vfollowed by numbers only (e.g.v3,v12)
Applying tags to a version
To attach a tag to a version, select the version in the versions panel, then click the Environment button and choose the tag. The tag label will appear on the version entry in the panel.How to use versions and tags in the API
You can pass a version reference in API calls such asget_agent, get_retell_llm, create_web_call, and create_phone_number.
A version reference can be:
- A version number, such as
2 latest- An environment tag, such as
prodorstaging