Skip to main content
Version: 8.1.0

🔄 Renewing the token

On 401, 520 or 525 the token is dead. Same for every account type.

Renew the session (access token)​

Needs the accessToken of an account, returned when the login used sesouvenirdemoi: true. For P and A the app sends it to apip.

POST /login.awp?v=8.1.0
X-GTK: <GTK cookie value>

data={
"identifiant": "jdupont",
"typeCompte": "E",
"motdepasse": "my_password", // Always "???"
"accesstoken": "xxxxxxxx", // account.accessToken
"isReLogin": false,
"uuid": "5c944aac-4d7c-44a1-b240-a471eee3ed28"
}
  • 526 Access token invalid: Do a full login again (password, and 2FA if asked).
info
  • Save the accessToken of every renewal response: it can change.
  • Done once on 401 / 520 / 525, then the failed request is replayed.

Log out​

The app unregisters its push token first.

POST /user/logout.awp?v=8.1.0
data={}