List business hours
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:
contact_center_operating_hours:read:admin
contact_center_queue:read:admin
Rate Limit Label
:
Medium
Request Params
| 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":"\u003cstring\u003e","page_size":30,"total_records":"\u003cinteger\u003e","business_hours":[{"business_hour_id":"\u003cstring\u003e","business_hour_name":"\u003cstring\u003e","timezone":"\u003cstring\u003e","account_default":"\u003cboolean\u003e","queues_count":"\u003cinteger\u003e","flows_count":"\u003cinteger\u003e","hours":{"hour_type":2,"custom_hours":[{"day_of_week":6,"custom_hour_type":1,"custom_hour_ranges":[{"start_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e"},{"start_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e"}]},{"day_of_week":2,"custom_hour_type":0,"custom_hour_ranges":[{"start_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e"},{"start_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e"}]}]}},{"business_hour_id":"\u003cstring\u003e","business_hour_name":"\u003cstring\u003e","timezone":"\u003cstring\u003e","account_default":"\u003cboolean\u003e","queues_count":"\u003cinteger\u003e","flows_count":"\u003cinteger\u003e","hours":{"hour_type":1,"custom_hours":[{"day_of_week":1,"custom_hour_type":2,"custom_hour_ranges":[{"start_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e"},{"start_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e"}]},{"day_of_week":5,"custom_hour_type":2,"custom_hour_ranges":[{"start_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e"},{"start_time":"\u003cstring\u003e","end_time":"\u003cstring\u003e"}]}]}}]}