GET {{baseUrl}}/contact_center/business_hours?next_page_token=<string>&page_size=30&account_default=<boolean>
Get a list of business hours. Admins can create business hours to select, such as the business hours "Default Hours". Scopes: Rate Limit Label: contact_center_operating_hours:read:admin
contact_center_queue:read:admin
Medium
Body
PARAM
Key | Datatype | Required | Description |
next_page_token
|
string | Use the next page token to paginate through large result sets. A next page token returns whenever the set of available results exceeds the current page size. This token's expiration period is 15 minutes. | |
page_size
|
number | The number of items returned per page. | |
account_default
|
string | Default business hours or closures for the newly created queue. |
HEADERS
Key | Datatype | Required | Description |
Accept
|
string |
RESPONSES
status OK
{
"next_page_token": "<string>",
"page_size": 30,
"total_records": "<integer>",
"business_hours": [
{
"business_hour_id": "<string>",
"business_hour_name": "<string>",
"timezone": "<string>",
"account_default": "<boolean>",
"queues_count": "<integer>",
"flows_count": "<integer>",
"hours": {
"hour_type": 2,
"custom_hours": [
{
"day_of_week": 6,
"custom_hour_type": 1,
"custom_hour_ranges": [
{
"start_time": "<string>",
"end_time": "<string>"
},
{
"start_time": "<string>",
"end_time": "<string>"
}
]
},
{
"day_of_week": 2,
"custom_hour_type": 0,
"custom_hour_ranges": [
{
"start_time": "<string>",
"end_time": "<string>"
},
{
"start_time": "<string>",
"end_time": "<string>"
}
]
}
]
}
},
{
"business_hour_id": "<string>",
"business_hour_name": "<string>",
"timezone": "<string>",
"account_default": "<boolean>",
"queues_count": "<integer>",
"flows_count": "<integer>",
"hours": {
"hour_type": 1,
"custom_hours": [
{
"day_of_week": 1,
"custom_hour_type": 2,
"custom_hour_ranges": [
{
"start_time": "<string>",
"end_time": "<string>"
},
{
"start_time": "<string>",
"end_time": "<string>"
}
]
},
{
"day_of_week": 5,
"custom_hour_type": 2,
"custom_hour_ranges": [
{
"start_time": "<string>",
"end_time": "<string>"
},
{
"start_time": "<string>",
"end_time": "<string>"
}
]
}
]
}
}
]
} |
ENDPOINTS