chatformdocs
API referenceV1

List a form's knowledge sources

GET
/v1/forms/{id}/knowledge

Authorization

AuthorizationBearer <token>

A server-side secret key. Never send one from a browser — a request carrying an Origin header is refused for this reason.

In: header

Path Parameters

id*string

Response Body

application/json

curl -X GET "https://example.com/v1/forms/string/knowledge"
{  "sources": [    {      "id": "string",      "kind": "string",      "title": "string",      "origin": "string",      "status": "string",      "error": "string",      "bytes": 0,      "chunkCount": 0,      "createdAt": 0,      "indexedAt": 0    }  ],  "usage": {    "bytes": 0,    "maxBytes": 0,    "count": 0,    "maxCount": 0  },  "enabled": true}