Interface ContactEnrollParams

interface ContactEnrollParams {
    metadata?: Record<string, unknown>;
    name?: string;
    optIn?: {
        categories?: ("UTILITY" | "MARKETING" | "AUTHENTICATION" | "GENERAL")[];
        consentText?: string;
        evidence?: Record<string, unknown>;
        method?: string;
        occurredAt?: string;
        source: string;
    };
    phone: string;
    preferredLanguage?: string;
    projectId?: string;
    referenceId?: string;
}

Properties

metadata?: Record<string, unknown>
name?: string
optIn?: {
    categories?: ("UTILITY" | "MARKETING" | "AUTHENTICATION" | "GENERAL")[];
    consentText?: string;
    evidence?: Record<string, unknown>;
    method?: string;
    occurredAt?: string;
    source: string;
}
phone: string
preferredLanguage?: string

BCP-47 language tag used to resolve locale-specific flows at send time.

projectId?: string

Optional. API keys are project-scoped, so this defaults to the key's project; if set, it must match the key's project.

referenceId?: string