Note: Super Admin APIs are not available for trial users. A subscription is required to access these features. Please get in touch with help@protecto.ai for assistance. #
All the following super admin routes can only be accessed with the master API key.
This API allows you to create tokens for users within a specific namespace. You need to provide the namespace name, user id or email for whom the token is needed, and the permissions associated with that token.
Notes: #
- Each namespace can have multiple users, each with distinct permissions.
- Permissions must be clearly specified to control the user’s actions using the token.
METHOD: PUT
ROUTE: /super-admin/namespace/auth-token/generate
Headers:
{
“Authorization”: “Bearer <MASTER_API_KEY>”
}
Request format:
{
"data": {
"namespace_name": "customer_ns_1",
"_id": "userid1",
"permissions": [
"mask",
"unmask",
"metadata_change"
],
"start_date": "2024-07-11",
"end_date": "2028-07-10"
}
}
Note: start_date and end_date can be null or optional. If null token validation will be set according to the master key’s validity. start_date and end_date should be within the range of the master token’s validity
List of available permissions:
1.mask – A token with this permission can mask data.
2.unmask – A token with this permission can unmask data and see clear text data.
3.metadata_change – A token with this permission can update metadata for tokenization and can view audit details.
Response structure:
{
"data": {
"auth_key": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
"namespace_creation": {
"tracking_id": "9f799cb6-5315-4199-8d47-3a7ced21dd1d29042024113301",
"status": "PENDING",
"job_type ": "namespace-creation"
}
},
"success": "true",
"error": {
"message": ""
}
}
NOTE: namespace_creation key will not be there in response if the namespace already exists