Vehicles API
Endpoints
POST /api/v1/vehicles
GET /api/v1/vehicles
GET /api/v1/vehicles/:vehicleId
GET /api/v1/vehicles/:vehicleId/verificationAdd vehicle
{
"make": "Toyota",
"model": "Camry",
"year": 2025,
"colour": "White",
"plateReference": "secure-reference",
"seatingCapacity": 4
}A vehicle belongs to a user, not to a driver profile. Ownership and driving are different facts about the same person, and a user who is both has one identity rather than two linked records.
plateReference is stored as plate_hash plus plate_display. The hash is what verification matches against; the display form is what other participants see. The raw reference is never persisted in the vehicle record.
Verification
GET /api/v1/vehicles/:vehicleId/verificationReturns the verification history, not a boolean:
{
"vehicleId": "veh_01...",
"current": {
"type": "REGISTRATION",
"status": "VERIFIED",
"verifiedAt": "2026-09-30T07:00:00Z",
"expiresAt": null
},
"history": []
}A boolean isVerified cannot answer "verified by whom, when, and until when", which is the question an authority-facing system has to be able to answer.
Seating capacity
seatingCapacity is the vehicle's capacity and caps how many seats a journey may offer. VEHICLE-004 blocks a match whose passenger count exceeds it. The capacity is a property of the vehicle, not a number the driver asserts per journey.
