# Request the latest event with location and environmental data Endpoint: GET /locations/{asset_id} Version: 1.3.0.0 Security: bearerAuth ## Path parameters: - `asset_id` (string, required) AWB when fetching location only, for environmental data, use your asset id associated to Trackonomy tape. ## Header parameters: - `customer_id` (string, required) customer_id for the request - `authorized_groups` (string, required) authorized_groups for access control ## Query parameters: - `event` (string) Enable sensor readings in the response, required for non-AWB asset id Enum: "sensor" ## Response 200 fields (application/json): - `assets` (array) - `assets.event_type` (string) Enum: "location", "environment" - `assets.lat` (number) Example: 33.6388667 - `assets.location` (string) Example: "ATL Warehouse" - `assets.location_detailed` (string) Example: "COOLER FRONTWALL" - `assets.lon` (number) Example: -84.41425556 - `assets.sensors` (array) - `assets.sensors.data` (number) Example: 25.5 - `assets.sensors.type` (string) Enum: "ambient_temp", "probe_temp", "shock", "humidity", "pressure", "light" - `assets.sensors.units` (string) Example: "℃" - `assets.time_zone` (string) Example: "America/Los_Angeles" - `assets.timestamp` (string) Example: "2025-02-07 09:02:34" - `assets.trk_asset_id` (string) Customer asset ID associated to the Trackonomy tape Example: "999-2440 0001-0001" - `assets.vendor_asset_id` (string) Trackonomy tape QR Code Example: "06-140524-19-N1CE39" - `uuid` (string) Example: "a51799fa-4765-4f9c-9460-2d44fc2fe27f" - `vendor_id` (string) Example: "c59f7130-e0b7-4aff-ac6e-a97dcfbd9222" - `version` (string) Example: "1.0.0" ## Response 400 fields (application/json): - `code` (integer) HTTP status code associated with the error Example: 500 - `message` (string) Error message describing what went wrong Example: "Internal Server Error" ## Response 401 fields (application/json): - `code` (integer) HTTP status code associated with the error Example: 500 - `message` (string) Error message describing what went wrong Example: "Internal Server Error" ## Response 404 fields (application/json): - `code` (integer) HTTP status code associated with the error Example: 500 - `message` (string) Error message describing what went wrong Example: "Internal Server Error" ## Response 500 fields (application/json): - `code` (integer) HTTP status code associated with the error Example: 500 - `message` (string) Error message describing what went wrong Example: "Internal Server Error"