Back to All

How to get X-alchemy-key

import requests

url = "https://dashboard.alchemy.com/api/update-webhook-addresses"

payload = {
"webhook_id": "wh_685dfzpx3ycychzc",
"addresses_to_add": ["0xA931d58353914E5d74C707374C532d03301cc6d8"]
}
headers = {
"accept": "application/json",
"X-Alchemy-Token": "x-alchemy key",
"content-type": "application/json",
}

response = requests.patch(url, json=payload, headers=headers)

print(response.text)

i am using x-alchemy key from https://dashboard.alchemy.com/webhooks, on top auth token was copied, but have error:
{"message":"Missing required fields","name":"ValidationError"}