Nekoya
  • Welcome to Nekoya API!
  • Get Started
  • Reference
    • API Reference
      • Product
      • Authentication
      • Transaction
      • Subscribe
Powered by GitBook
On this page
  • Register
  • Login
  • Account without 2FA Enabled
  • Account with 2FA Enabled
  • OTP
  • Submit OTP
  • Enable / Disable OTP
  • Verify Account (Mail)
  • Reset Password
  • Active Sessions
  • Get All of Active Sessions
  1. Reference
  2. API Reference

Authentication

Register

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

Headers

Name
Type
Description

Content-Type*

String

application/x-www-form-urlencoded

Request Body

Name
Type
Description

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 ~"
}
{
    "message": "Bad Request"
}

Login

Account without 2FA Enabled

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

Headers

Name
Type
Description

Content-Type*

String

application/x-www-form-urlencoded

Request Body

Name
Type
Description

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

Headers

Name
Type
Description

Content-Type*

String

application/x-www-form-urlencoded

Request Body

Name
Type
Description

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

Headers

Name
Type
Description

Content-Type*

String

application/x-www-form-urlencoded

Request Body

Name
Type
Description

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"
}
{
    "message": "Bad Request"
}
{
    "message": "Invalid OTP Code"
}

Enable / Disable OTP

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

Query Parameters

Name
Type
Description

key*

String

Encrypted String

Headers

Name
Type
Description

Content-Type*

String

application/x-www-form-urlencoded

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

Verify Account (Mail)

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

Headers

Name
Type
Description

Content-Type*

String

application/x-www-form-urlencoded

Request Body

Name
Type
Description

token*

String

Encrypted String

{
    "message": "Verified ~"
}
{
    "message": "Bad Request"
}
{
    "message": "Forbidden"
}

Reset Password

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

Headers

Name
Type
Description

Content-Type*

String

application/x-www-form-urlencoded

Request Body

Name
Type
Description

email*

String

xxx@example.com

{
    "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

Name
Type
Description

token*

String

Encrypted String

Headers

Name
Type
Description

Content-Type*

String

application/x-www-form-urlencoded

Request Body

Name
Type
Description

password*

String

1 - 64 string characters

{
    "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

Name
Type
Description

key*

String

Encrypted String

Headers

Name
Type
Description

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"
    }
]
{
    "message": "Bad Request"
}
{
    "message": "Unauthorized"
}
PreviousProductNextTransaction

Last updated 3 years ago