Create a webhook endpoint
curl --request POST \
--url https://api.melso.ai/v1/partner/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/melso/webhooks",
"events": [
"incorporation.*",
"company.ready",
"tax_return.*"
],
"description": "Production"
}
'import requests
url = "https://api.melso.ai/v1/partner/webhook-endpoints"
payload = {
"url": "https://example.com/melso/webhooks",
"events": ["incorporation.*", "company.ready", "tax_return.*"],
"description": "Production"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://example.com/melso/webhooks',
events: ['incorporation.*', 'company.ready', 'tax_return.*'],
description: 'Production'
})
};
fetch('https://api.melso.ai/v1/partner/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "we_3f9a1c2b",
"url": "https://example.com/melso/webhooks",
"events": [
"incorporation.*",
"company.ready",
"tax_return.*"
],
"description": "Production",
"status": "enabled",
"secret": "whsec_7d2f0c4e9b1a",
"created_at": "2026-12-01T09:30:00Z"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}Webhooks
Create a webhook endpoint
Adds an endpoint that receives the events of every company of your firm.
POST
/
partner
/
webhook-endpoints
Create a webhook endpoint
curl --request POST \
--url https://api.melso.ai/v1/partner/webhook-endpoints \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://example.com/melso/webhooks",
"events": [
"incorporation.*",
"company.ready",
"tax_return.*"
],
"description": "Production"
}
'import requests
url = "https://api.melso.ai/v1/partner/webhook-endpoints"
payload = {
"url": "https://example.com/melso/webhooks",
"events": ["incorporation.*", "company.ready", "tax_return.*"],
"description": "Production"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://example.com/melso/webhooks',
events: ['incorporation.*', 'company.ready', 'tax_return.*'],
description: 'Production'
})
};
fetch('https://api.melso.ai/v1/partner/webhook-endpoints', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "we_3f9a1c2b",
"url": "https://example.com/melso/webhooks",
"events": [
"incorporation.*",
"company.ready",
"tax_return.*"
],
"description": "Production",
"status": "enabled",
"secret": "whsec_7d2f0c4e9b1a",
"created_at": "2026-12-01T09:30:00Z"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}Early access. Your firm’s owner or an admin creates partner keys in Settings › Developers. See Partner API.
Beta. Melso does not serve this operation yet, and its fields can still change. See what is live.
webhooks:write. secret appears only in this answer: store it to verify the Melso-Signature header. See Webhooks.Authorizations
A partner key of your firm, mk_live_…, which reaches every company of
the firm. Each key carries the permissions chosen when it was created.
Keep it on your servers. See Authentication.
Body
application/json
Event types to receive, or families such as tax_return.*. See Webhooks.
Response
The endpoint, with its secret.