Skip to content
TriedDocs
Voice agents

Resolve agent version

Turn a version reference such as prod or latest_published into a version number.

GEThttps://api.tried.com.au/resolve-agent-version/{agent_id}

Returns the version number a reference points at, and the tag when the reference is a tag. Beyond Retell

A reference is a number, a numeric string, latest (the newest version), latest_published, or an environment tag name. A tag that points at no version resolves to the latest published version.

Request#

Path parameters#

Parameter Type Required Description
agent_id string Yes The agent.

Query parameters#

Parameter Type Required Description
ref string No The reference. Default latest.

Example request#

curl "https://api.tried.com.au/resolve-agent-version/agent_3f9a1c0b2d4e5f6a7b8c9d0e?ref=prod" \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/resolve-agent-version/agent_3f9a1c0b2d4e5f6a7b8c9d0e?ref=prod", {
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const data = await res.json();
import os, requests

res = requests.get(
    "https://api.tried.com.au/resolve-agent-version/agent_3f9a1c0b2d4e5f6a7b8c9d0e?ref=prod",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
data = res.json()

Response#

200 OK

{
  "version": 1,
  "tag": {
    "tag_id": "tag_4e5f6a7b8c9d0e1f2a3b4c5d",
    "agent_id": "agent_3f9a1c0b2d4e5f6a7b8c9d0e",
    "name": "prod",
    "version": 1,
    "dynamic_variables": { "environment": "production" },
    "last_modification_timestamp": 1792310400000
  }
}

tag is null unless ref is a tag name.

Errors#

Status When
400 Unknown reference, or the reference points at no published version.
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the agents scope.
404 The agent does not exist. Not checked when ref is a number.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.