Template names give builds stable refs that are easier to use than generated
template IDs.
claim = Template.reserve_name("team/agent-template")
print(claim.claim_token)
namespace = Template.get_namespace("team")
print(namespace.slug)
Template.rename("team/agent-template", "agent-template-renamed")
Template.release_name_claim(claim.claim_token)
The TypeScript SDK exposes client.templates.list(), .get(ref), and
.delete(ref); name reservation, namespaces, renaming, and field selection
are available in the Python SDK, CLI, or HTTP API.
Template refs can be IDs, canonical refs, or aliases depending on the
operation. Prefer canonical refs in automation when you need stable ownership
and namespace behavior.
Use field selection for compact index responses:
templates = Template.list(fields=["id", "canonical_ref", "visibility"])
info = Template.get("team/agent-template", fields=["id", "canonical_ref"])