               });

                const response = await fetch(url.toString());
                const data = await response.json();

                // Show response
                responseContent.innerHTML = JSON.stringify(data, null, 2);
                responseContent.className = `response-content ${data.success ? 'success' : 'error'}`;

            } catch (error) {
                responseContent.innerHTML = `Error: ${error.message}`;
                responseContent.className = 'response-content err