Skip to content

Vehicle Control (Dashboard)

Control vehicle functions remotely from the dashboard.

Lock Vehicle

Endpoint

INFO

POST /api/v1/dashboard/vehicles/{vehicle}/control/lock

Example Request

bash
curl -X POST https://api.daakey.com/api/v1/dashboard/vehicles/1/control/lock \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {token}"

Unlock Vehicle

Endpoint

INFO

POST /api/v1/dashboard/vehicles/{vehicle}/control/unlock


Enable Driving

Enable the engine immobilizer, allowing the vehicle to start.

Endpoint

INFO

POST /api/v1/dashboard/vehicles/{vehicle}/control/enable-driving


Disable Driving

Disable the engine immobilizer (prevents restart).

Endpoint

INFO

POST /api/v1/dashboard/vehicles/{vehicle}/control/disable-driving


Unlock and Enable Driving

Combined operation for convenience.

Endpoint

INFO

POST /api/v1/dashboard/vehicles/{vehicle}/control/unlock-and-enable-driving


Lock and Disable Driving

Combined operation for convenience.

Endpoint

INFO

POST /api/v1/dashboard/vehicles/{vehicle}/control/lock-and-disable-driving


Get Vehicle Status

Retrieve real-time vehicle status.

Endpoint

INFO

GET /api/v1/dashboard/vehicles/{vehicle}/status

Response

json
{
  "success": true,
  "message": "Vehicle status retrieved",
  "data": {
    "vehicle_id": 1,
    "status": "available",
    "location": {
      "latitude": 40.7128,
      "longitude": -74.0060,
      "address": "123 Main St, New York, NY"
    },
    "telemetry": {
      "fuel_level": 85,
      "mileage": 15420,
      "battery_voltage": 12.6,
      "is_locked": true,
      "is_engine_running": false,
      "doors": {
        "front_left": "closed",
        "front_right": "closed",
        "rear_left": "closed",
        "rear_right": "closed",
        "trunk": "closed"
      }
    },
    "connectivity": {
      "status": "online",
      "last_seen": "2024-01-15T10:00:00Z"
    }
  },
  "request_id": "uuid",
  "timestamp": "2024-01-01T00:00:00.000Z"
}

Notes

  • Dashboard users can control vehicles regardless of booking status
  • Commands are sent via INVERS telematics
  • All control actions are logged in the activity history

Daakey Car Sharing Platform