settings.filters.zones_ports in thesettings.filters.event_types: ZONE_ENTRY,ZONE_EXIT, PORT_AREA_ARRIVAL, PORT_AREA_DEPARTURE, PORT_ARRIVAL,PORT_DEPARTURE, BERTH_ARRIVAL and BERTH_DEPARTURE come from observedNEW_INBOUND (a vessel reports a watched port as itsETA_CHANGE (an inbound vessel changes its reported ETA)curl --location 'https://api.polestar-production.com/notifications/v1/zones-and-ports' \
--header 'api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"active": true,
"custom_reference": "OPS-ROTTERDAM-114",
"name": "Rotterdam port call watch",
"description": "Entry and exit alerts for the Rotterdam port area",
"settings": {
"email_settings": {
"email_enabled": true,
"scheduler": {
"schedule_type": 1,
"at_time": "12:00"
}
},
"notification_callback_url": "https://webhooks.example.com/event-notifications",
"filters": {
"flag_codes": {
"incl": [
"ZMB",
"MUS"
]
},
"event_types": [
"ZONE_ENTRY",
"ZONE_EXIT",
"PORT_ARRIVAL",
"PORT_DEPARTURE"
],
"vessels": [
"9074729"
],
"zones_ports": [
"5e98acb5-4b8a-451b-9280-ddd63d55f8c9",
"1c60546c-da9d-425c-8eed-0142af219601"
]
}
}
}'{
"active": true,
"callback_url_status": "pending",
"created_at": "2026-08-12T10:15:30Z",
"created_by": "user@example.com",
"custom_reference": "OPS-ROTTERDAM-114",
"subscription_id": "1c60546c-da9d-425c-8eed-0142af219601",
"last_modified_at": "2026-08-12T10:15:30Z",
"description": "Entry and exit alerts for the Rotterdam port area",
"name": "Rotterdam port call watch",
"settings": {
"notification_callback_url": "https://webhooks.example.com/event-notifications"
}
}