Skip to main content

Authenticate user through FS service for web

Implementation Notes: This API requires a secure connection, passing password as a plain text. Also, application/json input in body is preferable. If login contains no domain, the configured one is added. If server returns HTTP error 400 with code=526 then valid captcha/captcha_id params are required to proceed.

POST /login
HTTP/1.1 200 OK
  1. Request fields
PathTypeDescription
loginStringFS login string.
passwordStringFS password string.
captchaStringCaptcha value from user input. Not required.
captcha_idStringCaptcha id obtained from /api/v1/auth/captcha request. Not required.
  1. Response structure
PathTypeDescription
tokenStringUser’s token for session.
  1. Example request
curl 'https://auth-stand.devoffice.ru/login' -H 'content-type: application/json' --data '{"login":"login@myoffice.ru","password":"password_for_user"}'
  1. Example response
HTTP/1.1 200 OK
Content-Length: 162
Content-Type: application/json
{
"token" : "O3232hw1p0Bx2gY2bFZ",
"success" : "true"
}