Misaka.io | Docs
Misaka.io | Docs
API Documentation
Change password POST
Confirm email POSTLogin with 2FA POSTLogin POSTLogout POSTRefresh user token POSTGet current user token POST
Get team members GETGet current available teams GET
List devices GET
Port info GETList ports GETPort transceiver metrics GETPort usage metrics GET
List services GET
List cross connects GET
Create IP announcements POSTDelete IP announcement DELETEGet IP announcements GETUpdate IP announcement PATCH
Lighthouse
Network Flow Timeseries POST
Event Attachment GETEvent Detail Related GETEvent List All GETEvent List Related GETEvent List Related Timeseries GET
AuthSession

Login

Login the current user

POST
/v3/session/login

Request Body

application/json

username?Username|Username

Email address, for backward compatibility, it won't be used if email is provided

email?Email|Email

Email address

password*string

Password

Length6 <= length
sliding?Sliding|Sliding

If true, a sliding token will be returned

Defaultfalse

Response Body

application/json

application/json

curl -X POST "https://api.misaka.io/v3/session/login" \  -H "Content-Type: application/json" \  -d '{    "password": "string"  }'
{
  "detail": "string",
  "user": {
    "id": 0,
    "email": "user@example.com",
    "avatar_url": "string",
    "username": "string",
    "first_name": "string",
    "last_name": "string",
    "display_name": "string",
    "country": "ZZ",
    "is_staff": true,
    "whmcs_uuid": "string",
    "services": [
      "string"
    ],
    "modules": [
      {
        "property1": "string",
        "property2": "string"
      }
    ],
    "teams": [
      {
        "id": "string",
        "name": "string",
        "is_admin": true
      }
    ]
  },
  "access": "string",
  "refresh": "string",
  "access_token": "string",
  "refresh_token": "string",
  "sliding_token": "string"
}
{
  "detail": "string"
}

How is this guide?

Last updated on

Login with 2FA POST

Previous Page

Logout POST

Next Page

curl -X POST "https://api.misaka.io/v3/session/login" \
  -H "Content-Type: application/json" \
  -d '{
    "password": "string"
  }'