waha-api-client-ts
    Preparing search index...

    Interface WAHAConfig

    Configuration for WAHA API client

    Used to initialize the WAHAClient with default settings for all API requests.

    const config: WAHAConfig = {
    baseURL: 'https://waha.devlike.pro',
    apiKey: 'your-api-key',
    session: 'default',
    timeout: 30000,
    retryAttempts: 3,
    retryDelay: 1000,
    };

    const client = new WAHAClient(config);
    interface WAHAConfig {
        apiKey?: string;
        baseURL: string;
        retryAttempts?: number;
        retryDelay?: number;
        session?: string;
        timeout?: number;
    }
    Index

    Properties

    apiKey?: string

    API key for authentication (optional) If your WAHA instance requires API key authentication, provide it here.

    baseURL: string

    Base URL of the WAHA API (e.g., "https://waha.devlike.pro") This is the only required field.

    retryAttempts?: number

    Number of retry attempts on failure (default: 3) The client will automatically retry failed requests this many times.

    retryDelay?: number

    Delay between retry attempts in milliseconds (default: 1000) Time to wait before retrying a failed request.

    session?: string

    Default session name to use for all requests (default: 'default') Can be overridden per request using the config parameter.

    timeout?: number

    Default request timeout in milliseconds (default: 30000) Requests will fail if they take longer than this duration.