PUT
/
api
/
v1
/
webhooks
/
{webhook_id}
# 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 Webhook

Update a webhook by providing the webhook ID and the fields to update.

Authorizations

Authorization
string
header
required

API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'

Path Parameters

webhook_id
string
required

Unique identifier of the webhook

Body

application/json
name
string

New name for the webhook

url
string

New URL endpoint for the webhook

event_types
enum<string>[]

New list of event types to subscribe to

Available options:
memory:add,
memory:update,
memory:delete

Response

200
application/json
Webhook updated successfully
message
string