Complete documentation for the Lattis - Nexus API. Build powerful integrations with our platform using our well-documented endpoints.
All API requests require authentication using API keys. Include your API key in the Authorization header of each request.
curl -X GET "https://api.lattis-nexus.com/v2/fleet/vehicles" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json"from lattis_nexus import Client
client = Client(api_key='your_api_key')
vehicles = client.fleet.get_vehicles()import { LattisNexusClient } from '@lattis-nexus/sdk';
const client = new LattisNexusClient({
apiKey: 'your_api_key'
});
const vehicles = await client.fleet.getVehicles();Manage your vehicle fleet
List all vehicles in the fleet
| Name | Type | Description |
|---|---|---|
| status | string | Filter by vehicle status |
| limit | number | Maximum number of results |
| offset | number | Pagination offset |
{
"vehicles": [
{
"id": "v123",
"status": "active",
"location": {
"lat": 37.7749,
"lng": -122.4194
},
"battery": 85,
"lastUpdate": "2024-01-15T08:30:00Z"
}
],
"total": 150,
"limit": 10,
"offset": 0
}Add a new vehicle to the fleet
| Name | Type | Description |
|---|---|---|
| vehicleId | string | Unique vehicle identifier |
| type | string | Vehicle type |
| configuration | object | Vehicle configuration |
{
"vehicleId": "v123",
"type": "autonomous_car",
"configuration": {
"sensors": ["lidar", "camera"],
"capacity": 4,
"autonomyLevel": 4
}
}{
"id": "v123",
"status": "registered",
"createdAt": "2024-01-15T08:30:00Z"
}Real-time vehicle telemetry data
Get latest telemetry for a vehicle
| Name | Type | Description |
|---|---|---|
| vehicleId | string | Vehicle identifier |
| fields | string | Comma-separated list of fields |
{
"vehicleId": "v123",
"timestamp": "2024-01-15T08:30:00Z",
"data": {
"speed": 25.5,
"heading": 180,
"battery": 85,
"temperature": 72
}
}Subscribe to real-time telemetry stream
| Name | Type | Description |
|---|---|---|
| vehicleId | string | Vehicle identifier |
| events | array | List of event types to subscribe to |
{
"events": ["location", "battery", "diagnostics"],
"interval": 1000
}{
"streamId": "stream_123",
"status": "connected",
"subscriptions": ["location", "battery", "diagnostics"]
}