Get Knowledge File

Get a specific knowledge file by ID.

Parameters:
knowledge_file_id (int): The ID of the knowledge file to retrieve
request (Request): The FastAPI request object
db (AsyncSession): The database session
organization_id (Optional[int]): The organization ID from the API key

Returns:
KnowledgeFile: The requested knowledge file

Raises:
HTTPException:
- 400: If organization ID is missing
- 404: If the knowledge file is not found or not accessible
- 500: If an unexpected error occurs during retrieval

Language
Credentials
Header
Click Try It! to start a request and see the response here!