API Reference
List all training data sources (text, page, or website) associated with an agent. Includes status and metadata. Requires Enterprise plan.
/api/v1/agents/{id}/training
Enterprise| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Agent ID (Path) |
json
{
"sources": [
{
"id": 1,
"source": "product-docs",
"type": "text" | "page" | "website",
"trainingUrl": "https://example.com/docs" | null,
"title": "Product Documentation",
"status": "completed" | "pending" | "failed",
"dataCount": 150,
"createdAt": "2026-02-24T12:00:00.000Z",
"updatedAt": "2026-02-24T12:00:00.000Z"
}
]
}curl -X GET "https://chatspark.io/api/v1/agents/ag_123/training" \
-H "Authorization: Bearer cs_live_..."