Authentication
Complete a two-factor login
Changed onExchanges the mfa_token returned by login for an access token. code is either the 6-digit code from the authenticator app or one of the recovery codes issued at enrollment. The challenge is single-use and expires 5 minutes after login.
post/v1/authentication/mfa/verify
Request
- Base URLhttps://api.assinafy.com.br
- URLhttps://api.assinafy.com.br/v1/authentication/mfa/verify
- Authnone required
Request body
Example request
{
"code": "123456"
}Response
Access token, user and accounts
Example response
{
"status": 200,
"data": {
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
"user": {
"id": "bgjazeo5r9v2lq7l36dx48np",
"name": "John Smith",
"email": "example@example.com",
"telephone": "17989206641",
"government_id": "15774136604",
"has_accepted_terms": true,
"created_at": "2023-03-03T11:51:34Z"
},
"accounts": [
{
"id": "6401df46d6a6b0c692d9ec49",
"name": "JS",
"roles": [
"owner"
],
"is_delete_allowed": true,
"created_at": "2023-03-03T11:51:34Z"
}
]
}
}Changes
- info
endpoint added
- info