Getting Started
4 min
with the motion tracking system (mts) service, developers can use apis and pub sub mechanisms to track the movement of a device including monitoring when a device enters or leaves a preconfigured geofenced area the following how to sections describe the steps necessary to register and monitor a device for motion tracking using the mts api prerequisites an account on the os1 platform for more information, see getting started with the os1 platform https //docs getos1 com/docs/getting started 1 credentials for an app on the os1 platform for more information, see getting started building apps https //docs getos1 com/docs/getting started building apps an access token for more information about creating an access token for testing purposes, see postman collection https //docs getos1 com/docs/postman collection or how to use the api 'try it' feature https //docs getos1 com/reference/how to use the api try it feature a mechanism to call the endpoints for testing purposes, you can use our postman collection or the “try it!” feature in our api documentation by using the mts service apis, you can define geofence with these apis, developers can add a new geofence to the database, remove a geofence, access a particular geofence, or retrieve all geofences associated with a particular deviceid creategeofence https //docs getos1 com/reference/creates geofence creates a geofence updategeofencestatus https //docs getos1 com/reference/deactivatereactivate geofence deactivates or reactivates a geofence deletegeofence https //docs getos1 com/reference/delete geofence deletes a geofence getgeofence https //docs getos1 com/reference/get geofence retrieves a geofence subscribedevices https //docs getos1 com/reference/subscribe devices to a geofenceid subscribes device(s) to geofenceid getsubscribeddevices https //docs getos1 com/refhttps //docs getos1 com/reference/fetch devices subscribed to geofenceiderence/fetch devices subscribed to a geofenceid fetches devices subscribed to a geofeceid unsubscribedevice https //docs getos1 com/reference/unsubscribe device subscribed to geofenceid unsubscribe devices subscribed to a geofencid register an iot device this api allows developers to register devices from mts register iot device https //docs getos1 com/reference/register iot device retrieve iot device details https //docs getos1 com/reference/get device details deregister iot device https //docs getos1 com/reference/deregister device subscribe a device developers can use these apis to add a new subscription configuration to a cassandra table, retrieve a subscription, or deactivate a topic with no other subscriptions create subscription https //docs getos1 com/reference/creates subscription get subscription https //docs getos1 com/reference/get subscription set topic to inactive https //docs getos1 com/reference/set topic to inactive insert and get trace data the traces apis allow developers to insert trace data to mts and retrieve trace data for a particular device within a designated timeframe inserttracesbytrackname https //docs getos1 com/reference/insert trace data using trackname insettracesbytrackid https //docs getos1 com/reference/insert trace data using trackid gettracesbytrackname https //docs getos1 com/reference/get trace data using trackname gettracesbytrackid https //docs getos1 com/reference/get trace data using trackid check missing sequence numbers the missing sequence apis allow developers to retrieve missing sequence numbers by trackname or trackid getmissingsequencebytrackname https //docs getos1 com/reference/get missing sequence numbers using trackname getmissingsequencebytrackid https //docs getos1 com/reference/get missing sequence numbers using trackid