Account management

Creation

Create a new account

POST https://api.naxalian.fr/accounts/create.php

Request Body

Name
Type
Description

nametag*

String

mail*

String

password*

String

Generate a token

POST https://api.naxalian.fr/accounts/login.php

Generates a valid token for 24 hours

Request Body

Name
Type
Description

userCredential*

String

It can be an id, a nametag or a mail

password*

String

Without hash or encoding

{
    "code" => 200,
    "userCredential" => {account id},
    "token" => {token}
}

Deletions

Delete an existing token

POST https://api.naxalian.fr/accounts/tokenDelete.php

Request Body

Name
Type
Description

token

String

A 64 characters long token

Delete an account

DELETE https://api.naxalian.fr/accounts/accountDelete.php

Request Body

Name
Type
Description

token*

String

userCredential*

String

It can be an id, a nametag or a mail

triangle-exclamation

Informations

Get informations on a user's account from a token

GET https://api.naxalian.fr/accounts/getUserinfoFromToken.php

Request Body

Name
Type
Description

token*

String

Update account's informations

POST https://api.naxalian.fr/accounts/updateUserinfo.php

Headers

Name
Type
Description

Authorization*

String

Your token

Request Body

Name
Type
Description

nametag

String

New nametag

mail

String

New mail

Update password

POST https://api.naxalian.fr/accounts/updatePassword.php

Headers

Name
Type
Description

Authorization*

String

Your token

Request Body

Name
Type
Description

oldPassword*

Current password

newPassword*

String

New password

Get all active sessions informations

GET https://api.naxalian.fr/accounts/getSessions.php

Headers

Name
Type
Description

Authorization*

String

Your token

Request Body

Name
Type
Description

String

Last updated