GetVehicleLastConnection

Overview

The GetVehicleLastConnection endpoint returns the last time the vehicle synced with Rivian Cloud.

POST https://rivian.com/api/gql/gateway/graphql

Required Headers

a-sess: <your app session token>
u-sess: <your user session token>
csrf-token: <your CSRF token>

Request Body

{
  "operationName": "GetVehicleLastConnection",
  "variables": {
    "vehicleID": <your-vehicle-id>
  },
  "query": "query GetVehicleLastConnection($vehicleID: String!) { vehicleState(id: $vehicleID) { __typename cloudConnection { __typename lastSync } } }"
}

Example Response

{
  "data": {
    "vehicleState": {
      "__typename": "VehicleState",
      "cloudConnection": {
        "__typename": "VehicleCloudConnection",
        "lastSync": "2023-02-04T01:02:03.665Z"
      }
    }
  }
}