post
https://nexhealth.info/intent/locations/search
Returns granted practice locations near a point, ranked by distance.
Soft failures return { ok: false, reason:, message: } rather than an HTTP error.
Example request
curl -X POST https://nexhealth.info/intent/locations/search \
-H 'Authorization: Bearer <token>' -H 'Content-Type: application/json' \
-d '{ "location": { "zip": "98101" }, "radius_miles": 15 }'
Example success response
{ "ok": true,
"locations": [
{ "location_id": 42, "name": "Main St Dental",
"address": "1 Main St, Seattle, WA, 98101", "distance_miles": 1.2 }
] }Reason catalog (branch on reason when ok is false)
reason when ok is false)reason | Meaning | Recommended agent recovery |
|---|---|---|
location_required | No location input supplied. | Ask the user for a ZIP, city, or coordinates and re-call. |
location_not_understood | The input could not be resolved to coordinates. | Ask for a 5-digit US ZIP or lat/lng and re-call. |
no_locations_in_radius | No granted practices within the radius. | Widen radius_miles or ask for a different area. |
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Find the callers practices by location