api.sparrowx.netIsolated Service Documentation
SparrowX API Gateway Documentation
Authenticated Private REST API, PostgREST Filtering & Unified Google SSO
1. Authentication & Personal API Keys
For security, SparrowX never exposes database schemas or endpoints anonymously. Sign in with Google at https://api.sparrowx.net to generate your personal `spx_` API key.
Authenticated Request
curl -s "https://api.sparrowx.net/rest/v1/protected_services?select=id,name,endpoint" \
-H "apikey: spx_live_your_key" \
-H "Authorization: Bearer spx_live_your_key"2. Client VPS Protection API
Programmatically generate bound client VPS protection installers and collect 60-second health heartbeats.
Generate Protection Bundle
curl -X POST "https://sparrowx.net/api/client-protect/generate" \
-H "Content-Type: application/json" \
-H "X-SparrowX-Admin-Key: $SPARROWX_ADMIN_API_KEY" \
-d '{"username":"acme_prod","email":"ops@acme.io","ports":"80,443","format":"script"}' \
-o sparrowx-protect-acme.sh