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

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Path Parameters

workspaceId*string
chatId*string

Response Body

Success

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/rag/chats/string/sources'
Example Response
{  "data": [    {      "sourceKind": "page",      "sourceId": "string",      "sourceLabel": "string",      "chunkCount": 0,      "selected": true    }  ]}