Live training state for an agent: whether a run is active, its phase, and page progress. Poll this after adding sources or triggering a retrain. Requires the read:sources permission.
Authorization
BearerAuth read:sourcesAuthorizationBearer <token>
In: header
Scope: read:sources
Path Parameters
id*string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/agents/string/training-status"{
"agentStatus": "training",
"training": true,
"run": {
"id": "a1b2c3d4e5-retrain-1754300000000",
"phase": "crawling",
"pagesCompleted": 12,
"pagesTotal": 48,
"pagesFailed": 0,
"startedAt": "2026-08-04T10:00:00.000Z",
"error": null
}
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}Delete a training source DELETE
Remove a source and everything indexed from it. This cannot be undone. Requires the `write:sources` permission.
Retrain an agent POST
Queue a background refresh of the agent's knowledge: known pages are re-read and new site pages are discovered. Poll `GET /agents/{id}/training-status` for progress. Requires the `write:sources` permission.