Skip to main content
Version: 8.1.0

πŸ—οΈ 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",
"email": "[email protected]",
"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

CodeMeaning
202First login: create the account
220Wrong answer to the secret question
221Identifiant already personalised
235Identifiant already exists
2502FA required
401 520 525Token invalid or expired
403Forbidden action
500Unexpected server error
505Labelled β€œbad confirmation password” by the app
506Invalid SMS code
508 509 511 514 517 519 521 581 582The app shows the server's message
516β€œThis site is currently closed”
518β€œYour user record does not exist”
526Access token invalid
580Error while sending the message
530 535 585 600Named in the app (DeniedAccess, NotExported, NotAvailable, UserTypeNotSupported), no handling
info
  • Replace your token with the X-Token of every response that has one.
  • Send back any 2FA-Token response header on later requests (set by the server, opaque).
  • isBloque, urlUnblock and cnil are returned but not used by the app.
  • On the login screen, any code the app does not handle shows β€œinvalid identifiant or password”.