AuthSession
Login
Login the current user
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
Length
6 <= lengthsliding?Sliding|Sliding
If true, a sliding token will be returned
Default
falseResponse 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