TOTP
Time-based One-time Password
Parameters
Name |
In |
Type |
Required |
Description |
username |
path |
string |
true |
a username of Grupo Mamovil |
org |
path |
string |
true |
a orgID of Grupo Mamovil |
body |
body |
GenerateOTPRequest |
false |
Language of communication |
1
2
3
4
|
{
"language": "es",
"hint": "user@masmovil.com"
}
|
Name |
Type |
Required |
Description |
language |
string |
false |
Customer’s preferred language for communications |
hint |
string |
false |
Customer’s preferred channel to send otp |
Request example
1
2
3
4
5
6
7
8
9
10
|
curl -X POST https://credentials.masstack.com/v1/orgs/{org}/credentials/{username}/totp \
-H "Content-Type: application/json" \
-H "Accept: image/png" \
-H "Authorization: Bearer {access-token}" \
--data-raw "{
'language': 'es',
'hint': 'user@masmovil.com'
}"
|
Parameters
Name |
In |
Type |
Required |
Description |
username |
path |
string |
true |
a username of Grupo Mamovil |
org |
path |
string |
true |
a orgID of Grupo Mamovil |
Request example
1
2
3
4
5
|
curl -X GET https://credentials.masstack.com/v1/orgs/{org}/credentials/{username}/totp \
-H "Accept: image/png" \
-H "Authorization: Bearer {access-token}"
|
Parameters
Name |
In |
Type |
Required |
Description |
username |
path |
string |
true |
a username of Grupo Mamovil |
org |
path |
string |
true |
a orgID of Grupo Mamovil |
body |
body |
ValidateOTPRequest |
true |
Validate TOTP |
1
2
3
|
{
"code": "280597"
}
|
Name |
Type |
Required |
Description |
code |
string |
false |
OTP to validate |
Request example
1
2
3
4
5
6
7
8
9
|
curl -X PUT https://credentials.masstack.com/v1/orgs/{org}/credentials/{username}/totp \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}" \
--data-raw "{
'code': '280597'
}"
|
Parameters
Name |
In |
Type |
Required |
Description |
username |
path |
string |
true |
a username of Grupo Mamovil |
org |
path |
string |
true |
a orgID of Grupo Mamovil |
Request example
1
2
3
4
5
|
curl -X POST https://credentials.masstack.com/v1/orgs/{org}/credentials/{username}/totp/passcode \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"
|