Description

To initiate the account recovery process, use this method with one of the codes provided in the response during the configuration of the initial Multi-Factor Authentication (MFA) channel.

Please note that this method validates the user’s credentials beforehand. Therefore, if the user’s credentials are incorrect, an error response may be received from the login endpoint.

Following the use of this method, utilize the granted access_token to update or delete your MFA channel. This will allow access to your account through the regular flow.

Endpoint URL:

 POST https://{your-endpoint-domain.com}/activityid/v1/mfa/consume

Request parameters

ParameterDescriptionTypeRequired
Authorization“Bearer app_token” Literal text Bearer followed by app_token that is the token obtained from /oauth2/token endpointstringyes
Content-TypeThe type of content that will be used for requests to be JSONstringyes
AcceptThe type of content that will be used for responses to be JSONstringyes
FromName of the entry pointstringyes
Accept-LanguageLanguage for this requestLocaleno

Query string parameters

Request Example

ParameterDescriptionTypeRequiredValue
actor.idapp_id of the application you are using to log userstringyesapp id
actor.objectTypeType of the object which represents the actor.stringyes‘person’
verbVerb used for recovering the accountstringyes‘consume’
object.objectTypeObjectType represents the userstringyes‘user’
object.passwordPassword of the user. it must be send plainstringyesuser password
object.ids.emailStructure of email identifier. node name must be “email”structyesemail
object.ids
.email.objectType
ObjectType represents the id of the userstringyes‘user_id’
object.ids.email.valueEmail valuestringyesemail value
source.idType of device doing the activitystringyes‘unknown’ | ‘pc’ | ‘mobile’ | ‘tablet’ | ‘game_console’ | ‘itv’
source.objectTypeType of sourcestringyes‘device’
context.mfa_channelName of the MFA channelstringyes‘sms’

Response examples

Response: MFA Account Recovered

resultCommon http resultstruct
result.statusHttp codeinteger
result.messageA description that describes the result of the operationstring

Response codes

CodeTypeDescription
400ErrorBad Request: The request could not be understood by the server due to malformed syntax
401ErrorUnauthorized: authentication is required and has failed or has not yet been provided (token is invalid, etc)
417ErrorMFA Error: There is a problem with MFA, you will receive a detailed error description
500ErrorInternal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request
504ErrorGateway TimeoutService can not contact with oauth server to do some internal operations
200SuccessAccount Recovered successfully