Skip to main content
Get your first API call working in minutes. Follow these three simple steps to start protecting sensitive data.

Step 1: Create an Account

Sign up for a Blindfold account to get started.

Create Account

Create your free account at app.blindfold.dev
After signing up, you will be automatically logged into the dashboard.

Step 2: Generate an API Key

Once logged in, navigate to the API Keys section to create your first API key.
1

Go to API Keys

In the dashboard, click on API Keys in the sidebar navigation.
2

Create New Key

Click the Create API Key button.
3

Name Your Key

Give your API key a descriptive name (e.g., “Development”, “Production App”).
4

Copy Your Key

Copy the generated API key and store it securely. You will not be able to see it again.
Keep your API key secure and never commit it to version control. Use environment variables to store your keys.

Step 3: Make Your First API Call

Choose your preferred integration method and make your first request.
Install the Python SDK and tokenize your first text.
pip install blindfold-sdk
from blindfold import Blindfold

# Initialize the client
client = Blindfold(api_key="your-api-key-here")

# Tokenize text with sensitive data
response = client.tokenize(
    "My email is [email protected] and phone is +1-555-1234"
)

print(response.text)
# Output: "My email is <EMAIL_ADDRESS_1> and phone is <PHONE_NUMBER_1>"

print(response.mapping)
# Output: {'<EMAIL_ADDRESS_1>': '[email protected]', '<PHONE_NUMBER_1>': '+1-555-1234'}
The SDK automatically handles API authentication and request formatting.

Understanding the Response

Every successful API call returns:
  • text: The anonymized/protected text with sensitive data replaced
  • mapping: A dictionary mapping tokens back to original values (for tokenize endpoint)
  • entities_count: Number of sensitive entities detected
  • detected_entities: Detailed information about each detected entity
The mapping field is only returned by the /tokenize endpoint, as it is needed for detokenization. Other methods like /mask, /redact, and /encrypt do not return mappings.

Next Steps

Now that you have made your first API call, explore more features:

Common Use Cases

Tokenize user input before sending to OpenAI, Anthropic, or other LLMs, then detokenize the AI response.
# Protect user input
protected = client.tokenize(user_message)

# Send to AI (safe text)
ai_response = openai.chat.completions.create(
    messages=[{"role": "user", "content": protected.text}]
)

# Restore original data in response
final_response = client.detokenize(
    ai_response.choices[0].message.content,
    protected.mapping
)
Use hashing to create consistent identifiers without storing real PII.
# Hash sensitive data for analytics
hashed = client.hash(
    "[email protected] bought product X",
    hash_type="sha256"
)
# Result: "ID_a3f8b9... bought product X"
Mask sensitive data for UI display while maintaining usability.
# Mask credit card for display
masked = client.mask(
    "Card: 4532-7562-9102-3456",
    masking_char="*",
    chars_to_show=4,
    from_end=True
)
# Result: "Card: ***************3456"

Need Help?

Support

Contact us at [email protected] for support and questions.