monday-python is an API wrapper for monday.com, written in Python.
This library includes notifications using webhooks.
pip install monday-python
from monday.client import Client
client = Client(api_token)
Find your API token in your monday.com profile admin settings API section.
user = client.get_current_user()
users = client.list_users()
workspaces = client.list_workspaces()
boards = client.list_boards(workspace_id)
cols = client.list_columns(board_id)
items = client.list_items(board_id)
item = client.get_item(item_id)
# The item's state: all, active, archived, or deleted. The default state is active.
items = client.get_items_by_column_values(board_id, column_id, column_value, limit=50, state="active")
# column_values is a dictionary with the following structure:
# {"column_id": "column_value", "column_id": "column_value"}
item = client.create_item(board_id, item_name: str, column_values: dict = None)
# column_values is a dictionary with the following structure:
# {"column_id": "column_value", "column_id": "column_value"}
item = client.update_item(board_id, item_id, column_values)
webhooks = client.list_webhooks(board_id)
webhook = client.create_webhook(board_id, url, event)
To activate a webhook, the URL must return a response to a post request that monday.com will send to verify.
Read more about it here: https://developer.monday.com/api-reference/docs/webhooks
deleted = client.delete_webhook(webhook_id)