Get business hours
GET/api/v1/business-hours
scope
account:readReturns the account’s time zone, its weekly opening hours, and whether it is open right now. business_hours is null when the business has never set its hours; is_open_now is then null too, because there is nothing to compare the clock against.
Request
curl "https://your-crm.example.com/api/v1/business-hours" \
-H "Authorization: Bearer $RAABTA_API_KEY"Response · 200 OK
{
"data": {
"timezone": "Asia/Dubai",
"business_hours": {
"mon": [
[
"09:00",
"18:00"
]
],
"tue": [
[
"09:00",
"18:00"
]
],
"wed": [
[
"09:00",
"18:00"
]
],
"thu": [
[
"09:00",
"18:00"
]
],
"fri": [
[
"09:00",
"12:00"
],
[
"14:00",
"18:00"
]
]
},
"is_open_now": true
}
}Response
Wrapped in { data: … }| Name | Type | Description |
|---|---|---|
timezonerequired | string | The account’s IANA time zone; every time below is in it |
business_hoursrequired | map<string, string[][]> | null | Weekday key (mon to sun) to a list of [open, close] times as HH:MM. A missing day is closed. null means the hours have never been set |
is_open_nowrequired | boolean | null | Whether the business is open at this moment; null when no hours are set |
Errors
| Status | Code | When |
|---|---|---|
| 401 | unauthorized | No usable API key: the Authorization header is missing or malformed, or the key is unknown, revoked or expired. The three are deliberately indistinguishable. |
| 403 | forbidden | The key is valid but lacks the scope this endpoint requires, or the request came from an address outside the key’s IP allowlist. The message says which. |
| 403 | account_suspended | The account this key belongs to is suspended. Rotating the key will not help; contact support. |
| 429 | rate_limited | The per-key budget, or the per-IP budget for failed authentication, is exhausted. Honour `Retry-After` before retrying. |
| 500 | internal | Something failed on our side. Safe to retry with the same Idempotency-Key; quote `request_id` if it persists. |