Training runs

Create and update training runs, record their metrics by step, and read them back as series.

GET
/v1/tasks/{slug}/train-runs

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string

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"    }  ]}
PUT
/v1/tasks/{slug}/train-runs/{key}

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

slug*string
key*string

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"}
GET
/v1/train-runs/{key}

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

key*string

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"}
POST
/v1/train-runs/{key}/metrics

Authorization

AuthorizationBearer <token>

An API key (ms_live_...), an MCP OAuth access token, or the admin token

In: header

Path Parameters

key*string

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"}