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.
apiKeyAuthorizationBearer <snoze_sk_…>Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
workspaceId*stringchatId*stringSuccess
application/json- response
data*array<>curl -X GET 'https://api.snoze.dev/v1/workspaces/string/rag/chats/string/sources'{ "data": [ { "sourceKind": "page", "sourceId": "string", "sourceLabel": "string", "chunkCount": 0, "selected": true } ]}List the embedding models registered for a workspace
Returns the embedding models this workspace has content indexed under, so a caller can tell which chunks live in comparable vector spaces. Requires a workspace member with the `ai:read` permission.
Replace the retrieval sources selected for a chat
Overwrites the chat's entire selection set with the sources in the body and returns what was stored; an empty list means retrieval falls back to the whole workspace. Requires a workspace member with the `ai:write` permission, and an unknown chat is reported as not found. Naturally idempotent: sending the same set again leaves the selection unchanged.