GET
/
drivers
/
{driver}
/
vehicles
curl --request GET \
  --url https://api.chargeapi.co/v1/drivers/{driver}/vehicles \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "object": "list",
  "url": "<string>",
  "has_more": true,
  "data": [
    {
      "id": null,
      "object": null,
      "battery_capacity": null,
      "charging_standard": null,
      "created": null,
      "drivers": null,
      "information": {
        "make": "<string>",
        "model": "<string>",
        "year": "<string>"
      },
      "metadata": null,
      "registration_plate": null,
      "status": null,
      "telemetry": null,
      "updated": null,
      "vin": null
    }
  ]
}

Path Parameters

driver
string
required

ID of the driver whose vehicles you want to list.

Query Parameters

limit
integer

Maximum number of vehicles to return (default 10).

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

Cursor for pagination; returns vehicles after this ID.

ending_before
string

Cursor for pagination; returns vehicles 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 Driver objects attached to the vehicle, starting after Driver starting_after. Each entry in data is a separate Driver object. If no additional drivers are available, the array is empty.

The response is of type object.