Retrieve folder details with all contained folders and automations. ## Path Parameters **`folder_id`** string required Folder ID (sfold_ prefixed) ## Returns Returns the folder object with `child_folders`, `automations`, `folder_count`, and `automation_count` fields. Request ```bash cURL curl -X GET "https://api.aitronos.com/api/v1/streamline/folders/sfold_abc123/contents" \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python Python import os import requests api_key = os.environ["FREDDY_API_KEY"] folder_id = "sfold_abc123" response = requests.get( f"https://api.aitronos.com/api/v1/streamline/folders/{folder_id}/contents", headers={"X-API-Key": api_key} ) contents = response.json() print(f"Folder contains {contents['folder_count']} folders and {contents['automation_count']} automations") ``` ```javascript JavaScript const apiKey = process.env.FREDDY_API_KEY; const folderId = "sfold_abc123"; const response = await fetch( `https://api.aitronos.com/api/v1/streamline/folders/${folderId}/contents`, { headers: { "X-API-Key": apiKey } } ); const contents = await response.json(); console.log(`Folder contains ${contents.folder_count} folders and ${contents.automation_count} automations`); ``` Response ```json 200 OK { "id": "sfold_abc123", "organization_id": "org_xyz789", "created_by_user_id": "usr_def456", "parent_folder_id": null, "name": "Production Automations", "description": "All production-ready workflows", "display_order": 1, "is_deleted": false, "created_at": "2025-11-28T10:30:00Z", "updated_at": "2025-11-28T10:30:00Z", "deleted_at": null, "child_folders": [ { "id": "sfold_ghi789", "organization_id": "org_xyz789", "created_by_user_id": "usr_def456", "parent_folder_id": "sfold_abc123", "name": "API Integrations", "description": null, "display_order": 0, "is_deleted": false, "created_at": "2025-11-28T11:00:00Z", "updated_at": "2025-11-28T11:00:00Z", "deleted_at": null } ], "automations": [ { "id": "sauto_jkl012", "name": "Customer Onboarding", "folder_id": "sfold_abc123", "display_order": 0, "git_sync_status": "healthy", "created_at": "2025-11-28T09:00:00Z", "updated_at": "2025-11-28T12:00:00Z" } ], "folder_count": 1, "automation_count": 1 } ``` ```json 404 Not Found { "success": false, "error": { "code": "FOLDER_NOT_FOUND", "message": "Folder not found", "status": 404 } } ```