unmask api error messages: error_code: 500
- if payload length is empty
sample input:{“unmask”:[{}]}
{ “data”: null, “success”: false, “error”: { “message”: “Payload is empty” }} - if ‘unmask’ key not in payload
sample input:[{“token_value”:”2333″}]}
error response: { “data”: null, “success”: false,”error”: { “message”: “unmask data missing”}} - if ‘token_value’ not in unmask payload
sample input:{“unmask”:[{“token_value”:” “}]}
error response:{“data”: null, “success”: false, “error”: {“message”: “Missing token value field “}} - if ‘token_value’ field is empty
sample input:{“unmask”:[{“2333”}]}
error response:{“data”: null, “success”: false, “error”: {“message”: “Missing token value”}} - if unmasking failed
error response:{“data”: null, “success”: false, “error”: { “message”: “Unmasking of given token values failed.” }}
Authentication error messages : error_code: 401
Note: To send a request with the authentication token, include the following in headers:
Headers: {“Authorization”: “Bearer <AUTH_TOKEN>”}
- If the auth token is not there in the authorization headers
{ "detail": "To access Protecto, a valid license is required. Please create an account to execute the code"}
(or)
{"detail": "Your license is currently being generated. Please wait for a moment before running the code."}
- if the auth token is expired
{ "detail": "Protecto's license has expired. To execute the code, please contact help@protecto.ai."}
- if no Authorization header
{ "detail": "Access token has expired or is not yet valid."}
(or)
{ "detail": "Not authenticated"}