cURL
curl --request POST \ --url https://api.trillet.ai/v1/api/call-flows/{id}/knowledge-base \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --header 'x-workspace-id: <x-workspace-id>' \ --data '{}'
{ "_id": "flowId", "workspaceId": "workspaceIdExample", "settings": { "knowledgeBaseFiles": [ { "filename": "exampleFile.pdf", "key": "s3FileKey", "url": "https://example.com/file.pdf" } ] } }
Upload a knowledge base file to a specific call flow.