Skip to main content
POST
/
v1
/
alarms
/
forecasts
/
page
List registrations (paged)
curl --request POST \
  --url https://api.iklim.co/v1/alarms/forecasts/page \
  --header 'Content-Type: application/json' \
  --data '
{
  "pageNumber": 0,
  "pageSize": 20,
  "filterByRecipientIds": [
    "customer-system-001",
    "customer-system-002"
  ],
  "filterByBoundary": {
    "cityId": 6,
    "type": "ADMINISTRATIVE",
    "districtId": 557
  },
  "accountId": "2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1"
}
'
{
  "registrations": [
    {
      "registrationId": "f7587d9e-2481-4b4c-818d-c8d1946851b7",
      "recipientId": "customer-system-001",
      "boundary": {
        "cityId": 6,
        "districtId": 557
      },
      "forecastDays": 3,
      "forecastAlarmDelivery": [
        "MORNING",
        "EVENING"
      ],
      "webhook": {
        "accountId": "2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1",
        "url": "https://api.customer.com/alerts/forecast-callback",
        "httpMethod": "POST",
        "contentType": "application/json",
        "authentication": {
          "username": "alert-user",
          "password": "******"
        },
        "deliveryPolicy": {
          "timeout": 60,
          "maxRetries": 3,
          "retryDelay": 10
        }
      },
      "filter": {
        "precipitationThreshold": "MODERATE",
        "snowFallThreshold": "LIGHT",
        "windGustThreshold": "STRONG_WIND",
        "hotTemperatureThreshold": "HOT_SNAP",
        "coldTemperatureThreshold": "COLD_SNAP"
      }
    }
  ],
  "totalRecords": 42,
  "pageNumber": 0,
  "pageSize": 20
}

Body

application/json

Paginated listing request for forecast alarm registrations.

pageNumber
integer<int32>

Zero-based page index.

Required range: x >= 0
Example:

0

pageSize
integer<int32>

Maximum number of registrations to return per page (1–100).

Required range: 1 <= x <= 100
Example:

20

filterByRecipientIds
string[]

Restrict results to registrations with one of the given recipient identifiers.

Example:
[
"customer-system-001",
"customer-system-002"
]
filterByBoundary
object

Alarm registration boundary (discriminator field: type).

accountId
string<uuid>

Target account UUID; users with ADMIN or POWER_USER role may query registrations of other accounts.

Example:

"2f04f1b5-1c0a-4c4e-b0a7-0ba6e9b7f2e1"

Response

OK

Paginated result set of forecast alarm registrations.

registrations
object[]

List of forecast alarm registrations on the current page.

totalRecords
integer<int32>

Total number of matching registrations across all pages.

Example:

42

pageNumber
integer<int32>

Zero-based index of the returned page.

Example:

0

pageSize
integer<int32>

Maximum number of registrations per page as originally requested.

Example:

20