GET
/v2/vehicle/{vehicle_id}Get Vehicle by ID
Returns information for a single vehicle.
Authentication
Send both headers on every request.How auth works →
X-API-Provider-Key- Your provider key — identifies your platform. The same for every request.
X-API-Company-Key- The carrier's company key — scopes all returned data to that one carrier.
Path parameters
| Parameter | Type | Description |
|---|---|---|
vehicle_id | UUIDrequired | The vehicle's unique identifier |
Responses
200OK— payload in
data, wrapped in the response envelope.| Field | Type | Description |
|---|---|---|
vehicle_id | UUID | Unique vehicle identifier |
number | string | Vehicle or unit number |
vin | string | Vehicle Identification Number |
active | boolean | Whether the vehicle is currently active |
401Unauthorized— missing or invalid API key.
| Field | Type | Description |
|---|---|---|
status_code | integer | HTTP status code (e.g. 401). |
description | string | Human-readable error message. |
data | null | Always null on error. |
curl -X GET "https://api.huntereld.com/v2/vehicle/e5c9f3b1-2d7a-4e8c-a6f3-9b1d4e7c2f5a" \
-H "X-API-Provider-Key: YOUR_PROVIDER_KEY" \
-H "X-API-Company-Key: YOUR_COMPANY_KEY"{
"description": "success",
"data": {
"vehicle_id": "e5c9f3b1-2d7a-4e8c-a6f3-9b1d4e7c2f5a",
"number": "1042",
"vin": "1XKYD49X3NJ312847",
"active": true
}
}{
"status_code": 401,
"description": "Company API key is not valid",
"data": null
}