Global configuration
Default client
After configuring globally, access a shared client singleton:whatsrb_cloud.reset_configuration().
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure the WhatsRB Cloud Python SDK.
import whatsrb_cloud
whatsrb_cloud.configure(
api_key="wrb_live_xxx",
base_url="https://whatsrb.com", # default
timeout=30, # seconds, default
)
import whatsrb_cloud
whatsrb_cloud.configure(api_key="wrb_live_xxx")
# Uses the global configuration — no need to instantiate
whatsrb_cloud.client().agents.list()
whatsrb_cloud.client().webhooks.list()
whatsrb_cloud.reset_configuration().
from whatsrb_cloud import WhatsrbCloud
client = WhatsrbCloud(
"wrb_live_xxx",
base_url="https://whatsrb.com",
timeout=30,
)
# settings.py or startup
import whatsrb_cloud
import os
whatsrb_cloud.configure(api_key=os.environ["WHATSRB_API_KEY"])
| Option | Default | Description |
|---|---|---|
api_key | — | Your WhatsRB API key (required) |
base_url | https://whatsrb.com | API base URL |
timeout | 30 | Request timeout in seconds |
