MasCustomers Typifications API
- staging
- production
- Authentication
- apiKey
About this API
I am the MasCustomers Typifications API. I register and retrieve the typifications
(interaction records) that the attention channels record for a customer, and I serve the static
content (typification forms, campaigns, reasons) that the channels need to render them.
The typifications endpoints replace the ones formerly exposed under the MasCustomers API v3
(/v3/orgs/{orgId}/customers/{customerId}/typifications). The contract is the same;
only the base URL changes. The static content endpoint replaces the legacy
sales.k8s.masmovil.com/v1/static-content one, with the same path and parameters.
NOTE: The examples provided here are made up and should not be used for testing purposes.
Make sure to change all parameters before attempting to make any request.
Resources 2
- Typifications 2 endpoints
Access to customer typifications
- Static content 1 endpoint
Static content (typification forms, campaigns, reasons) served from the CMS
MasCustomers Typifications API
- staging
- production
- Authentication
- apiKey
About this API
I am the MasCustomers Typifications API. I register and retrieve the typifications
(interaction records) that the attention channels record for a customer, and I serve the static
content (typification forms, campaigns, reasons) that the channels need to render them.
The typifications endpoints replace the ones formerly exposed under the MasCustomers API v3
(/v3/orgs/{orgId}/customers/{customerId}/typifications). The contract is the same;
only the base URL changes. The static content endpoint replaces the legacy
sales.k8s.masmovil.com/v1/static-content one, with the same path and parameters.
NOTE: The examples provided here are made up and should not be used for testing purposes.
Make sure to change all parameters before attempting to make any request.
Resources 2
- Typifications 2 endpoints
Access to customer typifications
- Static content 1 endpoint
Static content (typification forms, campaigns, reasons) served from the CMS
Typifications
Get customer typifications
/orgs /{orgId} /customers /{customerId} /typifications Authenticated with an API key in the x-auth-roles header Authentication
Requires a role granting the permission customers.customers.typifications.list
(e.g. customers.tipifications.viewer or customers.typifications.editor). Request the
role to the mas-customers team.
Path parameters
orgIdstringRequiredorganization name
customerIdstringRequiredcustomer identifier
Responses
successful operation
-
typificationsobject[]-
idstring Required -
created_atstring (date-time) RequiredTypification creation date
-
channelstring RequiredChannel where the typification was performed
-
tenantstringTenant where the typification was performed
-
areastringUser area where the typification was performed
-
user_idstring RequiredUser performing the typification.
-
msisdnstring RequiredPhone number related to the typification
-
campaignstring RequiredCampaign related to the typification
-
reasonstring RequiredTypification reason
-
subreason1stringTypification subreason1
-
subreason2stringTypification subreason2
-
resultstringTypification result
-
subresultstringTypification subresult
-
conversation_idstringConversation identifier related to the typification
-
operatorstringOperator related to the typification
-
descriptionstringTypification description
-
initial_feenumber (float)
-
Invalid customer supplied
-
codeinteger (int32) -
statusinteger (int32) -
messagestring -
detailMsgstring
Unauthorized
No body.
Forbidden. The caller roles do not grant the required permission.
No body.
Internal Server Error
-
codeinteger (int32) -
statusinteger (int32) -
messagestring -
detailMsgstring
Typifications
Insert new typification
/orgs /{orgId} /customers /{customerId} /typifications Authenticated with an API key in the x-auth-roles header Authentication
Requires a role granting the permission customers.customers.typifications.create
(e.g. customers.typifications.editor). Request the role to the mas-customers team.
Path parameters
orgIdstringRequiredorganization name
customerIdstringRequiredcustomer identifier
Request body application/json Required
typification parameters
-
channelstring RequiredChannel where the typification was performed
-
user_idstring RequiredUser performing the typification. It takes an email format
-
msisdnstring RequiredPhone number related to the typification
-
conversation_idstringConversation identifier related to the typification
-
operatorstringOperator related to the typification
-
campaignstring RequiredCampaign related to the typification
-
reasonstring RequiredTypification reason
-
subreason1stringTypification subreason1
-
subreason2stringTypification subreason2
-
resultstringTypification result
-
subresultstringTypification subresult
-
descriptionstringTypification description
-
initial_feenumber (float)
Responses
Typification created successfully. No content to return.
No body.
Parameters values not allowed or incorrect
-
codeinteger (int32) -
statusinteger (int32) -
messagestring -
detailMsgstring
Unauthorized
No body.
Forbidden. The caller roles do not grant the required permission.
No body.
Internal Server Error
-
codeinteger (int32) -
statusinteger (int32) -
messagestring -
detailMsgstring
Static content
Get static content by type
/static-content /contentful /{type} Authenticated with an API key in the x-auth-roles header Authentication
Returns the entries of the given content type with their linked references resolved. Responses are cached server-side.
Any query parameter other than spaceName and locale is forwarded to the CMS as a field
filter (fields.<name>=<value>); area is the usual one.
Requires a role granting the permission customers.typificationsStaticContent.list.
Request the role to the mas-customers team.
Path parameters
typestringRequiredContent type to retrieve
Query parameters
spaceNamestringCMS space name. Uses the default space when omitted.
areastringFilters the entries by the
areafieldlocalestringContent locale
Responses
successful operation
Unauthorized
No body.
Forbidden. The caller roles do not grant the required permission.
No body.
Content not found
-
messagestring -
statusinteger
Internal Server Error
-
messagestring -
statusinteger