# Complete cURL command for regenerate-webhook endpoint # Step 1: Get your authentication token (replace credentials if needed) curl -X POST "http://localhost:8000/api/login" \ -H "Content-Type: application/json" \ -d '{"email": "onur@onur.com", "password": "password123"}' # Step 2: Use the token to call regenerate-webhook (replace YOUR_TOKEN_HERE with token from Step 1) curl -X POST "http://localhost:8000/api/regenerate-webhook" \ -H "Authorization: Bearer YOUR_TOKEN_HERE" \ -H "Content-Type: application/json" \ -d '{ "topic_id": 17, "image_data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==" }' # Alternative: Test with temporary storage (topic_id = 999999) curl -X POST "http://localhost:8000/api/regenerate-webhook" \ -H "Authorization: Bearer YOUR_TOKEN_HERE" \ -H "Content-Type: application/json" \ -d '{ "topic_id": 999999, "image_data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==" }'