What Is Changing
Two related changes:
- Repositories APIs move from
/api/mlto/api/svc(same methods, query params, and bodies). - Older packages that still call
/api/mlare deprecated:truefoundry<0.17.0andtruefoundry-sdk<0.4.0.
The APIs themselves are not going away — only the old prefix and old package versions.
| Milestone | When |
|---|---|
| Deprecation announcement | 19 August 2026 |
/api/ml deprecated; APIs available under /api/svc; older packages deprecated | Control plane 0.157.x |
Older packages rejected; /api/ml removed | Control plane 0.188.x (SaaS expected around 30 November 2026) |
Self-hosted tenants are unaffected until they upgrade to 0.188.x.
Repositories API paths
These HTTP APIs are covered:
| API | Old (/api/ml) | New (/api/svc) |
|---|---|---|
| Repositories | /api/ml/v1/ml-repos/* | /api/svc/v1/ml-repos/* |
| Artifacts | /api/ml/v1/artifacts/* | /api/svc/v1/artifacts/* |
| Artifact Versions | /api/ml/v1/artifact-versions/* | /api/svc/v1/artifact-versions/* |
| Models | /api/ml/v1/models/* | /api/svc/v1/models/* |
| Model Versions | /api/ml/v1/model-versions/* | /api/svc/v1/model-versions/* |
| Agent Skills | /api/ml/v1/agent-skills/* | /api/svc/v1/agent-skills/* |
| Agent Skill Versions | /api/ml/v1/agent-skill-versions/* | /api/svc/v1/agent-skill-versions/* |
| Prompts | /api/ml/v1/prompts/* | /api/svc/v1/prompts/* |
| Prompt Versions | /api/ml/v1/prompt-versions/* | /api/svc/v1/prompt-versions/* |
| Data Directories | /api/ml/v1/data-directories/* | /api/svc/v1/data-directories/* |
Example: https://<control-plane-url>/api/ml/v1/models → https://<control-plane-url>/api/svc/v1/models
Package versions
| Package | Deprecated | Supported |
|---|---|---|
truefoundry (Python) | <0.17.0 | >=0.17.0 |
truefoundry-sdk (Python / TypeScript) | <0.4.0 | >=0.4.0 |
Supported versions already call /api/svc. On control plane 0.188.x, older truefoundry clients are rejected with:
You are using an outdated version of `truefoundry`.
Run `pip install truefoundry>=0.17.0` to install the supported version.
What You Need to Do
If you only use truefoundry or truefoundry-sdk, upgrade the package — you do not need to edit URLs by hand. If you call these APIs over HTTP yourself, change /api/ml to /api/svc.
Upgrade Python to 3.10 or later
Required for
truefoundry0.17.x. See Minimum Python version raised to 3.10.Upgrade packages
pip install --upgrade "truefoundry>=0.17.0" pip install --upgrade "truefoundry-sdk>=0.4.0" # if you use itUpdate every pin
Laptops, CI (
tfy apply/ GitHub Actions),requirements.txt/ lockfiles, and job or notebook images.
Upgrade truefoundry-sdk
npm install "truefoundry-sdk@>=0.4.0"Update every pin
Local projects, CI, and any
package.json/ lockfiles that pin an older version.
Search your code for /api/ml/ and replace the prefix with /api/svc/. Paths after the prefix, HTTP methods, and bodies stay the same.
import os
import requests
CONTROL_PLANE_URL = os.environ["TFY_HOST"] # e.g. https://your-org.truefoundry.cloud
API_KEY = os.environ["TFY_API_KEY"]
# Before (deprecated): f"{CONTROL_PLANE_URL}/api/ml/v1/ml-repos"
url = f"{CONTROL_PLANE_URL}/api/svc/v1/ml-repos"
response = requests.get(
url,
headers={"Authorization": f"Bearer {API_KEY}"},
)
response.raise_for_status()
print(response.json())
Complete the upgrade before your control plane reaches 0.188.x. After that, older packages and /api/ml calls will fail.
If you have questions or need help, reach out to [email protected].