Retrieve connectivity information for an endpoint
Authentication
An auth_token should be provided to authenticate a session.
To obtain an auth_token, see the /api/v1/authenticate POST request.
An auth_token should be provided to authenticate a session.
To obtain an auth_token, see the /api/v1/authenticate POST request.
Returns device location information based on the cell tower to which the device is connected.
emnify validates the data requested, sends the signal request to the network operator, and interprets the response. Whether the network returns useful data is outside of emnify’s control.
To distinguish these cases, this call returns the HTTP 200 OK response code whenever the request is successfully executed, even if it includes an error.
See the response body for details.
Indicates whether the subscriber information is retrieved. This parameter must be true to retrieve the connectivity information.
Upon successful execution, the response contains the following information:
success (Boolean) Indicates whether the location is successfully retrieved from the network.state (String) Provides the subscriber state information.
location (Object) Contains the following information:
current_location_retrieved (Boolean) Indicates whether the current location is successfully retrieved.age_of_location (Number) Time in minutes since the last contact with the device.cell_global_id (Object) Includes the MCC, MNC, LAC, and CID.Otherwise, the response contains the success field and an error (String) field with the error message.
All responses include the following fields:
request_timestamp (String, Date format) Time in UTC the location information was requested.reply_timestamp (String, Date format) Time in UTC the network provides the location information.