import requests import time BASE_URL = "http://localhost:3015" API_KEY = "jleu1212" headers = {"X-API-Key": API_KEY, "Content-Type": "application/json"} payload = { "page": 1, "page_size": 50, "status_filter": None, "sort_field": "updated_at", "sort_direction": "desc" } start = time.time() try: resp = requests.post(f"{BASE_URL}/documents/paginated", headers=headers, json=payload, timeout=120) elapsed = time.time() - start print(f"Response time: {elapsed:.2f}s") print(f"Status: {resp.status_code}") if resp.status_code == 200: data = resp.json() print(f"Total documents: {data.get('pagination', {}).get('total_count', 0)}") else: print(f"Response: {resp.text[:200]}") except Exception as e: print(f"Error: {e}")