Fetchply Docs
GET
/api/v1/agents/{id}/sources/{sourceId}

Read one training source, including the stored text of a text snippet so it can be edited and sent back. content is null for url and file sources, and while a snippet is still being stored. Requires the read:sources permission.

Authorization

BearerAuth read:sources
AuthorizationBearer <token>

In: header

Scope: read:sources

Path Parameters

id*string
sourceId*integer

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/sources/1"
{
  "id": 42,
  "agentId": "a1b2c3d4e5",
  "type": "text",
  "name": "Refund policy",
  "status": "indexed",
  "sizeBytes": 1234,
  "wordCount": 200,
  "errorMessage": null,
  "createdAt": "2026-08-01T10:00:00.000Z",
  "content": "Refunds are available within 30 days of purchase..."
}
{
  "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"
    }
  ]
}