curl -X POST "https://api.myweave.ai/functions/v1/knowledge-handler?assistantId=asst_abc123&coachId=coach_xyz789" \ -H "X-API-Key: your-api-key-here" \ -F "files=@leadership_guide.pdf" \ -F "files=@strategy_document.docx"
{ "uploadedFiles": [ { "fileId": "file_abc123", "filename": "leadership_guide.pdf", "size": 1048576, "contentType": "application/pdf", "uploadedAt": "2024-01-15T10:30:00Z", "category": "documents" } ], "failedFiles": [], "totalUploaded": 1, "totalFailed": 0 }
Upload, search, and manage persona knowledge base files
documents
images
videos
curl -X GET "https://api.myweave.ai/functions/v1/knowledge-handler?assistantId=asst_abc123&coachId=coach_xyz789&search=leadership&category=documents&limit=20" \ -H "X-API-Key: your-api-key-here"
curl -X DELETE "https://api.myweave.ai/functions/v1/knowledge-handler/file_abc123?assistantId=asst_abc123&coachId=coach_xyz789" \ -H "X-API-Key: your-api-key-here"
{ "message": "File deleted successfully", "fileId": "file_abc123" }
Was this page helpful?