Deskhero Developer Hub
Back to deskhero.com
Account

Cognito login

Signs a user in with email and password, issues the authentication cookie, opens a session and returns the login state, including whether a multi factor authentication challenge is required. Failed attempts are counted per email address and the endpoint starts refusing once too many pile up.

POST /api/sys/v{version:apiVersion}/account/cognito_login
Authorisation
No authentication needed

Request arguments

Name Type Source
inputDTO_cognito_loginBody
Request body example

Response

Status
200 (OK)
Type
DTO_logged_in_response
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 429 (TooManyRequests)
Response body example
DTO_cognito_login
NameTypeReadOnlyDescription
emailStringEmail
passwordStringPassword
remember_meBooleanRemember me
DTO_logged_in_response
NameTypeReadOnlyDescription
challenge_mfaBooleanChallenge mfa
actionENUM logged_in_response_actionAction
info_messagesString[]Can contain for example "Joined tenant". "Auth method Google added"
warning_messagesString[]Warning messages
redirect_urlStringRedirect url
verification_hashStringVerification hash
emailStringEmail
ENUM logged_in_response_action
ValueNameDescription
0UNKNOWNUNKNOWN
1REDIRECTREDIRECT
2SELECT_TENANTSELECT_TENANT
3CREATE_TENANTCREATE_TENANT
4CONTINUE_TO_APPCONTINUE_TO_APP
5LOGINLOGIN
6VERIFY_EMAILVERIFY_EMAIL

Generated Aug 4, 2026 18:37