You can query the system for the last known location of individuals or all users using our Tracker API. The query can either be based on aliases that have been set or by using device Ids. You can request up to 10 individual users in one go, or alternatively you can get all users which will be returned in paginated responses up to 100 users.
POST
https://api.crowdconnected.com/prod/tracker/positions
Required Headers
Auth: API-KEY
Request Body
{
// Unix millis time
"atTime": 1676761200000,
// Optional or can be empty if all user positions are required
"identifiers": ["7f946a60-9ccf-4460-b83c-59e2942756b8"],
// Optional, must be a configured alias, if absent device Ids are used
"aliasKey": "your_alias_key"
// Optional, in milliseconds the maximum age a position can be to be included
"maxAge": 900000,
// Optional, only use if returned by previous API call
"lastEvaluatedKey": "b6ff9ef2-d4e9-464c-ada9-48ef830184dd"
}
Response
{
"count": 1,
// If an alias key was provided, otherwise device id
"aliasKey": "your_alias_key",
"users": [
{
"identifier": "d9fd87ea-e4b9-44fe-800a-a96fcdbb3ef9",
"x": -1.3156403087631352E7,
"y": 3973217.6955061043,
"surfaceId": "2c55ca28-12fd-491b-bb7e-99ec4fd1bdbe",
"timestamp": 1676760428999
}
],
// Only returned if additional data
"lastEvaluatedKey": "b6ff9ef2-d4e9-464c-ada9-48ef830184dd"
}