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

# Get Drivers

# 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/driver/": {
      "get": {
        "tags": [
          "Driver"
        ],
        "summary": "Get Drivers",
        "operationId": "get_drivers_api_v3_driver__get",
        "parameters": [
          {
            "required": false,
            "schema": {
              "title": "Limit",
              "maximum": 50,
              "minimum": 1,
              "type": "integer",
              "default": 10
            },
            "name": "limit",
            "in": "query"
          },
          {
            "required": false,
            "schema": {
              "title": "Offset",
              "minimum": 0,
              "type": "integer",
              "default": 0
            },
            "name": "offset",
            "in": "query"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIV3LimitOffsetPaginator_DriverOutputSerializerV3_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "PlatformAPIKey": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "APIV3LimitOffsetPaginator_DriverOutputSerializerV3_": {
        "title": "APIV3LimitOffsetPaginator[DriverOutputSerializerV3]",
        "required": [
          "items",
          "total",
          "limit",
          "offset",
          "has_next",
          "has_previous"
        ],
        "type": "object",
        "properties": {
          "items": {
            "title": "Items",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DriverOutputSerializerV3"
            }
          },
          "total": {
            "title": "Total",
            "minimum": 0,
            "type": "integer"
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "type": "integer"
          },
          "offset": {
            "title": "Offset",
            "minimum": 0,
            "type": "integer"
          },
          "has_next": {
            "title": "Has Next",
            "type": "boolean"
          },
          "has_previous": {
            "title": "Has Previous",
            "type": "boolean"
          }
        },
        "description": "A paginator that uses limit and offset as pagination parameters.\nExtended with has_next and has_previous fields to add pagination metadata."
      },
      "DepotOutputSerializerV3": {
        "title": "DepotOutputSerializerV3",
        "required": [
          "id",
          "location",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "location": {
            "$ref": "#/components/schemas/LocationOutputSerializerV3"
          },
          "name": {
            "title": "Name",
            "type": "string"
          },
          "description": {
            "title": "Description",
            "type": "string"
          },
          "geofence_radius": {
            "title": "Geofence Radius",
            "type": "integer"
          },
          "opening_time": {
            "title": "Opening Time",
            "type": "string",
            "format": "time"
          },
          "closing_time": {
            "title": "Closing Time",
            "type": "string",
            "format": "time"
          },
          "time_to_unload_truck": {
            "title": "Time To Unload Truck",
            "type": "string",
            "format": "time"
          },
          "time_to_leave_the_facility": {
            "title": "Time To Leave The Facility",
            "type": "string",
            "format": "time"
          },
          "amount_of_trucks": {
            "title": "Amount Of Trucks",
            "type": "integer"
          },
          "capacity_of_trucks": {
            "title": "Capacity Of Trucks",
            "type": "integer"
          },
          "workshop_service_description": {
            "title": "Workshop Service Description",
            "type": "string"
          },
          "workshop_type": {
            "title": "Workshop Type",
            "type": "string"
          }
        }
      },
      "DriverOutputSerializerV3": {
        "title": "DriverOutputSerializerV3",
        "required": [
          "id",
          "user"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/IoUserOutputSerializerV3"
          },
          "start_location": {
            "$ref": "#/components/schemas/DepotOutputSerializerV3"
          },
          "end_location": {
            "$ref": "#/components/schemas/DepotOutputSerializerV3"
          },
          "driver_type": {
            "title": "Driver Type",
            "type": "string",
            "description": "Specify a driver type. Allowed values: ['primary', 'substitute']",
            "default": "primary"
          },
          "employee_numbers": {
            "title": "Employee Numbers",
            "type": "string",
            "description": "External driver id."
          },
          "allowed_maximum_working_days_a_month": {
            "title": "Allowed Maximum Working Days A Month",
            "type": "integer",
            "description": "Allowed maximum working days a month."
          },
          "allowed_maximum_weekly_hours": {
            "title": "Allowed Maximum Weekly Hours",
            "exclusiveMinimum": true,
            "type": "integer",
            "description": "Display the maximum amount of weekly work hours for a driver."
          },
          "allowed_maximum_daily_hours": {
            "title": "Allowed Maximum Daily Hours",
            "exclusiveMinimum": true,
            "type": "integer",
            "description": "Display the maximum amount of daily hours for a driver."
          },
          "days_available": {
            "title": "Days Available",
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A driver can have many days available (add days comma-separated). Allowed values: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']"
          },
          "work_time_start": {
            "title": "Work Time Start",
            "type": "string",
            "description": "Time when a driver started to work.",
            "format": "time"
          },
          "work_time_end": {
            "title": "Work Time End",
            "type": "string",
            "description": "Time when a driver ended to work",
            "format": "time"
          },
          "break_time_start": {
            "title": "Break Time Start",
            "type": "string",
            "description": "Time when a driver started theirs break.",
            "format": "time"
          },
          "break_time_end": {
            "title": "Break Time End",
            "type": "string",
            "description": "Time when a driver ended theirs break.",
            "format": "time"
          },
          "break_duration": {
            "title": "Break Duration",
            "type": "number",
            "description": "Driver's break duration (duration format: 00:00:00)",
            "format": "time-delta"
          },
          "allowed_overtime": {
            "title": "Allowed Overtime",
            "type": "number",
            "description": "Driver's allowed overtime (duration format: 00:00:00)",
            "format": "time-delta"
          },
          "driver_speed": {
            "title": "Driver Speed",
            "maxLength": 40,
            "type": "string",
            "description": "Driver's speed. Allowed values: ['3x_slower', '2x_slower', 'Normal', '2x_faster', '3x_faster']",
            "default": "Normal"
          },
          "navigaton_application_preference": {
            "title": "Navigaton Application Preference",
            "maxLength": 256,
            "type": "string",
            "description": "Navigation for a user."
          },
          "limit_per_route_distance": {
            "title": "Limit Per Route Distance",
            "type": "number",
            "description": "Limit per route distance"
          }
        }
      },
      "HTTPValidationError": {
        "title": "HTTPValidationError",
        "type": "object",
        "properties": {
          "detail": {
            "title": "Detail",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            }
          }
        }
      },
      "IoUserOutputSerializerV3": {
        "title": "IoUserOutputSerializerV3",
        "required": [
          "id",
          "language",
          "created_at"
        ],
        "type": "object",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "phone_number": {
            "title": "Phone Number",
            "type": "string"
          },
          "language": {
            "title": "Language",
            "type": "string"
          },
          "created_at": {
            "title": "Created At",
            "type": "string",
            "format": "date-time"
          },
          "is_master": {
            "title": "Is Master",
            "type": "boolean",
            "default": false
          }
        }
      },
      "LocationOutputSerializerV3": {
        "title": "LocationOutputSerializerV3",
        "required": [
          "latitude",
          "longitude"
        ],
        "type": "object",
        "properties": {
          "latitude": {
            "title": "Latitude",
            "type": "number"
          },
          "longitude": {
            "title": "Longitude",
            "type": "number"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        }
      },
      "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"
          }
        }
      }
    },
    "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
    }
  }
}
```