DaaS API
Docs & Playground
History (Get)/Get Trip

Get Triptoken required

Trips active in a time window (up to 24 hours), oldest start first.

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

Parameters

typeName is "Trip".

NameTypeRequiredDescription
search.fromDatedaterequiredWindow start (ISO-8601 UTC).e.g. 2026-10-27T00:00:00Z
search.toDatedaterequiredWindow end (ISO-8601 UTC). At most 24 hours after fromDate.e.g. 2026-10-27T06:00:00Z
search.vehicleSearch.idstringoptionalOnly this vehicle (a Vehicle id, e.g. 1-1807952).
resultsLimitnumberoptionalRecords per call. Default and maximum 5,000.e.g. 100
sort.sortBystringoptionalPage through results: start.e.g. start
sort.offsetstringoptionalstart of the last record of the previous page.
sort.lastIdstringoptionalid of the last record of the previous page.

Notes

Returns every trip that overlaps the window (started before toDate, ended after fromDate). To read more than one page, send sort with the last record's start and id.

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":"Trip","search":{"fromDate":"2026-10-27T00:00:00Z","toDate":"2026-10-27T06:00:00Z"},"resultsLimit":100,"sort":{"sortBy":"start"}}}'
Body
{
  "method": "Get",
  "params": {
    "typeName": "Trip",
    "search": {
      "fromDate": "2026-10-27T00:00:00Z",
      "toDate": "2026-10-27T06:00:00Z"
    },
    "resultsLimit": 100,
    "sort": {
      "sortBy": "start"
    }
  }
}

Response

200 OK
{
  "jsonrpc": "2.0",
  "result": [
    {
      "id": "1-340951",
      "vehicle": {
        "id": "1-1807952"
      },
      "driver": {
        "id": "1-612132"
      },
      "start": "2026-10-28T04:13:35.000Z",
      "stop": "2026-10-28T04:16:15.000Z",
      "distance": 0,
      "drivingDuration": "00:02:40",
      "version": "000001a180b91298"
    }
  ]
}

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"
      }
    ]
  }
}