Client Authentication data models

getAuthenticationState — 200 response

Successfully retrieve info about the identity of the client.

PropertyTypeRequiredConstraintsDescription
appIdstringNoread-only (server-generated)ID of app used. This property is present if token is associated with a user authenticated via an app.
deviceIdintegerNoread-only (server-generated)This property is present if token is associated with a device.
expirationTimestringNoread-only (server-generated); format: date-timeThis property is present if token has an expiration time.
projectIdintegerNoread-only (server-generated)This property is present if token is associated with a project.
projectKeyNamestringNoread-only (server-generated)This property is present if token is assocaited with a project API key.
sudoerstringNoread-only (server-generated)This property is present if token is generated via sudo.
typeunknownYesread-only (server-generated); one of: user, device, project key, nobodyType of client entity, or 'nobody' if client is not authenticated.
userIdintegerNoread-only (server-generated)This property is present if token is associated with a user.

getAuthenticationState — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

getAuthenticationState — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticationSudo — request

Request body for Authentication by sudo.

PropertyTypeRequiredConstraintsDescription
tokenstringYesSudo authorization token.

authenticationSudo — 200 response

Sudo access granted.

PropertyTypeRequiredConstraintsDescription
auth2FTokenstringNoread-only (server-generated)Token used for completing the two-factor authentication process. Token will expire within 3 minutes
expirationTimestringNoread-only (server-generated); format: date-timeThis property is present if token has an expiration time.
sudoerstringNoread-only (server-generated)This property is present if client is authenticated via sudo.
tokenstringNoread-only (server-generated)Access token to be used in the HTTP Authorization header in future API requests.
userIdintegerNoread-only (server-generated)This property is present if token is associated with a user.

authenticationSudo — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticationSudo — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticationSudo — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticationSudo — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticationSudo — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateSudoAuthentication — request

Request body for Initiate sudo authentication.

PropertyTypeRequiredConstraintsDescription
sudoerstringYesIdentity of the administrator requesting sudo access.
targetAppIdstringYesID of the app expected to be used to access the API.
targetUserIdintegerYesUser ID of the sudo target.

initiateSudoAuthentication — 200 response

Sudo authorization token issued and returned in the response body.

PropertyTypeRequiredConstraintsDescription
tokenstringNoread-only (server-generated)The sudo authorization token itself.

initiateSudoAuthentication — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateSudoAuthentication — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateSudoAuthentication — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateSudoAuthentication — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateSudoAuthentication — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticateUser — request

Request body for Authenticate a user.

PropertyTypeRequiredConstraintsDescription
appIdstringNoID of the app being used to access the API. Required except for BYOU projects.
codestringNoAuth code sent to user via SMS. Required only for projects with phone number-based user accounts.
emailstringNoEmail address of user to be authenticated. Required only for projects with email address-based user accounts.
externalKeystringNoExternal key associated with the user to be authenticated. Used only for BYOU projects.
passwordstringNoPassword of user to be authenticated. Required only for projects with email address-based user accounts.
phoneNumberstringNoPhone number of user to be authenticated. Required only for projects with phone number-based user accounts.
projectIdintegerYesID of project to which the user belongs.
userIdintegerNoID of user to be authenticated. Used only for BYOU projects.

authenticateUser — 200 response

User is successfully authenticated, or if the user has activated two-factor authentication, user shall proceed to finish authentication by using the token included in the returned object.

PropertyTypeRequiredConstraintsDescription
auth2FTokenstringNoread-only (server-generated)Token used for completing the two-factor authentication process. Token will expire within 3 minutes
expirationTimestringNoread-only (server-generated); format: date-timeThis property is present if token has an expiration time.
sudoerstringNoread-only (server-generated)This property is present if client is authenticated via sudo.
tokenstringNoread-only (server-generated)Access token to be used in the HTTP Authorization header in future API requests.
userIdintegerNoread-only (server-generated)This property is present if token is associated with a user.

authenticateUser — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticateUser — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticateUser — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticateUser — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

authenticateUser — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

activateUserAccount — request

Request body for Activate user account.

PropertyTypeRequiredConstraintsDescription
namestringYesUser's name to be associated with the account.
passwordstringYesPassword for logging into the account.
tokenstringYesActivation token emailed to user.

activateUserAccount — 200 response

User's account has be activated.

PropertyTypeRequiredConstraintsDescription
emailstringNo
projectIdintegerNo

activateUserAccount — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

activateUserAccount — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

activateUserAccount — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

activateUserAccount — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

activateUserAccount — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeTwoFactorAuthentication — request

Request body for Complete two-factor authentication.

PropertyTypeRequiredConstraintsDescription
auth2FTokenstringYesToken obtained from the previous step of authentication.
codestringYesTime-based one-time passcode from an authenticator application.

completeTwoFactorAuthentication — 200 response

User is successfully authenticated and an API token is issued.

PropertyTypeRequiredConstraintsDescription
auth2FTokenstringNoread-only (server-generated)Token used for completing the two-factor authentication process. Token will expire within 3 minutes
expirationTimestringNoread-only (server-generated); format: date-timeThis property is present if token has an expiration time.
sudoerstringNoread-only (server-generated)This property is present if client is authenticated via sudo.
tokenstringNoread-only (server-generated)Access token to be used in the HTTP Authorization header in future API requests.
userIdintegerNoread-only (server-generated)This property is present if token is associated with a user.

completeTwoFactorAuthentication — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeTwoFactorAuthentication — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeTwoFactorAuthentication — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeTwoFactorAuthentication — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeTwoFactorAuthentication — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

verifyUserEmailAddress — request

Request body for Verify user email address.

PropertyTypeRequiredConstraintsDescription
tokenstringYesVerification token emailed to user.

verifyUserEmailAddress — 200 response

User's identity has been verified.

PropertyTypeRequiredConstraintsDescription
emailstringNo
projectIdintegerNo

verifyUserEmailAddress — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

verifyUserEmailAddress — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

verifyUserEmailAddress — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

verifyUserEmailAddress — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

verifyUserEmailAddress — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserEmailVerification — request

Request body for Initiate user email verification.

PropertyTypeRequiredConstraintsDescription
emailstringYesEmail address of user.
projectIdintegerYesID of project to which the user belongs.

initiateUserEmailVerification — 200 response

An email has been sent to the specified email address.

PropertyTypeRequiredConstraintsDescription
emailstringNo

initiateUserEmailVerification — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserEmailVerification — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserEmailVerification — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserEmailVerification — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserEmailVerification — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

verifyNewUserEmail — request

Request body for Verify new user email.

PropertyTypeRequiredConstraintsDescription
tokenstringYesActivation token emailed to user.

verifyNewUserEmail — 200 response

Successfully verified user's new email and updated in the database.

PropertyTypeRequiredConstraintsDescription
emailstringNo
projectIdintegerNo

verifyNewUserEmail — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

verifyNewUserEmail — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

verifyNewUserEmail — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeAuthenticationOpenIDConnect — request

Request body for Complete authentication by OpenID Connect.

PropertyTypeRequiredConstraintsDescription
appIdstringYesID of the app the user is using.
codestringYesAuthorization code embedded in the URL redirected from the Identity Provider after the user has consented to share information with MODE.
methodIdstringYesID of the project's User Authentication Method that is being used.
projectIdintegerYesID of project to which the user belongs.
redirectUrlstringYesThe same redirect URL that was used to obtain the authorization URL. It is needed by the Identity Provider to verify the authorization code.

completeAuthenticationOpenIDConnect — 200 response

User has been successfully authenticated.

PropertyTypeRequiredConstraintsDescription
auth2FTokenstringNoread-only (server-generated)Token used for completing the two-factor authentication process. Token will expire within 3 minutes
expirationTimestringNoread-only (server-generated); format: date-timeThis property is present if token has an expiration time.
sudoerstringNoread-only (server-generated)This property is present if client is authenticated via sudo.
tokenstringNoread-only (server-generated)Access token to be used in the HTTP Authorization header in future API requests.
userIdintegerNoread-only (server-generated)This property is present if token is associated with a user.

completeAuthenticationOpenIDConnect — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeAuthenticationOpenIDConnect — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeAuthenticationOpenIDConnect — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeAuthenticationOpenIDConnect — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

completeAuthenticationOpenIDConnect — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateAuthenticationOpenIDConnect — 200 response

The authorization URL has been returned.

PropertyTypeRequiredConstraintsDescription
authUrlstringNo

initiateAuthenticationOpenIDConnect — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateAuthenticationOpenIDConnect — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateAuthenticationOpenIDConnect — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateAuthenticationOpenIDConnect — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateAuthenticationOpenIDConnect — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

resetUserPassword — request

Request body for Reset user password.

PropertyTypeRequiredConstraintsDescription
newPasswordstringYesNew password for user's account.
tokenstringYesPassword reset token emailed to user.

resetUserPassword — 200 response

User's password has been updated.

PropertyTypeRequiredConstraintsDescription
emailstringNo
projectIdintegerNo

resetUserPassword — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

resetUserPassword — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

resetUserPassword — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

resetUserPassword — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

resetUserPassword — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiatePasswordResetUser — request

Request body for Initiate password reset for user.

PropertyTypeRequiredConstraintsDescription
emailstringYesEmail address of user.
projectIdintegerYesID of project to which the user belongs.

initiatePasswordResetUser — 200 response

An email has been sent to the specified email address.

PropertyTypeRequiredConstraintsDescription
emailstringNo

initiatePasswordResetUser — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiatePasswordResetUser — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiatePasswordResetUser — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiatePasswordResetUser — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiatePasswordResetUser — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserAuthSMS — request

Request body for Initiate user auth with SMS.

PropertyTypeRequiredConstraintsDescription
phoneNumberstringYesPhone number of user to be authenticated. It needs to be registered already on MODE cloud by Create User API call.
projectIdintegerYesID of project to which the user belongs.

initiateUserAuthSMS — 200 response

SMS message successfully sent.

PropertyTypeRequiredConstraintsDescription
recipientstringNoread-only (server-generated)Phone number receiving the SMS message.

initiateUserAuthSMS — 401 response

Authorization is required to access this resource.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserAuthSMS — 403 response

Request failed because of invalid data or denied permission.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserAuthSMS — 429 response

Request failed because of rate limit.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserAuthSMS — 500 response

An unexpected error has occurred.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

initiateUserAuthSMS — 503 response

The service is temporarily unavailable.

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.