Resolve an IP address to a geographic location
GET
/org/{tenant_code}/v2/messaging/geolocation
Platform support: MT
Token Cost: 1 token (low)
Resolves an IPv4 or IPv6 address to its approximate city, country, timezone and coordinates using the locally installed MaxMind GeoLite2 City database. Typically used to show where a live chat visitor is connecting from.
Addresses that are valid but absent from the database (private ranges,
for example) return 200 with empty names and zeroed coordinates
rather than an error, so clients must handle an empty result.
Request
Responses
- 200
- 400
- 401
- 500
Geolocation of the given IP address.
ip was missing or is not a valid IP address.
Missing or invalid X-User-Identity header.
Unhandled server-side error, including a failed geolocation lookup.