Submit your login credentials to generate a session id which can be used for validating requests.
Tries to authenticate without system using the provided login credentials.
application/json
POST
/login
cURL (application/json)
curl \
--request POST 'https://my.interserver.net/apiv2/login' \
--header "Content-Type: application/json" \
--data '{"login":"user@domain.com","passwd":"mypassword","remember":"true","g-recaptcha-response":{"dep":{"n":0,"w":0},"_value":"zzzzz","__v_isRef":true,"_rawValue":"zzzzz","__v_isShallow":false}}'
curl \
--request POST 'https://my.interserver.net/apiv2/login' \
--header "Content-Type: multipart/form-data" \
--form "login=user@domain.com" \
--form "passwd=mypassword" \
--form "remember=true" \
--form 'g-recaptcha-response={"dep":{"n":0,"w":0},"_value":"zzzzz","__v_isRef":true,"_rawValue":"zzzzz","__v_isShallow":false}'
Request example
{
"login": "user@domain.com",
"passwd": "mypassword",
"remember": "true",
"g-recaptcha-response": {
"dep": {
"n": 0,
"w": 0
},
"_value": "zzzzz",
"__v_isRef": true,
"_rawValue": "zzzzz",
"__v_isShallow": false
}
}
Response examples (200)
{
"ima": "client",
"gravatar": "https://gravatar.com/user/image.png",
"sessionId": "zzzzzzzzzzzzzz",
"account_id": 123,
"account_lid": "my@user.com"
}
Response examples (402)
{
"field": "2fa",
"message": "missing 2fa"
}