Masking Errors
Common error messages from the Mask API, what causes them, and how to fix them.
The Mask API returns structured error messages for invalid requests.
Endpoint: PUT https://protecto-trial.protecto.ai/api/vault/mask
Common errors
| Scenario | Error message |
|---|---|
| Empty payload | Payload is empty |
Missing mask key | mask data missing |
Missing value | Missing value |
Missing token_name | Missing token_name |
Invalid token_name | token_name not defined: {<INVALID_TOKEN_NAME>} |
Missing format | Missing format |
Invalid format | format name not defined: {<INVALID_FORMAT_NAME>} |
| Missing metadata | Token and Format Metadata not available |
| Trial quota exceeded | You have exceeded the maximum number of token creation limit for your trial subscription |
| Value too large | Masked data exceeds the approved limit of 600 characters |
| Processing failure | Masking failed after 3 retries |
Example: Missing token_name
Request:
{
"mask": [
{ "value": "George Williams", "token_name": "" }
]
}
Response:
{
"data": null,
"success": false,
"error": { "message": "Missing token_name" }
}
Fixes
Was this page helpful?
Last updated 3 weeks ago
Built with Documentation.AI