List webhook deliveries (paged)
curl --request POST \
--url https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page \
--header 'Content-Type: application/json' \
--data '
{
"backwardInterval": 86400,
"endTimeEpoch": 1746454091000,
"pageNumber": 0,
"pageSize": 20,
"accountId": "2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1",
"registrationId": "9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13",
"filterByRecipientIds": [
"Receiver1",
"Receiver2"
],
"alarmId": "<string>",
"alarmTypes": [
"LIGHTNING"
],
"statuses": [
"FAILURE",
"TIMEOUT"
],
"lastHttpStatus": 503,
"sortBy": {
"createdAt": "desc"
}
}
'import requests
url = "https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page"
payload = {
"backwardInterval": 86400,
"endTimeEpoch": 1746454091000,
"pageNumber": 0,
"pageSize": 20,
"accountId": "2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1",
"registrationId": "9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13",
"filterByRecipientIds": ["Receiver1", "Receiver2"],
"alarmId": "<string>",
"alarmTypes": ["LIGHTNING"],
"statuses": ["FAILURE", "TIMEOUT"],
"lastHttpStatus": 503,
"sortBy": { "createdAt": "desc" }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
backwardInterval: 86400,
endTimeEpoch: 1746454091000,
pageNumber: 0,
pageSize: 20,
accountId: '2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1',
registrationId: '9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13',
filterByRecipientIds: ['Receiver1', 'Receiver2'],
alarmId: '<string>',
alarmTypes: ['LIGHTNING'],
statuses: ['FAILURE', 'TIMEOUT'],
lastHttpStatus: 503,
sortBy: {createdAt: 'desc'}
})
};
fetch('https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'backwardInterval' => 86400,
'endTimeEpoch' => 1746454091000,
'pageNumber' => 0,
'pageSize' => 20,
'accountId' => '2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1',
'registrationId' => '9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13',
'filterByRecipientIds' => [
'Receiver1',
'Receiver2'
],
'alarmId' => '<string>',
'alarmTypes' => [
'LIGHTNING'
],
'statuses' => [
'FAILURE',
'TIMEOUT'
],
'lastHttpStatus' => 503,
'sortBy' => [
'createdAt' => 'desc'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page"
payload := strings.NewReader("{\n \"backwardInterval\": 86400,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 20,\n \"accountId\": \"2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1\",\n \"registrationId\": \"9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13\",\n \"filterByRecipientIds\": [\n \"Receiver1\",\n \"Receiver2\"\n ],\n \"alarmId\": \"<string>\",\n \"alarmTypes\": [\n \"LIGHTNING\"\n ],\n \"statuses\": [\n \"FAILURE\",\n \"TIMEOUT\"\n ],\n \"lastHttpStatus\": 503,\n \"sortBy\": {\n \"createdAt\": \"desc\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page")
.header("Content-Type", "application/json")
.body("{\n \"backwardInterval\": 86400,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 20,\n \"accountId\": \"2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1\",\n \"registrationId\": \"9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13\",\n \"filterByRecipientIds\": [\n \"Receiver1\",\n \"Receiver2\"\n ],\n \"alarmId\": \"<string>\",\n \"alarmTypes\": [\n \"LIGHTNING\"\n ],\n \"statuses\": [\n \"FAILURE\",\n \"TIMEOUT\"\n ],\n \"lastHttpStatus\": 503,\n \"sortBy\": {\n \"createdAt\": \"desc\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"backwardInterval\": 86400,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 20,\n \"accountId\": \"2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1\",\n \"registrationId\": \"9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13\",\n \"filterByRecipientIds\": [\n \"Receiver1\",\n \"Receiver2\"\n ],\n \"alarmId\": \"<string>\",\n \"alarmTypes\": [\n \"LIGHTNING\"\n ],\n \"statuses\": [\n \"FAILURE\",\n \"TIMEOUT\"\n ],\n \"lastHttpStatus\": 503,\n \"sortBy\": {\n \"createdAt\": \"desc\"\n }\n}"
response = http.request(request)
puts response.read_body{
"deliveryLogs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"registrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientId": "<string>",
"alarmId": "<string>",
"alarmType": "LIGHTNING",
"url": "<string>",
"httpMethod": "<string>",
"contentType": "<string>",
"attemptCount": 123,
"maxAttempts": 123,
"lastHttpStatus": 123,
"status": "SUCCESS",
"errorMessage": "<string>",
"requestPayload": "<string>",
"responseBody": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"durationMs": 123
}
],
"totalRecords": 128,
"pageNumber": 0,
"pageSize": 20
}{
"timestamp": "YYYY-mm-DDTHH:MM:SS.nnnnnnnnn",
"status": "XXX",
"error": "Error Name",
"message": "Error Message",
"path": "/endpoint/uri/here",
"messages": [
"<string>"
]
}{
"timestamp": "YYYY-mm-DDTHH:MM:SS.nnnnnnnnn",
"status": "XXX",
"error": "Error Name",
"message": "Error Message",
"path": "/endpoint/uri/here",
"messages": [
"<string>"
]
}{
"timestamp": "YYYY-mm-DDTHH:MM:SS.nnnnnnnnn",
"status": "XXX",
"error": "Error Name",
"message": "Error Message",
"path": "/endpoint/uri/here",
"messages": [
"<string>"
]
}{
"timestamp": "YYYY-mm-DDTHH:MM:SS.nnnnnnnnn",
"status": "XXX",
"error": "Error Name",
"message": "Error Message",
"path": "/endpoint/uri/here",
"messages": [
"<string>"
]
}List webhook deliveries (paged)
Returns one log row per forecast alarm webhook delivery, with pagination, filters and sorting. Rows are kept for a limited retention period.
POST
/
v1
/
alarms
/
forecasts
/
delivery-logs
/
page
List webhook deliveries (paged)
curl --request POST \
--url https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page \
--header 'Content-Type: application/json' \
--data '
{
"backwardInterval": 86400,
"endTimeEpoch": 1746454091000,
"pageNumber": 0,
"pageSize": 20,
"accountId": "2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1",
"registrationId": "9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13",
"filterByRecipientIds": [
"Receiver1",
"Receiver2"
],
"alarmId": "<string>",
"alarmTypes": [
"LIGHTNING"
],
"statuses": [
"FAILURE",
"TIMEOUT"
],
"lastHttpStatus": 503,
"sortBy": {
"createdAt": "desc"
}
}
'import requests
url = "https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page"
payload = {
"backwardInterval": 86400,
"endTimeEpoch": 1746454091000,
"pageNumber": 0,
"pageSize": 20,
"accountId": "2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1",
"registrationId": "9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13",
"filterByRecipientIds": ["Receiver1", "Receiver2"],
"alarmId": "<string>",
"alarmTypes": ["LIGHTNING"],
"statuses": ["FAILURE", "TIMEOUT"],
"lastHttpStatus": 503,
"sortBy": { "createdAt": "desc" }
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
backwardInterval: 86400,
endTimeEpoch: 1746454091000,
pageNumber: 0,
pageSize: 20,
accountId: '2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1',
registrationId: '9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13',
filterByRecipientIds: ['Receiver1', 'Receiver2'],
alarmId: '<string>',
alarmTypes: ['LIGHTNING'],
statuses: ['FAILURE', 'TIMEOUT'],
lastHttpStatus: 503,
sortBy: {createdAt: 'desc'}
})
};
fetch('https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'backwardInterval' => 86400,
'endTimeEpoch' => 1746454091000,
'pageNumber' => 0,
'pageSize' => 20,
'accountId' => '2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1',
'registrationId' => '9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13',
'filterByRecipientIds' => [
'Receiver1',
'Receiver2'
],
'alarmId' => '<string>',
'alarmTypes' => [
'LIGHTNING'
],
'statuses' => [
'FAILURE',
'TIMEOUT'
],
'lastHttpStatus' => 503,
'sortBy' => [
'createdAt' => 'desc'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page"
payload := strings.NewReader("{\n \"backwardInterval\": 86400,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 20,\n \"accountId\": \"2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1\",\n \"registrationId\": \"9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13\",\n \"filterByRecipientIds\": [\n \"Receiver1\",\n \"Receiver2\"\n ],\n \"alarmId\": \"<string>\",\n \"alarmTypes\": [\n \"LIGHTNING\"\n ],\n \"statuses\": [\n \"FAILURE\",\n \"TIMEOUT\"\n ],\n \"lastHttpStatus\": 503,\n \"sortBy\": {\n \"createdAt\": \"desc\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page")
.header("Content-Type", "application/json")
.body("{\n \"backwardInterval\": 86400,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 20,\n \"accountId\": \"2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1\",\n \"registrationId\": \"9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13\",\n \"filterByRecipientIds\": [\n \"Receiver1\",\n \"Receiver2\"\n ],\n \"alarmId\": \"<string>\",\n \"alarmTypes\": [\n \"LIGHTNING\"\n ],\n \"statuses\": [\n \"FAILURE\",\n \"TIMEOUT\"\n ],\n \"lastHttpStatus\": 503,\n \"sortBy\": {\n \"createdAt\": \"desc\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/alarms/forecasts/delivery-logs/page")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"backwardInterval\": 86400,\n \"endTimeEpoch\": 1746454091000,\n \"pageNumber\": 0,\n \"pageSize\": 20,\n \"accountId\": \"2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1\",\n \"registrationId\": \"9c1f6a52-3d7e-4b86-a1f4-5e2d8c0b7a13\",\n \"filterByRecipientIds\": [\n \"Receiver1\",\n \"Receiver2\"\n ],\n \"alarmId\": \"<string>\",\n \"alarmTypes\": [\n \"LIGHTNING\"\n ],\n \"statuses\": [\n \"FAILURE\",\n \"TIMEOUT\"\n ],\n \"lastHttpStatus\": 503,\n \"sortBy\": {\n \"createdAt\": \"desc\"\n }\n}"
response = http.request(request)
puts response.read_body{
"deliveryLogs": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"registrationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"recipientId": "<string>",
"alarmId": "<string>",
"alarmType": "LIGHTNING",
"url": "<string>",
"httpMethod": "<string>",
"contentType": "<string>",
"attemptCount": 123,
"maxAttempts": 123,
"lastHttpStatus": 123,
"status": "SUCCESS",
"errorMessage": "<string>",
"requestPayload": "<string>",
"responseBody": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"durationMs": 123
}
],
"totalRecords": 128,
"pageNumber": 0,
"pageSize": 20
}{
"timestamp": "YYYY-mm-DDTHH:MM:SS.nnnnnnnnn",
"status": "XXX",
"error": "Error Name",
"message": "Error Message",
"path": "/endpoint/uri/here",
"messages": [
"<string>"
]
}{
"timestamp": "YYYY-mm-DDTHH:MM:SS.nnnnnnnnn",
"status": "XXX",
"error": "Error Name",
"message": "Error Message",
"path": "/endpoint/uri/here",
"messages": [
"<string>"
]
}{
"timestamp": "YYYY-mm-DDTHH:MM:SS.nnnnnnnnn",
"status": "XXX",
"error": "Error Name",
"message": "Error Message",
"path": "/endpoint/uri/here",
"messages": [
"<string>"
]
}{
"timestamp": "YYYY-mm-DDTHH:MM:SS.nnnnnnnnn",
"status": "XXX",
"error": "Error Name",
"message": "Error Message",
"path": "/endpoint/uri/here",
"messages": [
"<string>"
]
}Body
application/json