Publishing, versions and rollback
Why editing an agent is safe in the middle of the afternoon.
Updated
Editing an agent never changes a call that is already happening, and it never
changes what the next caller hears until you say so. A live call runs against an
AgentVersion, which is an immutable snapshot. It does not run
against the agent row.
What a version contains
Everything the runtime needs, frozen at the moment you pressed publish: the prompt, the tone hint, the first and returning messages, the transfer destination, the voice, the model and its temperature, the transcriber, the turn-taking thresholds, the ambience, the duration and recording limits, every enabled tool, and every enabled knowledge source.
Versions are numbered from 1 and never edited. A change is a new version.
Reading versions
cURL
curl https://api.voxcore.net/api/v1/orgs/<org_id>/agents/<agent_id>/versions/ \
-H "Authorization: Bearer vox_sk_live_..."Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
versions = httpx.get(
f"{BASE}/api/v1/orgs/{ORG}/agents/{agent_id}/versions/",
headers=AUTH,
).json()["data"]Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
# This one hands back the {"data": [...]} envelope as it arrives.
for version in vox.agents.versions(agent_id)["data"]:
print(version["number"], version["is_live"], version["notes"])You get the newest fifty as {"data": [...]}. Each row carries
number, notes, published_by_name and
is_live.
Rolling back
cURL
curl -X POST \
https://api.voxcore.net/api/v1/orgs/<org_id>/agents/<agent_id>/versions/<version_id>/rollback/ \
-H "Authorization: Bearer vox_sk_live_..."Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
httpx.post(
f"{BASE}/api/v1/orgs/{ORG}/agents/{agent_id}/versions/{version_id}/rollback/",
headers=AUTH,
).raise_for_status()Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
vox.request(
"POST",
f"/api/v1/orgs/{vox.org}/agents/{agent_id}/versions/{version_id}/rollback/",
)A rollback repoints live_version at an earlier snapshot. It
rebuilds nothing, and it leaves the agent's status alone. An agent
that was live stays live, now answering with the older configuration. Rollback
needs agent:publish.
Pausing
cURL
curl -X POST https://api.voxcore.net/api/v1/orgs/<org_id>/agents/<agent_id>/pause/ \
-H "Authorization: Bearer vox_sk_live_..."Python
import os, httpx
BASE, ORG = "https://api.voxcore.net", os.environ["VOXCORE_ORG"]
AUTH = {"Authorization": f"Bearer {os.environ['VOXCORE_API_KEY']}"}
state = httpx.post(
f"{BASE}/api/v1/orgs/{ORG}/agents/{agent_id}/pause/",
headers=AUTH,
).json()
print(state["status"])Python (voxcore)
from voxcore import Voxcore
vox = Voxcore()
state = vox.request("POST", f"/api/v1/orgs/{vox.org}/agents/{agent_id}/pause/")
print(state["status"])This toggles between live and paused and returns
{"status": "..."}. It takes no body, so calling it twice puts you
back where you started.
Deleting
DELETE on an agent is a soft delete. The row stays, so calls that
name it still resolve to something, and published versions stay readable.
All four of the writes on this page are dashboard-only for now. An API key
gets a 403 or a 500. The reads work fine.