π First login & recovery
Create the account (first login)β
Answer to a 202. Use the login and motDePasse of that response.
POST /logins.awp?verbe=post&v=8.1.0
data={
"login": "jdupont", // Provisional identifiant (from the 202)
"motDePasse": "xxxxxxxx", // Provisional password (from the 202)
"identifiant": "jdupont", // New username
"nouveauMotDePasse": "my_new_password", // New password, see the strength rules below
"confirmationMotDePasse": "my_new_password", // Same value
"portable": "0612345678", // Mobile phone
"questionSecrete": "Quel est le nom de votre animal ?", // One of questionsPossibles, or Autre
"autreQuestionSecrete": "", // required if Autre. Custom question
"reponse": "MΓ©dor" // Secret answer
}
Response 202 Β· Account created
{
"code": 202,
"message": "",
"data": {
"id": 1234 // > 0 when the account is created
}
}
Then log in with the new identifiant and password.
221Already personalised235Identifiant taken220Bad secret answer508Invalid email509Invalid phone
| niveauMdp | Rule |
|---|---|
1 | none |
2 | 8 characters |
3 | 10 characters with lowercase, uppercase, digits, symbols |
π Forgotten passwordβ
The mobile app opens https://api.ecoledirecte.com/mot-de-passe-oublie.awp. These are the calls behind that page.
Password recovery: startβ
The mobile app opens https://api.ecoledirecte.com/mot-de-passe-oublie.awp instead.
POST /recuperationmotdepasse.awp?verbe=get&v=8.1.0
data={
"key": "xxxxxxxx", // optional. Recovery key
"urlC": "xxxxxxxx", // optional. Recovery URL
}
β οΈ Not used by the mobile app.
Response
{
"code": 200,
"message": "",
"data": {
"modeReception": "mail",
"niveauMDPSecurite": 0,
"smsActif": false,
"comptes": []
}
}
Password recovery: send the codeβ
POST /recuperationmotdepasse.awp?verbe=post&v=8.1.0
data={
"question": "Quel est le nom de votre animal ?", // optional. Secret question
"ogec": "0123456A", // optional. School code
"reponse": "MΓ©dor", // optional. Secret answer
"modeReception": "mail", // optional
"idLogin": 1234567, // optional. Login id
"k": 0 // Anti-bot checksum, see below
}
β οΈ Not used by the mobile app.
506Invalid SMS code
k = (8 * minutes + 1 * hours + 0 * dayOfMonth) * secondsSince(1987-01-17 00:00, local time)
# parts of the app version "8.1.0"; "now" truncated to the minute
Reset the passwordβ
{typeReinit} is a field of the recovery state. Body: the whole recovery state.
POST /reinitialisationmotdepasse/{typeReinit}.awp?verbe=put&v=8.1.0
data={
"login": "jdupont",
"motDePasse": "xxxxxxxx",
"motDePasseConfirm": "",
"codeSms": "123456",
"idLogin": 1234567,
"key": "xxxxxxxx",
"urlC": "xxxxxxxx",
"ogec": "0123456A",
"question": "Quel est le nom de votre animal ?",
"reponse": "MΓ©dor",
"modeReception": "mail",
"modeSMS": false,
"typeReinit": "",
"smsActif": false,
"niveauMDPSecurite": 0
}
β οΈ Not used by the mobile app.
221Already personalised235Rejected:messageexplains.