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.
Authorization
apiKey Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/workspaces/string/rag/models"{ "data": [ { "id": "string", "slug": "string", "label": "string", "dimension": 0, "isDefault": true, "createdAt": null } ]}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}{ "_tag": "ApiNotFound", "error": "not_found", "message": "That item does not exist, or this key cannot see it.", "status": 404}Ingest a source document into the retrieval index
Chunks and embeds the supplied text, replacing any chunks previously indexed for the same `sourceKind` and `sourceId`, and returns the chunk count and the embedding model used. Requires a workspace member with the `ai:write` permission. Embedding spend is metered against the workspace AI allowance, but metering is deliberately fail-open and never blocks the ingest.
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.