SnozeDevelopers
API referenceRag

List the retrieval sources a chat can draw on

Returns every indexed source in the workspace with its label and chunk count, each flagged with whether this chat currently has it selected. Requires a workspace member with the `ai:read` permission; a chat that does not exist in this workspace is reported as not found.

GET
/v1/workspaces/{workspaceId}/rag/chats/{chatId}/sources
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
chatId*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspaces/string/rag/chats/string/sources"
{  "data": [    {      "sourceKind": "page",      "sourceId": "string",      "sourceLabel": "string",      "chunkCount": 0,      "selected": true    }  ]}