Logout

Overview

The Logout mutation ends the current user session. On logout the app also deregisters push notification tokens.

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>
apollographql-client-name: com.rivian.android.consumer

Request Body

{
  "operationName": "Logout",
  "variables": {},
  "query": "mutation Logout { logout { success } }"
}

Example Response

{
  "data": {
    "logout": {
      "success": true
    }
  }
}

The app also sends these mutations before or alongside Logout:

  • DeregisterPushNotificationToken — removes the FCM token for the user
  • liveNotificationDeregisterStartToken — deregisters the live notification start token

This site uses Just the Docs, a documentation theme for Jekyll.