# ai_mentor_orgs_users_downloads_tasks_retrieve Retrieves the chat history for a user if the export task is ready. This Endpoint to download user chathistory. Accessible to tenant admins and students. Returns: 200: When task is not ready. 200: chat history object 400: When data is not valid. Endpoint: GET /api/ai-mentor/orgs/{org}/users/{user_id}/downloads/tasks/{task_id}/ Version: 3.59.0-ai-plus Security: PlatformApiKeyAuthentication ## Path parameters: - `org` (string, required) - `task_id` (string, required) - `user_id` (string, required) ## Query parameters: - `to_csv` (boolean) Choose download in csv or not ## Response 200 fields (application/json): - `type` (string, required) - `content` (string, required) - `timestamp` (string, required)