Example • intermediate • environment
Get environment alerts
Get environment alerts
Blend environment alerts into assistant behavior so users can spot relevant conditions quickly and understand why the result matters.
Title
Get environment alerts
Problem solved
Add regional alert signals into trip or activity recommendations.
Required route or routes
GET /v1/agent/context/{location_id},
GET /v1/environment/alerts
Auth expectation
Context is public. Environment alerts require X-API-Key with
environment:read.
Request snippet
curl
curl -H "X-API-Key: $SMARTAPIS_API_KEY" \
"https://smartapis.net/v1/environment/alerts?region_id=seattle-metro&q=air&limit=5"
Response snippet
{
"items": [{
"alert_id": "alert_sea_001",
"title": "Air Quality Advisory",
"region_id": "seattle-metro"
}],
"count": 1
}
Next step
Blend alerts with transit or places ranking logic to generate safer itinerary suggestions.
Caveats / legal posture
Informational only. Do not present summaries as official emergency or medical advice.