Member Junction
    Preparing search index...

    Credentials for Twilio provider. Extend ProviderCredentialsBase to support per-request credential override.

    TEMPORARY INTERFACE: This interface is part of the interim credential solution for 2.x patch release. In a future release, this will be integrated with the comprehensive credential management system.

    interface TwilioCredentials {
        accountSid?: string;
        authToken?: string;
        disableEnvironmentFallback?: boolean;
        facebookPageId?: string;
        phoneNumber?: string;
        whatsappNumber?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    accountSid?: string

    Twilio Account SID

    authToken?: string

    Twilio Auth Token

    disableEnvironmentFallback?: boolean

    When true, environment variable fallback is DISABLED for this request. If credentials are incomplete and this is true, the request will fail rather than falling back to environment variables.

    false (fallback enabled for backward compatibility)
    
    // With fallback (default) - uses env var if apiKey not provided
    await provider.SendSingleMessage(message, {});

    // Without fallback - fails if apiKey not provided
    await provider.SendSingleMessage(message, {
    disableEnvironmentFallback: true
    });
    facebookPageId?: string

    Optional Facebook Page ID (if using Facebook Messenger)

    phoneNumber?: string

    Twilio Phone Number for SMS

    whatsappNumber?: string

    Optional WhatsApp number (if using WhatsApp messaging)