Register
POST
https://nekoya.moe.team/api/register
Request Body
{
"message": "Register Verification Sent ~"
}
{
"message": "Bad Request"
}
Login
Account without 2FA Enabled
POST
https://nekoya.moe.team/api/login
Request Body
{
"id": 29,
"first_name": "Celia",
"last_name": "Claire",
"email": "celia@moe.team",
"verify": true,
"otp": false,
"session_token": "2RBHSp3I8jjDzjuKaXXDWadJqRkJ1M3Q8nTmF9mioAL73OVZO8zc73sg4VBCVLQeXQRtbXZ6gQ5r1vjupkzoZP1HiRBXgHw74O7eKki6SPHIDYuxVfAdn6jPZ76HRRqI1jR1aKOdhwMq5RgOK7eMB5HEUKNu6gHIQkncoxRxz1eh5QGwGa9vYPW7TE3izEDbkGEqlIbnGf6O9foTty5HiJilPLtgVFvHUSoN6t7yDMXy2NjI0a4bKu5Pb6de0inh"
}
{
"message": "Sorry Your email is not registered in our system"
}
{
"message": "Sorry You haven't verified your email"
}
{
"message": "Bad Request"
}
{
"message": "Unauthorized"
}
Account with 2FA Enabled
POST
https://nekoya.moe.team/api/login
Request Body
{
"message": "OTP Verification Sent ~",
"otp": true,
"token": "Xb5VNMMfoWZyHf22EMS3MjmgFdjDnAPTM3OoCh3CYP8sF6ospVzAaTjCPVM5FM5c"
}
{
"message": "Sorry You haven't verified your email"
}
{
"message": "Sorry Your email is not registered in our system"
}
{
"message": "Bad Request"
}
{
"message": "Unauthorized"
}
OTP
Submit OTP
POST
https://nekoya.moe.team/api/otp-submit
Request Body
{
"id": 29,
"first_name": "Celia",
"last_name": "Claire",
"email": "celia@moe.team",
"verify": true,
"otp": true,
"session_token": "2RBHSp3I8jjDzjuKaXXDWadJqRkJ1M3Q8nTmF9mioAL73OVZO8zc73sg4VBCVLQeXQRtbXZ6gQ5r1vjupkzoZP1HiRBXgHw74O7eKki6SPHIDYuxVfAdn6jPZ76HRRqI1jR1aKOdhwMq5RgOK7eMB5HEUKNu6gHIQkncoxRxz1eh5QGwGa9vYPW7TE3izEDbkGEqlIbnGf6O9foTty5HiJilPLtgVFvHUSoN6t7yDMXy2NjI0a4bKu5Pb6de0inh"
}
{
"message": "Bad Request"
}
{
"message": "Invalid OTP Code"
}
Enable / Disable OTP
POST
https://nekoya.moe.team/api/otp-toggle
Query Parameters
{
"message": "Success set OTP to true",
"otp": true
}
{
"message": "Bad Request"
}
{
"message": "Unauthorized"
}
Verify Account (Mail)
POST
https://nekoya.moe.team/api/verify-mail
Request Body
{
"message": "Verified ~"
}
{
"message": "Bad Request"
}
{
"message": "Forbidden"
}
Reset Password
POST
https://nekoya.moe.team/api/request-reset-password
Request Body
{
"message": "Reset Password Verification Sent ~"
}
{
"message": "Bad Request"
}
{
"message": "Sorry Your email is not registered in our system"
}
POST
https://nekoya.moe.team/api/reset-password
Query Parameters
Request Body
{
"message": "Success Reset Password ~"
}
{
"message": "Unauthorized"
}
{
"message": "Bad Request"
}
Active Sessions
Get All of Active Sessions
POST
https://nekoya.moe.team/api/sessions
Query Parameters
[
{
"user_agent": "Mozilla/5.0 (Linux; Android 12; M2012K11AG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Mobile Safari/537.36",
"ip": "12.26.220.109",
"session": "5ES9v6ekrGuuuKEDOpk2COGlmchHldplY10PnIIOuMUVpw32FsJy9aniQyX7RzeVan3muRWlKf02pWnIua127PKF0uPLxEccic8x5VFlN3OsyNFeJM8mdKAduRhwCIcID57vBanPrrYQ5vqv0FGbWcl29rtXk40YDUFvYoqy2VtBx5Us2sW1HYMT5EFrwC7H0T75kyRqL1ZmSJLMLKgPoUkhxOa1AMqqdy2dbSke8pOLQo20B7bgvEmxxyKcrV9C"
}
]
{
"message": "Bad Request"
}
{
"message": "Unauthorized"
}