List webhook deliveries
curl --request GET \
--url https://api.melso.ai/v1/webhook-deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/webhook-deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/webhook-deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"status": "pending",
"attempts": 123,
"response_code": 123,
"latency_ms": 123,
"error": "<string>",
"next_attempt_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}{
"error": "invalid token",
"code": "unauthorized",
"request_id": "req_01JAB3K9X2"
}Webhook endpoints
List webhook deliveries
Lists your most recent deliveries, newest first, with their status, attempts and the last response.
GET
/
webhook-deliveries
List webhook deliveries
curl --request GET \
--url https://api.melso.ai/v1/webhook-deliveries \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.melso.ai/v1/webhook-deliveries"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.melso.ai/v1/webhook-deliveries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"url": "<string>",
"status": "pending",
"attempts": 123,
"response_code": 123,
"latency_ms": 123,
"error": "<string>",
"next_attempt_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z"
}
],
"next_cursor": "<string>"
}{
"error": "invalid token",
"code": "unauthorized",
"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.
Query Parameters
Page size.
Required range:
1 <= x <= 200The next_cursor of the previous page.
Available options:
pending, delivering, succeeded, failed, disabled