---
agentTools:
  projectIndex: https://docs.wastehero.io/llms.txt
---

# Get Vehicle

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "WasteHero REST API",
    "description": "\nWelcome to the WasteHero REST API. Using this API you will be able to retrieve metrics from your WasteHero account. \n\nAPI endpoints have the throttling enabled and configured in a customer company settings.\n Default is 120 requests per minute.\n",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://platform-api.wastehero.io",
      "description": "Production environment"
    }
  ],
  "paths": {
    "/api/v3/vehicle/{vehicle_id}": {
      "get": {
        "tags": [
          "Vehicle"
        ],
        "summary": "Get Vehicle",
        "operationId": "get_vehicle_api_v3_vehicle__vehicle_id__get",
        "parameters": [
          {
            "required": true,
            "schema": {
              "title": "ID of a particular vehicle",
              "type": "string"
            },
            "name": "vehicle_id",
            "in": "path"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleOutputSerializerV3"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "PlatformAPIKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "LocationOutputSerializerV3": {
        "title": "LocationOutputSerializerV3",
        "required": [
          "latitude",
          "longitude"
        ],
        "type": "object",
        "properties": {
          "latitude": {
            "title": "Latitude",
            "type": "number"
          },
          "longitude": {
            "title": "Longitude",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        }
      },
      "ProjectOutputSerializerV3": {
        "title": "ProjectOutputSerializerV3",
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "creating_demo_data": {
            "title": "Creating Demo Data",
            "type": "boolean",
            "default": false
          }
        }
      },
      "ValidationError": {
        "title": "ValidationError",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "type": "object",
        "properties": {
          "loc": {
            "title": "Location",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        }
      },
      "VehicleOutputSerializerV3": {
        "title": "VehicleOutputSerializerV3",
        "required": [
          "id",
          "project",
          "vehicle_type",
          "license_plate_number",
          "name",
          "external_identifier",
          "days_available",
          "status"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "project": {
            "$ref": "#/components/schemas/ProjectOutputSerializerV3"
          },
          "vehicle_type": {
            "$ref": "#/components/schemas/VehicleTypeOutputSerializerV3"
          },
          "realtime_location": {
            "$ref": "#/components/schemas/LocationOutputSerializerV3"
          },
          "license_plate_number": {
            "title": "License Plate Number",
            "maxLength": 64,
            "type": "string",
            "description": "Vehicle's license plate number"
          },
          "name": {
            "title": "Name",
            "maxLength": 64,
            "type": "string",
            "description": "Vehicle's naming"
          },
          "external_identifier": {
            "title": "External Identifier",
            "maxLength": 17,
            "type": "string",
            "description": "Vehicle identification number (VIN)"
          },
          "hours": {
            "title": "Hours",
            "type": "array",
            "items": {
              "type": "integer"
            }
          },
          "days_available": {
            "title": "Days Available",
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A vehicle can have many days available (add them comma-separated). Allowed values: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']"
          },
          "status": {
            "title": "Status",
            "maxLength": 64,
            "type": "string",
            "description": "Status of a vehicle. Allowed values: ['working', 'unavailable', 'off-work']"
          },
          "is_active": {
            "title": "Is Active",
            "type": "boolean",
            "default": true
          }
        }
      },
      "VehicleTypeOutputSerializerV3": {
        "title": "VehicleTypeOutputSerializerV3",
        "required": [
          "id",
          "name",
          "manufacturer",
          "model",
          "manufacturer_year",
          "trim"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "body": {
            "title": "Body",
            "type": "string",
            "default": ""
          },
          "body_mechanization": {
            "title": "Body Mechanization",
            "type": "string",
            "default": ""
          },
          "lifting_mechanization": {
            "title": "Lifting Mechanization",
            "type": "string",
            "default": ""
          },
          "loading_location": {
            "title": "Loading Location",
            "type": "string",
            "default": ""
          },
          "crane": {
            "title": "Crane",
            "type": "string"
          },
          "compactor": {
            "title": "Compactor",
            "type": "string",
            "default": ""
          },
          "manufacturer": {
            "title": "Manufacturer",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "manufacturer_year": {
            "title": "Manufacturer Year",
            "type": "string"
          },
          "trim": {
            "title": "Trim",
            "type": "string"
          },
          "fuel_usage_per_km": {
            "title": "Fuel Usage Per Km",
            "type": "number"
          },
          "fuel_cost_per_km": {
            "title": "Fuel Cost Per Km",
            "type": "number"
          },
          "fuel_cost_per_ltr": {
            "title": "Fuel Cost Per Ltr",
            "type": "number"
          },
          "co2_emmision_per_km": {
            "title": "Co2 Emmision Per Km",
            "type": "number"
          },
          "fixed_cost": {
            "title": "Fixed Cost",
            "type": "number"
          },
          "fuel_type": {
            "title": "Fuel Type",
            "type": "string"
          },
          "fuel_tank_capacity": {
            "title": "Fuel Tank Capacity",
            "type": "array",
            "items": {
              "type": "number"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "PlatformAPIKey": {
        "type": "apiKey",
        "description": "\nYou can find your API key in the settings section on app.wastehero.io. When you have the key it should be added as an Authorization header with the name X-API-Key.\n",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 199,
      "2": 86,
      "3": 211,
      "4": 157,
      "5": 89,
      "6": 18,
      "7": 0,
      "8": 12,
      "9": 100,
      "10": 34,
      "11": 175
    }
  }
}
```