Configuration

Access to consents configuration


Parameters

Name In Type Required Description
org_id path string true The string id related with one of available tenants/organizations
page query integer false Page number for pagination
page_size query integer false Number of items per page
choice_type query ConsentType false Filter by consent choice type (ACCEPTANCE or OPPOSITION)
consent_id query ConsentId false Filter by consent identifier

Request example

1
2
3
4

curl -X GET https://consents.masstack.com/v2/orgs/masmovil/consents?page='1'&page_size='50'&choice_type='ACCEPTANCE'&consent_id='C01' \
  -H "Accept: application/json"

Responses

Code Meaning Description Schema
200 OK List of available consents definitions retrieved successfully GetConsentsDefinitionsResponse
400 Bad Request Request input is not valid ErrorsResponse
401 Unauthorized The user is not authorized ErrorsResponse
404 Not Found The specified resource was not found ErrorsResponse
500 Internal Server Error The request failed to be processed by the server ErrorsResponse

Parameters

Name In Type Required Description
Accept-Language header string false Language and country in locale format (defined in RFC 5646, which rely on the ISO 639) used to
retrieve user consent texts. Not all values are available to all organizations.
If Locale text it is not defined, a default locale text will be provided.
Locale defined lists:
* es-ES - Spanish language, country Spain
* eu-ES - Basque language, country Spain
* en-ES - English language, country Spain
* de-ES - German language, country Spain
* ca-ES - Catalan language, country Spain
org_id path string true The string id related with one of available tenants/organizations
x-sector header UserSegment false The regulated sector where customer belongs to
x-segment header UserSegment false The user’s segment where the consent tree applies (replace x-sector deprecated header). Is mandatory sent at one of ‘x-sector’ or ‘x-segment’ headers.
view query array[string] false Filters the subset of Consents that are going to be showed. They can be combined with each other. If two views containing shared consents are selected, the largest grouping will be displayed.
If not specified, all consents configured will be showed.
Are configured by the organization’s administrator

Request example

1
2
3
4
5
6
7

curl -X GET https://consents.masstack.com/v2/orgs/masmovil/consents/customers?view='MANDATORY' \
  -H "Accept: application/json" \
  -H "Accept-Language: es-ES" \
  -H "x-sector: telco" \
  -H "x-segment: telco"

Responses

Code Meaning Description Schema
200 OK Expected response for a non existing user consent GetConsentsResponse
400 Bad Request Request input is not valid ErrorsResponse
401 Unauthorized The user is not authorized ErrorsResponse
404 Not Found The specified resource was not found ErrorsResponse
500 Internal Server Error The request failed to be processed by the server ErrorsResponse

Endpoints

Customer Consents

    Configuration

      Securize