get https://api.voicecreator.ai/api/v1/knowledge-files
Get a list of knowledge files.
This endpoint retrieves all knowledge files belonging to the organization with pagination support.
Parameters:
request (Request): The FastAPI request object
skip (int): Number of records to skip for pagination
limit (int): Maximum number of records to return
db (AsyncSession): The database session
organization_id (Optional[int]): The organization ID from the API key
Returns:
List[KnowledgeFile]: List of knowledge files
Raises:
HTTPException:
- 400: If organization ID is missing
- 500: If an unexpected error occurs during retrieval