Flows

API for managing credentials flows operations, to simplify CRUD operations


Parameters

Name In Type Required Description
org path string true a orgID of Grupo Mamovil
body body ChangePasswordRequest false ‘none’

Request body - instance of ChangePasswordRequest

1
2
3
4
5
6
{
  "language": "string",
  "new_password": "string",
  "old_password": "string",
  "username": "string"
}
Name Type Required Description
language string false Customer’s preferred language for communications
new_password string true New password
old_password string true Old password
username string true Customer username

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

curl -X POST https://credentials.masstack.com/v1/orgs/{org}/flows/change_password \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'language': 'string',
  'new_password': 'string',
  'old_password': 'string',
  'username': 'string'
}" 

Responses

Code Meaning Description Schema
204 No Content Updated None
403 Forbidden Error response ErrorDto
404 Not Found Error response ErrorDto
500 Internal Server Error Error response ErrorDto
502 Bad Gateway Error response ErrorDto
504 Gateway Time-out Error response ErrorDto

Parameters

Name In Type Required Description
org path string true a orgID of Grupo Mamovil
body body CreateUsernameRequest false ‘none’

Request body - instance of CreateUsernameRequest

1
2
3
4
5
{
  "customer_id": "string",
  "msisdn": "string",
  "username": "string"
}
Name Type Required Description
customer_id string true Internal identification of the customer
msisdn string true Msisdn belonging to the customer
username string true Username to be linked to the customer

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

curl -X POST https://credentials.masstack.com/v1/orgs/{org}/flows/create_username \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'customer_id': 'string',
  'msisdn': 'string',
  'username': 'string'
}" 

Responses

Code Meaning Description Schema
201 Created Security token to set or change password TokenResponse
403 Forbidden Error response ErrorDto
404 Not Found Error response ErrorDto
500 Internal Server Error Error response ErrorDto
502 Bad Gateway Error response ErrorDto
504 Gateway Time-out Error response ErrorDto

Parameters

Name In Type Required Description
org path string true a orgID of Grupo Mamovil
body body ResetPasswordRequest false ‘none’

Request body - instance of ResetPasswordRequest

1
2
3
4
5
{
  "language": "string",
  "username": "string",
  "hint": "user@masmovil.com"
}
Name Type Required Description
language string false Customer’s preferred language for communications
username string true Customer username
hint string false Customer’s preferred channel to send otp

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

curl -X POST https://credentials.masstack.com/v1/orgs/{org}/flows/reset_password \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'language': 'string',
  'username': 'string',
  'hint': 'user@masmovil.com'
}" 

Responses

Code Meaning Description Schema
204 No Content Updated None
403 Forbidden Error response ErrorDto
404 Not Found Error response ErrorDto
405 Method Not Allowed Error response ErrorDto
500 Internal Server Error Error response ErrorDto
502 Bad Gateway Error response ErrorDto
504 Gateway Time-out Error response ErrorDto

Endpoints

Credentials

    Flows

      Tokens

        Magic links

          OTP

            TOTP

              Devices