Delete a webhook endpoint
curl --request DELETE \
--url https://api.melso.ai/v1/webhook-endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/webhook-endpoints/{endpoint_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/webhook-endpoints/{endpoint_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Webhook endpoints
Delete a webhook endpoint
Deletes the endpoint.
DELETE
/
webhook-endpoints
/
{endpoint_id}
Delete a webhook endpoint
curl --request DELETE \
--url https://api.melso.ai/v1/webhook-endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/webhook-endpoints/{endpoint_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/webhook-endpoints/{endpoint_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}{
"error": "invoice not found",
"code": "not_found",
"request_id": "req_01JAB3K9X2"
}Preview. A contract we are building with design partners. It is not callable yet, and fields can still change. See Availability.
Authorizations
Your partner secret key, mk_live_… for real companies or mk_test_…
for test companies. Keep it on your servers. See
Authentication.
Path Parameters
Response
Deleted.