Create a new webhook for a specific project
Python
# To use the Python SDK, install the package: # pip install mem0ai from mem0 import MemoryClient client = MemoryClient(api_key="your_api_key", org_id="your_org_id", project_id="your_project_id") # Create a webhook webhook = client.create_webhook( url="https://your-webhook-url.com", name="My Webhook", project_id="your_project_id", event_types=["memory:add"] ) print(webhook)
{ "webhook_id": "<string>", "name": "<string>", "url": "<string>", "event_types": [ "<string>" ], "is_active": true, "project": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
API key authentication. Prefix your Mem0 API key with 'Token '. Example: 'Token your_api_key'
Unique identifier of the project
Webhook created successfully
The response is of type object.
object
Was this page helpful?