@shadmanZero/tenantos-api
    Preparing search index...

    Interface TenantosClientConfig

    Configuration interface for TenantOS API client

    This interface defines all the configuration options available when creating a new TenantOS client instance. All properties are readonly to ensure immutability after client creation.

    const config: TenantosClientConfig = {
    baseUrl: 'https://your-tenant.tenantos.com',
    apiKey: 'your-api-key-here',
    timeout: 30000,
    debug: true,
    retry: {
    attempts: 3,
    delay: 1000
    }
    };
    interface TenantosClientConfig {
        apiKey: string;
        baseUrl: string;
        debug?: boolean;
        headers?: Readonly<Record<string, string>>;
        retry?: { attempts: number; delay: number };
        timeout?: number;
    }
    Index

    Properties

    apiKey: string

    API authentication token - obtain this from your TenantOS dashboard

    'Bearer abc123...'
    
    baseUrl: string

    Base URL of your TenantOS instance

    'https://your-tenant.tenantos.com'
    
    debug?: boolean

    Enable debug logging for requests and responses

    false
    
    headers?: Readonly<Record<string, string>>

    Custom headers to include with every request Useful for adding custom authentication or tracking headers

    retry?: { attempts: number; delay: number }

    Retry configuration for failed requests Only retryable errors (network issues, 5xx responses) will be retried

    Type Declaration

    • Readonlyattempts: number

      Number of retry attempts (0-10)

    • Readonlydelay: number

      Delay between retries in milliseconds (0-30000)

    timeout?: number

    Request timeout in milliseconds

    30000
    

    1000

    300000