Search documents
GET
Nearest embedded chunks to a query, by cosine similarity, within one workspace.
Access: workspace_viewer · API key documents:read
api-keyheader
AuthorizationBearer <sk_waylo_<lookup><secret><checksum>>workspaceId*stringFormat
uuidquery*stringLength
length <= 1000documentIds?array<>limit?numberRange
1 <= value <= 50Default
10Success
application/json- response
[index: integer]?curl -X GET 'https://api.poc.app.waylovoice.ai/documents/search?workspaceId=497f6eca-6276-4993-bfeb-53cbbbba6f08&query=string' \ -H 'Authorization: Bearer sk_waylo_...'Example Response
[ { "documentId": "4704590c-004e-410d-adf7-acb7ca0a7052", "name": "string", "filename": "string", "chunkIndex": 0, "content": "string", "score": 0 }]List documents GET
Documents in one workspace, offset-paginated, most recently updated first. **Access:** workspace_viewer · API key `documents:read`
Update a document PATCH
Change the document’s name, description or active flag. The file itself is immutable. **Access:** workspace_admin · API key `documents:write`