Skip to main content
GET
Get a number's business hours

Authorizations

Authorization
string
header
required

HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).

Path Parameters

numberId
string
required

The number id, as List and search numbers returns it.

Example:

"1201"

Response

The number's business hours.

numberId
string
required
read-only

The number. Read-only.

Example:

"1201"

useOwnHours
boolean
required

true: these hours decide when the number is open, and the company hours are ignored for it. false: the number follows the company hours, and these hours are kept for later.

timeZone
string
required
read-only

IANA time zone in which all times are read: the account time zone. Read-only.

Example:

"Europe/Bratislava"

openingHours
object[]
required

When it is open. Several intervals per day are allowed; they must not overlap.

specialDates
object[]
required
holidaysClosed
boolean
required

Closed on public holidays of the number's country. See List public holidays.

closedAction
Closed action · object
required

What callers get when closed. null while the hours were never saved. A save that sends the hours needs one.

updatedAt
string<date-time> | null
required
read-only

Last change. Read-only. null while the hours were never saved, or when the stored date is missing or not valid.