Skip to main content

API Status

CI Build Status

CI

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

EndpointExpectedNotes
GET /health< 50msSimple health check
GET /me< 100msAuth + database lookup
GET /search200–800msDepends on number of CPOs and radius
POST /bookings500–2000msIncludes CPO round-trip
GET /bookings/{id}< 100msDatabase lookup

Incident Contact

If you experience issues not reflected in the CI badge: