Skip to main content

Connection Test

Test your API key and verify your connection to the Agent API. This tool calls the live API from your browser.

What This Tests

  1. API Key Validation — Calls GET /me to verify your key and show account info
  2. Rate Limits — Displays your current usage against per-minute and monthly limits
  3. Search — Runs a test search near Berlin (52.52, 13.40) to verify the search pipeline works

Troubleshooting

ResultCauseFix
API Key Invalid (401)Wrong or expired keyCheck the key, contact your account manager
API Key Invalid (403)Account suspendedContact your account manager
Search Failed (429)Rate limit exceededWait for Retry-After seconds
Network ErrorCORS or connectivity issueCheck your network, try again

Manual Test

If you prefer to test from the command line:

# Test auth
curl -s https://api.petitmonde.energy/api/v1/client/me \
-H "X-API-Key: YOUR_API_KEY" | jq .

# Test search
curl -s "https://api.petitmonde.energy/api/v1/client/search?lat=52.52&lng=13.40&radius=10&limit=3" \
-H "X-API-Key: YOUR_API_KEY" | jq .