Skip to content
Inzpire API

LBS API

Request a location of a subscriber

What it does

LBS API allows the developer to request a location of a subscriber. Upon the request, mSpace will communicate the location of the subscriber if he/she has granted the permission.

Base URL
https://api.mspace.lk
Content type
application/json;charset=utf-8
Request Location
POST/lbs/request

Request Location

https://api.mspace.lk/lbs/request

Request sampleJSON
{
  "applicationId": "APP_001768",
  "password": "729fdf8ea178cdea9857eeb9a059fd6e",
  "version": "2.0",
  "requesterId": "tel:94711275563",
  "subscriberId": "tel:94711275563",
  "serviceType": "IMMEDIATE"
}
Response sample200 · JSON
{
  "version": "1.0",
  "messageID": "101304051248020083",
  "latitude": "38.8951",
  "longitude": "-77.0364",
  "subscriberState": "false",
  "timestamp": "2022-01-20'T'13:20:10",
  "statusCode": "E1303",
  "statusDetail": "IP address, which the request originates from, is not listed within the allowed-host-address list"
}
Pricing
Free registrationSee all pricing

mSpace offers you free registration where you can just sign up to create your application. Revenue share is subject to mSpace admin decision and approval upon submitting your application for approval.