Create Link
curl -X POST \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"url":"https://example.com","customAlias":"my-link"}' \
"${window.location.origin}/api/dev/shorten.php"
List URLs
curl -H "X-API-Key: YOUR_API_KEY" "${window.location.origin}/api/dev/urls.php?limit=20"
Get Analytics
curl -H "X-API-Key: YOUR_API_KEY" "${window.location.origin}/api/dev/analytics.php?shortCode=ABC123"
Delete URL
curl -X POST \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"shortCode":"ABC123"}' \
"${window.location.origin}/api/dev/delete-url.php"