Training runs
Create and update training runs, record their metrics by step, and read them back as series.
An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Response Body
application/json
curl -X GET "https://example.com/v1/tasks/string/train-runs"{ "runs": [ { "key": "string", "taskSlug": "string", "base": "string", "method": "string", "status": "running", "manifest": null, "attestation": null, "finalMetrics": { "property1": 0, "property2": 0 }, "startedAt": "string", "finishedAt": "string" } ]}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/tasks/string/train-runs/string" \ -H "Content-Type: application/json" \ -d '{ "base": "string", "method": "string", "status": "running" }'{ "run": { "key": "string", "taskSlug": "string", "base": "string", "method": "string", "status": "running", "manifest": null, "attestation": null, "finalMetrics": { "property1": 0, "property2": 0 }, "startedAt": "string", "finishedAt": "string" }}{ "error": "string", "issues": [ { "message": "string", "path": [ "string" ] } ]}{ "error": "unauthorized"}{ "error": "forbidden"}{ "error": "not_found"}{ "error": "conflict"}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/train-runs/string"{ "run": { "key": "string", "taskSlug": "string", "base": "string", "method": "string", "status": "running", "manifest": null, "attestation": null, "finalMetrics": { "property1": 0, "property2": 0 }, "startedAt": "string", "finishedAt": "string" }, "series": { "property1": [ { "step": 0, "epoch": 0, "value": 0 } ], "property2": [ { "step": 0, "epoch": 0, "value": 0 } ] }}{ "error": "string", "issues": [ { "message": "string", "path": [ "string" ] } ]}{ "error": "not_found"}An API key (ms_live_...), an MCP OAuth access token, or the admin token
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/train-runs/string/metrics" \ -H "Content-Type: application/json" \ -d '{ "metrics": [ { "step": 0, "name": "string", "value": 0 } ] }'{ "accepted": 0}{ "error": "string", "issues": [ { "message": "string", "path": [ "string" ] } ]}{ "error": "unauthorized"}{ "error": "forbidden"}{ "error": "not_found"}