GET
/
vehicles
/
{vehicle}
/
drivers
curl --request GET \
  --url https://api.chargeapi.co/v1/vehicles/{vehicle}/drivers \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "object": "list",
  "url": "<string>",
  "has_more": true,
  "data": [
    {
      "id": null,
      "object": null,
      "created": null,
      "email": null,
      "license_number": null,
      "name": null,
      "phone": null,
      "preferences": {
        "charging_speed": null,
        "notifications": null,
        "currency": null,
        "payment_method": null,
        "max_price_per_kwh": null,
        "preferred_cpos": null,
        "preferred_charging_stations": null
      },
      "status": null,
      "updated": null,
      "vehicles": null,
      "wallet_balance": null
    }
  ]
}

Path Parameters

vehicle
string
required

ID of the vehicle whose drivers you want to list.

Query Parameters

limit
integer

Maximum number of drivers to return (default 10).

Required range: 1 <= x <= 100
starting_after
string

Cursor for pagination; returns drivers after this ID.

ending_before
string

Cursor for pagination; returns drivers before this ID.

Body

application/json · object

Response

200
application/json

A dictionary with a data property that contains an array of up to limit Vehicle objects attached to the driver, starting after Vehicle starting_after. Each entry in data is a separate Vehicle object. If no additional vehicles are available, the array is empty.

The response is of type object.