π Switching & linked accounts
Switch to another linked loginβ
idUser is the target's idLogin. The new X-Token comes in the header.
POST /renewtoken.awp?verbe=post&v=8.1.0
data={
"idUser": 1234567, // The target's idLogin (despite the name idUser)
"uuid": "5c944aac-4d7c-44a1-b240-a471eee3ed28" // Stable per-install id
}
Response
{
"code": 200,
"message": "",
"data": {
"accessToken": "xxxxxxxx" // Renewal token of the target account
}
}
otherFailure
List linked accountsβ
POST /logins/{idLogin}/comptes.awp?verbe=get&v=8.1.0
data={}
β οΈ Not used by the mobile app.
Response
{
"code": 200,
"message": "",
"data": {
"comptesAssocies": [ // Linked accounts
{
"id": 1234,
"codeOgec": "0123456A",
"typeCompte": "E",
"identifiant": "jdupont",
"nomEtablissement": "Collège Exemple",
"isExterne": false,
"accounts": [ // optional
{
"idLogin": 1234567, // Login id: logins/{idLogin}, account switch
"id": 1234, // User id, the {id} of URLs
"uid": "aa324ec860b84970b4f8c44b7769c2cd",
"identifiant": "jdupont",
"typeCompte": "E", // E 1 2 A P T W
"codeOgec": "0123456A", // School code
"main": true,
"lastConnexion": "2026-03-24 18:22", // optional. YYYY-MM-DD HH:mm
"civilite": "", // optional
"prenom": "Jean",
"particule": "", // optional
"nom": "DUPONT",
"isPrimaire": false,
"nomEtablissement": "Collège Exemple",
"logoEtablissement": "", // optional
"couleurAgendaEtablissement": "#80cc33", // Hex colour
"dicoEnLigneLeRobert": true,
"socketToken": "",
"accessToken": "xxxxxxxx", // optional. Renewal token, needs sesouvenirdemoi: true
"modules": [ {β¦} ], // β Module
"parametresIndividuels": {β¦}, // β IndividualSettings
"profile": {β¦}, // Depends on the account type β Profile
"isProfEtPersonnel": false, // optional. Teacher and staff at once: can switch profile
"ephemere": false, // optional. Like supervision mode: message actions are disabled
"isELE": false, // optional. On a 1 family account: shown as βresponsableβ, cannot be unlinked
"current": false, // optional
"oAuthParams": {β¦}, // optional. SSO logins β OAuthParams
"cnil": false // optional. Not used by the app
}
]
}
],
"comptesAssociesExternes": [] // External accounts: {compteExterne, siteExterne}
}
}
Objects: Module, IndividualSettings, Profile, OAuthParams.
Link an accountβ
POST /logins/{idLogin}/comptes.awp?verbe=post&v=8.1.0
data={
"identifiantCompteAssocie": "parent", // Identifiant of the account to link
"motDePasseComteAssocie": "xxxxxxxx", // Its password
"cn": "xxxx", // required after 250. 2FA proof
"cv": "xxxx" // required after 250. 2FA proof
}
β οΈ Not used by the mobile app.
2502FA required: Do the 2FA for that account, then retry withcnandcv
Unlink an accountβ
POST /logins/{idLogin}/comptes/{idCompteAssocie}.awp?verbe=delete&v=8.1.0
data={
"isExterne": false, // optional. Internal account unlinking
"isSiteExterne": false // optional. true for an external account
}
β οΈ Not used by the mobile app.