DaaS API
Docs & Playground
Reference (Get)/Get Vehicle

Get Vehicletoken required

Vehicles: name, plate, VIN and groups.

POST/daas/apiv1— method = "Get", params.typeName = "Vehicle"

Parameters

typeName is "Vehicle".

NameTypeRequiredDescription
search.idstringoptionalOnly the entity with this id.
resultsLimitnumberoptionalRecords per call. Default and maximum 5,000.e.g. 100
sort.sortBystringoptionalPage through results: id.e.g. id
sort.offsetstringoptionalid of the last record of the previous page.

Notes

To read more than one page, send sort with sortBy id and the last record's id as offset.

Request

curl
curl -X POST 'https://private.develop-1.questar.io/v2/private-questar-units/daas/apiv1' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  --data '{"method":"Get","params":{"typeName":"Vehicle","resultsLimit":100,"sort":{"sortBy":"id"}}}'
Body
{
  "method": "Get",
  "params": {
    "typeName": "Vehicle",
    "resultsLimit": 100,
    "sort": {
      "sortBy": "id"
    }
  }
}

Response

200 OK
{
  "jsonrpc": "2.0",
  "result": [
    {
      "id": "1-999000311",
      "name": "Truck 12",
      "licensePlate": "12-345-67",
      "vehicleIdentificationNumber": "",
      "comment": "",
      "groups": [
        {
          "id": "1-999000310"
        }
      ],
      "activeFrom": "2026-10-19T10:23:05.156Z",
      "activeTo": "2050-01-01T00:00:00.000Z",
      "version": "000001a153afafc4"
    }
  ]
}

Errors also come back as HTTP 200, with an error instead of a result. error.data.type says what went wrong: ArgumentException (a bad parameter), MissingMethodException (unknown method) or InvalidOperationException. With no or an invalid token the gateway answers HTTP 401 / 403.

200 OK
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32000,
    "message": "Get does not support typeName 'Media'",
    "name": "JSONRPCError",
    "data": {
      "type": "ArgumentException"
    },
    "errors": [
      {
        "message": "Get does not support typeName 'Media'",
        "name": "ArgumentException"
      }
    ]
  }
}