Authentication

Register

POST https://nekoya.moe.team/api/register

Headers

NameTypeDescription

Content-Type*

String

application/x-www-form-urlencoded

Request Body

NameTypeDescription

email*

String

xxx@example.com

password*

String

1 - 64 string characters

first_name*

String

First Name

last_name*

String

Last Name

{
    "message": "Register Verification Sent ~"
}

Login

Account without 2FA Enabled

POST https://nekoya.moe.team/api/login

Headers

NameTypeDescription

Content-Type*

String

application/x-www-form-urlencoded

Request Body

NameTypeDescription

email*

String

xxx@example.com

password*

String

1 - 64 string characters

ua

String

User Agent

ip

String

IP Address

{
    "id": 29,
    "first_name": "Celia",
    "last_name": "Claire",
    "email": "celia@moe.team",
    "verify": true,
    "otp": false,
    "session_token": "2RBHSp3I8jjDzjuKaXXDWadJqRkJ1M3Q8nTmF9mioAL73OVZO8zc73sg4VBCVLQeXQRtbXZ6gQ5r1vjupkzoZP1HiRBXgHw74O7eKki6SPHIDYuxVfAdn6jPZ76HRRqI1jR1aKOdhwMq5RgOK7eMB5HEUKNu6gHIQkncoxRxz1eh5QGwGa9vYPW7TE3izEDbkGEqlIbnGf6O9foTty5HiJilPLtgVFvHUSoN6t7yDMXy2NjI0a4bKu5Pb6de0inh"
}

Account with 2FA Enabled

POST https://nekoya.moe.team/api/login

Headers

NameTypeDescription

Content-Type*

String

application/x-www-form-urlencoded

Request Body

NameTypeDescription

email*

String

xxx@example.com

password*

String

1 - 64 string characters

ua

String

User Agent

ip

String

IP Address

{
    "message": "OTP Verification Sent ~",
    "otp": true,
    "token": "Xb5VNMMfoWZyHf22EMS3MjmgFdjDnAPTM3OoCh3CYP8sF6ospVzAaTjCPVM5FM5c"
}

OTP

Submit OTP

POST https://nekoya.moe.team/api/otp-submit

Headers

NameTypeDescription

Content-Type*

String

application/x-www-form-urlencoded

Request Body

NameTypeDescription

token*

String

Encrypted String

code*

OTP Code (6 digit)

{
    "id": 29,
    "first_name": "Celia",
    "last_name": "Claire",
    "email": "celia@moe.team",
    "verify": true,
    "otp": true,
    "session_token": "2RBHSp3I8jjDzjuKaXXDWadJqRkJ1M3Q8nTmF9mioAL73OVZO8zc73sg4VBCVLQeXQRtbXZ6gQ5r1vjupkzoZP1HiRBXgHw74O7eKki6SPHIDYuxVfAdn6jPZ76HRRqI1jR1aKOdhwMq5RgOK7eMB5HEUKNu6gHIQkncoxRxz1eh5QGwGa9vYPW7TE3izEDbkGEqlIbnGf6O9foTty5HiJilPLtgVFvHUSoN6t7yDMXy2NjI0a4bKu5Pb6de0inh"
}

Enable / Disable OTP

POST https://nekoya.moe.team/api/otp-toggle

Query Parameters

NameTypeDescription

key*

String

Encrypted String

Headers

NameTypeDescription

Content-Type*

String

application/x-www-form-urlencoded

{
    "message": "Success set OTP to true",
    "otp": true
}

Verify Account (Mail)

POST https://nekoya.moe.team/api/verify-mail

Headers

NameTypeDescription

Content-Type*

String

application/x-www-form-urlencoded

Request Body

NameTypeDescription

token*

String

Encrypted String

{
    "message": "Verified ~"
}

Reset Password

POST https://nekoya.moe.team/api/request-reset-password

Headers

NameTypeDescription

Content-Type*

String

application/x-www-form-urlencoded

Request Body

NameTypeDescription

email*

String

xxx@example.com

{
    "message": "Reset Password Verification Sent ~"
}

POST https://nekoya.moe.team/api/reset-password

Query Parameters

NameTypeDescription

token*

String

Encrypted String

Headers

NameTypeDescription

Content-Type*

String

application/x-www-form-urlencoded

Request Body

NameTypeDescription

password*

String

1 - 64 string characters

{
    "message": "Success Reset Password ~"
}

Active Sessions

Get All of Active Sessions

POST https://nekoya.moe.team/api/sessions

Query Parameters

NameTypeDescription

key*

String

Encrypted String

Headers

NameTypeDescription

Content-Type*

String

application/x-www-form-urlencoded

[
    {
        "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"
    }
]

Last updated