LOGIN

Use the login API to:

  • Get access to the site
  • Log in to the site
  • Logout from site

Auth Endpoints

Functionality Method Endpoint
access POST api/passport/access
login POST api/passport/login
logout GET api/passport/logout

Endpoints

Access

POST api/passport/access

Request Fields

Field Required/Optional Type Description
email required string The email of the user
password required string -

Response Fields

Response is an array of object:

Field Description
company The company object for user
company.createdDate The date of company creation on the Site-monitor server
company.created_at The date of company creation on the source server
company.id -
company.isRedpointCompany -
company.name -
company.server -
company.server.createdDate -
company.server.id -
company.server.module_error_count Count of module error
company.server.server_error_count Count of server error
company.server.status Maximum level of severity on the server
company.server.uid Server uid with length 19 chars
company.server.updatedDate -
company.uid The Site-monitor unique ID combined with server uid and company uid
company.updatedDate The date of company last update on the Site-monitor server
company.updated_at The date of company last update on the source server
createdDate The date of user creation on the Site-monitor server
created_at The date of user creation on the source server
email The email of the user
first_name The name of the user
id -
last_name The name of the user
password -
phone The phone number of the user
role The information about access of user on source server
role.createdDate -
role.id -
role.name String representation of role ('project system admin', ...)
role.uid The unique ID of role (22 chars)
role.updatedDate -
uid The Site-monitor unique ID combined with server uid and user uid
updatedDate The date of user last update on the Site-monitor server
updated_at The date of user last update on the source server

Errors

Error status Error type Error body Description
404 Not Found {"message": "User not found", "name": "NotFoundError"} The user with current credentials not found

Login

POST api/auth/log_in

Request Fields

Field Required/Optional Type Description
email required string The email of the user
password required string -
server_uid required string -

Response Fields

Field Description
company The company object for user
company.createdDate The date of company creation on the Site-monitor server
company.created_at The date of company creation on the source server
company.id -
company.isRedpointCompany -
company.name -
company.server -
company.server.createdDate -
company.server.id -
company.server.module_error_count Count of module error
company.server.server_error_count Count of server error
company.server.status Maximum level of severity on the server
company.server.uid Server uid with length 19 chars
company.server.updatedDate -
company.uid The Site-monitor unique ID combined with server uid and company uid
company.updatedDate The date of company last update on the Site-monitor server
company.updated_at The date of company last update on the source server
createdDate The date of user creation on the Site-monitor server
created_at The date of user creation on the source server
email The email of the user
first_name The name of the user
id -
last_name The name of the user
password -
phone The phone number of the user
role The information about access of user on source server
role.createdDate -
role.id -
role.name String representation of role ('project system admin', ...)
role.uid The unique ID of role (22 chars)
role.updatedDate -
uid The Site-monitor unique ID combined with server uid and user uid
updatedDate The date of user last update on the Site-monitor server
updated_at The date of user last update on the source server
Field Description
sm-session-cookie-id Cookie id for current user session
Path -
Expires The date of expiration of current user session
Secure -

Logout

GET api/passport/logout

Send current user cookie and make it expired for closing user session

results matching ""

    No results matching ""