x-workspace-id when an API key has access to several workspaces. Without it, YALG uses the owner’s default workspace.
Create a note
Upload voice or import a spreadsheet
POST /v1/knowledge-sources/audioaccepts multipart form data with anaudiofile.POST /v1/knowledge-sources/imports/spreadsheetaccepts an XLSX or XLS file in thefilefield.
Upload PDF, PPTX, or TXT files
File uploads use direct, private upload sessions:- Compute the file’s SHA-256 digest.
- Call
POST /v1/knowledge-sources/upload-sessionswith one to 20 file descriptors. - Upload every file with
PUTto its returneduploadUrl, including the returnedrequiredHeaders. - Call
POST /v1/knowledge-sources/upload-sessions/{sessionId}/finalizewith eachsourceIdand digest.
List and inspect sources
Generate with pinned or excluded sources
Normal generation endpoints acceptpinnedSourceIds and excludedSourceIds. A pinned source is guaranteed to participate in retrieval; an excluded source cannot participate.
knowledgeTrace and is never inserted automatically into published content.
Reindex or delete
POST /v1/knowledge-sources/{id}/reindexcreates a fresh index revision.DELETE /v1/knowledge-sources/{id}immediately hides the source and starts asynchronous private-file and vector cleanup.
Direct IDs, searches, downloads, generation pins, and deletes are always
restricted to the active workspace.