Masking APIsOverview

Masking APIs

Overview of all Protecto masking endpoints — from explicit token-based masking to auto-detection of PII in free-form text.

Overview

The Masking APIs transform sensitive input values into secure, deterministic tokens. Depending on how you call the API, Protecto can:

  • Mask known values using explicit token types
  • Preserve structure using formats (email, phone, URL)
  • Automatically detect and mask PII in free-form text
  • Apply masking behavior defined in a named policy
  • Attach custom metadata to masked values

All masking operations use HTTP PUT and require a valid authorization token.

Authentication

HeaderValue
AuthorizationBearer <AUTH_TOKEN>

Base URLs

EnvironmentBase URL
Trialhttps://protecto-trial.protecto.ai
Productionhttps://api.protecto.ai

The trial endpoint is publicly accessible. The production endpoint is activated upon subscription and requires production credentials.

Available masking modes

Choosing the right masking mode

Input typeRecommended mode
Free-form text, logs, promptsIdentify and Mask (Auto-Detect)
Known structured fieldsMask with Token
Fields requiring format preservationMask with Format
Policy-governed workflowsMask with Policy
Values needing custom metadataMask with Attributes