API Status
CI Build Status
The badge above shows the current CI pipeline status (Go tests + frontend build).
Live Health Check
You can check the API health at any time:
curl -s https://api.petitmonde.energy/health | jq .
Expected response:
{
"status": "ok"
}
Manual Status Check
Test the full request pipeline:
# 1. Server reachable
curl -s -o /dev/null -w "%{http_code}" https://api.petitmonde.energy/health
# 2. Auth working
curl -s -o /dev/null -w "%{http_code}" \
-H "X-API-Key: YOUR_API_KEY" \
https://api.petitmonde.energy/api/v1/client/me
# 3. Search working
curl -s -o /dev/null -w "%{http_code} (%{time_total}s)" \
-H "X-API-Key: YOUR_API_KEY" \
"https://api.petitmonde.energy/api/v1/client/search?lat=52.52&lng=13.40&radius=10&limit=1"
Response Time Expectations
| Endpoint | Expected | Notes |
|---|---|---|
GET /health | < 50ms | Simple health check |
GET /me | < 100ms | Auth + database lookup |
GET /search | 200–800ms | Depends on number of CPOs and radius |
POST /bookings | 500–2000ms | Includes CPO round-trip |
GET /bookings/{id} | < 100ms | Database lookup |
Incident Contact
If you experience issues not reflected in the CI badge:
- Email: api-support@petitmonde.energy
- Include your client ID, timestamp, and error response