# To use the Python SDK, install the package:# pip install mem0aifrom mem0 import MemoryClientclient = MemoryClient(api_key="your_api_key")# Get all webhookswebhooks = client.get_webhooks(project_id="your_project_id")print(webhooks)# Create a webhookwebhook = client.create_webhook( url="https://your-webhook-url.com", name="My Webhook", project_id="your_project_id", event_types=["memory:add"])print(webhook)
# To use the Python SDK, install the package:# pip install mem0aifrom mem0 import MemoryClientclient = MemoryClient(api_key="your_api_key")# Get all webhookswebhooks = client.get_webhooks(project_id="your_project_id")print(webhooks)# Create a webhookwebhook = client.create_webhook( url="https://your-webhook-url.com", name="My Webhook", project_id="your_project_id", event_types=["memory:add"])print(webhook)