Query Alarm List

Query the alarm list.

Request URL

GET {base_url}/{api_path}/wakeupcall/list?access_token={access_token}

Request parameters

Table 1.
Parameter Required Type Description
page No Integer Define which page is displayed.
page_size No Integer Define how many records per page.

Response parameters

Table 2.
Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
data Array <Wakeup_Info> Alarm list.
Wakeup_Info
Table 3.
Parameter Type Description
ext_id Integer The unique ID of an extension.
wakeup_call Array <Extension_Wakeup> The alarm information of the extension.
Extension_Wakeup
Table 4.
Parameter Type Description
id Integer The unique ID of an alarm.
alarm_time String Alarm time.
repeat_type String The schedule and specific days for repeating the alarm.
number_of_snoozes Integer How many times will the alarm be repeated.
snooze_duration Integer The interval in minutes between each repeat.
alarm_prompt String The name of alarm prompt.
alarm_day String Alarm date.
repeat_option String The frequency for repeating the alarm.
ring_timeout Integer The amount of time that the alarm will ring before timeout.
fail_dest_type String The failover destination type.
fail_dest_data Integer The specific failover destination.
remark String Additional information about the alarm.

Examples

Request example

GET /openapi/v1.0/wakeupcall/list?access_token=ojPrvnfzPdwc8OCcRmhG16gEHuZcwFco HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "data": [
        {
            "ext_id": 3,
            "wakeup_call": [
                {
                    "id": 1,
                    "alarm_time": "07:00",
                    "repeat_type": "never",
                    "number_of_snoozes": 2,
                    "snooze_duration": 5,
                    "alarm_prompt": "morning-call.wav",
                    "alarm_day": "2025/01/05",
                    "repeat_option": "never",
                    "ring_timeout": 20,
                    "fail_dest_type": "ext",
                    "fail_dest_data": 5,
                    "remark": "Make call"
                }
            ]
        },
        {
            "ext_id": 5,
            "wakeup_call": [
                {
                    "id": 2,
                    "alarm_time": "06:00",
                    "repeat_type": "every_monday,every_tuesday,every_wednesday,every_thursday,every_friday,every_saturday,every_sunday",
                    "number_of_snoozes": 3,
                    "snooze_duration": 5,
                    "alarm_prompt": "morning-call.wav",
                    "repeat_option": "every_day",
                    "ring_timeout": 20,
                    "fail_dest_type": "hangup"
                }
            ]
        },
        {
            "ext_id": 8,
            "wakeup_call": [
                {
                    "id": 3,
                    "alarm_time": "05:30",
                    "repeat_type": "every_monday,every_tuesday,every_wednesday,every_thursday",
                    "snooze_duration": 5,
                    "alarm_prompt": "default",
                    "repeat_option": "every_week",
                    "ring_timeout": 20,
                    "fail_dest_type": "ringgroup",
                    "fail_dest_data": 1
                }
            ]
        }
    ]
}