Locations
Get location details
Changed onFetch full location details including coordinates, timezone, and photo. Accepts location ID or provider identifier (e.g., Google Place ID). Uses cache-first strategy.
get/locations/{key}
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Path parameters
key, string required
Location key - either a location ID (loc_xxx format) or provider-specific identifier (e.g., Google Place ID)
Example:loc_01hk153x00eh99pagyydz03sbz
Response
OK
object required
location, Detailed Location required
Example response
{
"location": {
"id": "loc_01hk153x00eh99pagyydz03sbz",
"googlePlaceId": "ChIJP3Sa8ziYEmsRUKgyFmh9AQM",
"createdAt": "2026-12-02T02:43:23.597Z",
"updatedAt": "2026-12-02T02:43:23.597Z",
"name": "Watson's EQ",
"address": "The, Entertainment Quarter, 1 Bent St, Moore Park NSW 2021, Australia",
"city": "Moore Park",
"state": "New South Wales",
"postcode": "2021",
"country": "Australia",
"latitude": -33.8944593,
"longitude": 151.2252255,
"timeZone": "Australia/Sydney",
"types": [
"establishment",
"point_of_interest",
"stadium"
],
"description": "Historic outdoor amphitheater known for summer concerts",
"image": {
"src": "https://assets.session.services/my-image.jpg",
"alt": "My Image",
"width": 1080,
"height": 1080
},
"venue": {
"image": {
"src": "https://assets.session.services/my-image.jpg",
"alt": "My Image",
"width": 1080,
"height": 1080
}
}
}
}Changes
- breaking
for the
pathrequest parameterkey, the minLength was increased from0to1 - info
the
location/countryCoderesponse's property pattern^[A-Z]{2}$was added for the status - info
the
location/idresponse's property pattern^loc_[0-9a-z]{26}$was added for the status
2 more changes in this revision
- breaking