Credentials
API for managing credentials CRUD
Parameters
Name
In
Type
Required
Description
username
path
string
true
a username of Grupo Masmovil
org
path
string
true
a orgID of Grupo Masmovil
Request example
1
2
3
4
5
curl -X DELETE https://credentials.masstack.com/v1/orgs/{ org} /credentials/{ username} \
-H "Accept: application/json" \
-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
Request example
1
2
3
4
5
curl -X GET https://credentials.masstack.com/v1/orgs/{ org} /credentials/{ username} \
-H "Accept: application/json" \
-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
InboundChangeStatusCredential
true
Password and security token.
1
2
3
4
{
"enabled" : true ,
"require2fa" : true
}
Name
Type
Required
Description
enabled
boolean
true
Enables or disables the credential
require2fa
boolean
false
If true the 2fa is required
Request example
1
2
3
4
5
6
7
8
9
10
curl -X PATCH https://credentials.masstack.com/v1/orgs/{ org} /credentials/{ username} \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}" \
--data-raw "{
'enabled': true,
'require2fa': true
}"
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} \
-H "Accept: application/json" \
-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
InboundCredential
true
Password and security token.
1
2
3
4
{
"password" : "string" ,
"token" : "string"
}
Name
Type
Required
Description
password
string
true
New password for the customer credential
token
string
true
Security token issued in order to change passwords
Request example
1
2
3
4
5
6
7
8
9
10
curl -X PUT https://credentials.masstack.com/v1/orgs/{ org} /credentials/{ username} \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}" \
--data-raw "{
'password': 'string',
'token': 'string'
}"
Parameters
Name
In
Type
Required
Description
username
path
string
true
a username of Grupo Masmovil
org
path
string
true
Origin organization ID
body
body
InboundMigrateCredential
true
Destination organization for the credential move
1
2
3
{
"destinationOrg" : "yoigo"
}
Name
Type
Required
Description
destinationOrg
string
true
Destination organization ID
Request example
1
2
3
4
5
6
7
8
9
curl -X POST https://credentials.masstack.com/v1/orgs/{ org} /credentials/move/{ username} \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}" \
--data-raw "{
'destinationOrg': 'yoigo'
}"
Parameters
Name
In
Type
Required
Description
username
path
string
true
a username of Grupo Masmovil
org
path
string
true
Origin organization ID
body
body
InboundMigrateCredential
true
Destination organization for the credential copy
1
2
3
{
"destinationOrg" : "yoigo"
}
Name
Type
Required
Description
destinationOrg
string
true
Destination organization ID
Request example
1
2
3
4
5
6
7
8
9
curl -X POST https://credentials.masstack.com/v1/orgs/{ org} /credentials/copy/{ username} \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}" \
--data-raw "{
'destinationOrg': 'yoigo'
}"
Parameters
Name
In
Type
Required
Description
username
path
string
true
a username of Grupo Masmovil
org
path
string
true
Organization ID (context for the request)
Request example
1
2
3
4
5
curl -X GET https://credentials.masstack.com/v1/orgs/{ org} /credentials/discover/{ username} \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"
Custom schema example
1
2
3
4
5
6
7
8
9
10
11
12
13
[
{
"org" : "masmovil" ,
"id" : "123e4567-e89b-12d3-a456-426614174000" ,
"created_at" : "2019-08-24T14:15:22Z" ,
"enabled" : true ,
"require2fa" : true ,
"last_login_at" : "2019-08-24T14:15:22Z" ,
"updated_at" : "2019-08-24T14:15:22Z" ,
"username" : "heimdall@masmovil.com" ,
"crm" : "qvantel"
}
]
Name
Type
Required
Description
org
string
true
Organization where the credential was found
id
string
false
Credential ID
created_at
string(date-time)
true
Creation date
enabled
boolean
true
If true it’s enabled
require2fa
boolean
false
If true the 2fa is required
last_login_at
string(date-time)
false
Date of last successful login
updated_at
string(date-time)
true
Date of last update
username
string
true
Username
crm
string
false
The CRM where the credential belongs to
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} /change_password \
-H "Accept: application/json" \
-H "Authorization: Bearer {access-token}"