Chatspark
K

API Reference

v1
K

List Training Sources

List all training data sources (text, page, or website) associated with an agent. Includes status and metadata. Requires Enterprise plan.

GET

/api/v1/agents/{id}/training

Enterprise

Parameters

NameTypeRequiredDescription
idstringRequired

Agent ID (Path)

Response Schema

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

Code Examples

curl -X GET "https://chatspark.io/api/v1/agents/ag_123/training" \
  -H "Authorization: Bearer cs_live_..."

Previous

Get Analytics

Next

Add Source