SDK Python Integration
pip install veilio-sdkimport os
from veilio_sdk import VeilioClient
veilio = VeilioClient(
api_key=os.getenv("VEILIO_API_KEY"),
base_url=os.getenv("VEILIO_BASE_URL", "https://app.veilio.xyz/api"),
)
def create_customer(email: str):
result = veilio.tokenize(
data=email,
type="email",
)
# Store token in your DB, not the raw email.
return {"email_token": result["token"]}
def send_welcome_email(email_token: str):
original = veilio.detokenize(
token=email_token,
reason="Send welcome email",
)
return original["data"]
# Call when a user requests account deletion (GDPR right to erasure)
def delete_user_data(email_token: str):
veilio.shred_token(
token=email_token,
reason="GDPR - user deletion request",
)Client configuration
Variable
Description
API reference
Bulk operations
Retention and shredding
Error handling
Code
HTTP
Description
Requirements
Last updated
Was this helpful?
