Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Elevenlabs Elevenlabs python PrivacyConfig

From Leeroopedia
Field Value
source Elevenlabs_Elevenlabs_python
domains Conversational AI, Privacy, Data Retention, Compliance
last_updated 2026-02-15

Overview

Description

PrivacyConfig is a Pydantic model that defines privacy and data retention settings for conversations conducted through the ElevenLabs Conversational AI platform. It provides granular control over voice recording, data retention periods, transcript and PII deletion, audio deletion, and zero retention mode for maximum privacy compliance.

This model is auto-generated by Fern from the ElevenLabs API definition and inherits from UncheckedBaseModel. It enables organizations to configure their agents in compliance with data protection regulations such as GDPR.

Usage

PrivacyConfig is used within agent configuration to control how conversation data is stored and retained. It can be configured to apply retroactively to existing conversations, making it useful for enforcing updated privacy policies across all conversation history.

Code Reference

Source Location

src/elevenlabs/types/privacy_config.py

Class Signature

class PrivacyConfig(UncheckedBaseModel):
    ...

Import Statement

from elevenlabs.types import PrivacyConfig

I/O Contract

Field Type Required Description
record_voice Optional[bool] No Whether to record the conversation.
retention_days Optional[int] No The number of days to retain the conversation. -1 indicates there is no retention limit.
delete_transcript_and_pii Optional[bool] No Whether to delete the transcript and PII.
delete_audio Optional[bool] No Whether to delete the audio.
apply_to_existing_conversations Optional[bool] No Whether to apply the privacy settings to existing conversations.
zero_retention_mode Optional[bool] No Whether to enable zero retention mode - no PII data is stored.

Usage Examples

Standard Privacy Configuration

from elevenlabs.types import PrivacyConfig

privacy = PrivacyConfig(
    record_voice=True,
    retention_days=30,
    delete_transcript_and_pii=False,
    delete_audio=False,
)

GDPR-Compliant Configuration

from elevenlabs.types import PrivacyConfig

privacy = PrivacyConfig(
    record_voice=False,
    retention_days=7,
    delete_transcript_and_pii=True,
    delete_audio=True,
    apply_to_existing_conversations=True,
)

Zero Retention Mode

from elevenlabs.types import PrivacyConfig

privacy = PrivacyConfig(
    zero_retention_mode=True,
    apply_to_existing_conversations=True,
)

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment