GET Alerts

Returns all alert notifications.

Request Information

https://511yukon.ca/api/v2/get/alerts

URI Parameters

URI Parameters
NameDescriptionTypeAdditional information
key

Developer Key

string

Required

format

Valid values are 'xml' or 'json', default 'json'.

string

Optional

lang

Valid values are 'en' or 'fr', default 'en'.

string

Optional

Response Information

Resource Description


Resource Description
NameDescriptionType
Id

A unique identifier.

integer
Message

The alert details.

string
Notes

Additional alert details.

string
StartTime

The start time of the alert in Unix time. More information

integer
EndTime

The end time of the alert in Unix time. More information

integer
Regions

A list of regions affected.

list
HighImportance

Whether the alert is flagged as high importance.

boolean
SendNotification

Whether the alert is disseminated over communication channels (SMS, Email, IVR).

boolean

Response Formats

JSON

Sample:
[
	{
		"Id": 19,
		"Message": "Construction on Alaska Hwy Westbound from Roadway marker 1444 to Roadway marker 1452. ",
		"Notes": " Construction. reduced speed, loose gravel, be prepared to stop. Speed: 50 km/h.",
		"StartTime": 1633444920,
		"EndTime": 1633531260,
		"Regions": [],
		"HighImportance": true,
		"SendNotification": true
	}
]

XML

Sample:
<AlertsList>
    <Alerts>
        <Id>19</Id>
        <Message>Construction on Alaska Hwy Westbound from Roadway marker 1444 to Roadway marker 1452. </Message>
        <Notes>&nbsp;Construction. reduced speed, loose gravel, be prepared to stop. Speed: 50 km/h.</Notes>
        <StartTime>1633444920</StartTime>
        <EndTime>1633531260</EndTime>
        <Regions/>
        <HighImportance>true</HighImportance>
        <SendNotification>true</SendNotification>
    </Alerts>
</AlertsList>