ποΈ Login
Same for every account type: only profile in the response changes (Account types).
1. GET /login.awp?gtk=1 -> cookie GTK
2. POST /login.awp -> 200 token + accounts | 250 2FA | 202 first login | 240 charter
3. Every later request -> X-Token header
Log inβ
Always sent to api, whatever the account type. Do GTK first.
POST /login.awp?v=8.1.0
X-GTK: <GTK cookie value>
User-Agent: <same as always>
data={
"identifiant": "jdupont",
"motdepasse": "my_password", // "" for QR login, "???" for a renewal
"isReLogin": false, // true for a renewal
"sesouvenirdemoi": true, // true to get an accessToken
"uuid": "5c944aac-4d7c-44a1-b240-a471eee3ed28", // Same value on every call
"fa": [], // [], or the 2FA proofs {cn, cv, uniq}
"cn": "xxxx", // required after 2FA
"cv": "xxxx", // required after 2FA
"acceptationCharte": true, // required after 240
"accesstoken": "xxxxxxxx", // only for renewal
"typeCompte": "E", // only for renewal
"accessTokenQR": "" // only for QR login
}
Response
{
"code": 200,
"message": "",
"data": {
"changementMDP": false, // The password expired: change it
"nbJourMdpExire": 0, // Days before it expires
"isBloque": false,
"urlUnblock": "",
"accounts": [ // One per linked login
{
"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
}
]
}
}
Objects: Module, IndividualSettings, Profile, OAuthParams.
Response 202 Β· first login
{
"code": 202,
"message": "",
"data": {
"login": "jdupont", // Provisional identifiant
"motDePasse": "xxxxxxxx", // Provisional password
"niveauMdp": 2, // Password strength required for the new password
"questionsPossibles": [ "" ], // Secret questions to choose from
"id": β¦, // same as Account
"idLogin": β¦,
"uid": β¦,
"identifiant": β¦,
"typeCompte": β¦,
"codeOgec": β¦,
"main": β¦,
"socketToken": β¦,
"nom": β¦,
"prenom": β¦,
"nomEtablissement": β¦
}
}
Create the account: First login
Response 240 Β· charter
{
"code": 240,
"message": "",
"data": {
"charte": "β¦" // Charter text to display (HTML)
}
}
Show it, then resend the same login with acceptationCharte: true
Response 250 Β· 2FA required
{
"code": 250,
"message": "",
"data": {
"totp": false // optional. true: ask for a TOTP code
}
}
Use the temporary X-Token of this response: QCM or TOTP
Error codes
| Code | Meaning |
|---|---|
202 | First login: create the account |
220 | Wrong answer to the secret question |
221 | Identifiant already personalised |
235 | Identifiant already exists |
250 | 2FA required |
401 520 525 | Token invalid or expired |
403 | Forbidden action |
500 | Unexpected server error |
505 | Labelled βbad confirmation passwordβ by the app |
506 | Invalid SMS code |
508 509 511 514 517 519 521 581 582 | The app shows the server's message |
516 | βThis site is currently closedβ |
518 | βYour user record does not existβ |
526 | Access token invalid |
580 | Error while sending the message |
530 535 585 600 | Named in the app (DeniedAccess, NotExported, NotAvailable, UserTypeNotSupported), no handling |
info
- Replace your token with the
X-Tokenof every response that has one. - Send back any
2FA-Tokenresponse header on later requests (set by the server, opaque). isBloque,urlUnblockandcnilare returned but not used by the app.- On the login screen, any code the app does not handle shows βinvalid identifiant or passwordβ.