Find the callers practices by location

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)

reasonMeaningRecommended agent recovery
location_requiredNo location input supplied.Ask the user for a ZIP, city, or coordinates and re-call.
location_not_understoodThe input could not be resolved to coordinates.Ask for a 5-digit US ZIP or lat/lng and re-call.
no_locations_in_radiusNo granted practices within the radius.Widen radius_miles or ask for a different area.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Find the callers practices by location

location
object
float

Search radius in miles (default 20, must be positive).

Response
200

Find the callers practices by location

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here!