Python
# To use the Python SDK, install the package: # pip install mem0ai from mem0 import MemoryClient client = MemoryClient(api_key="your_api_key") # Update a webhook webhook = client.update_webhook( webhook_id="your_webhook_id", name="Updated Webhook", url="https://new-webhook-url.com", event_types=["memory:add"] ) print(webhook) # Delete a webhook response = client.delete_webhook(webhook_id="your_webhook_id") print(response)
{ "message": "Webhook updated successfully" }
Update an existing webhook
API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'
Unique identifier of the webhook.
New name for the webhook
New URL endpoint for the webhook
New list of event types to subscribe to
memory:add
memory:update
memory:delete
Webhook updated successfully
"Webhook updated successfully"
Was this page helpful?