Errors, Limits & ReliabilityMasking Errors

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

ScenarioError message
Empty payloadPayload is empty
Missing mask keymask data missing
Missing valueMissing value
Missing token_nameMissing token_name
Invalid token_nametoken_name not defined: {<INVALID_TOKEN_NAME>}
Missing formatMissing format
Invalid formatformat name not defined: {<INVALID_FORMAT_NAME>}
Missing metadataToken and Format Metadata not available
Trial quota exceededYou have exceeded the maximum number of token creation limit for your trial subscription
Value too largeMasked data exceeds the approved limit of 600 characters
Processing failureMasking 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