Get business hours

Get business hours

GET/api/v1/business-hours

scope account:read

Returns 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: … }
NameTypeDescription
timezonerequired
stringThe account’s IANA time zone; every time below is in it
business_hoursrequired
map<string, string[][]> | nullWeekday 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 | nullWhether the business is open at this moment; null when no hours are set

Errors

StatusCodeWhen
401unauthorizedNo usable API key: the Authorization header is missing or malformed, or the key is unknown, revoked or expired. The three are deliberately indistinguishable.
403forbiddenThe 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.
403account_suspendedThe account this key belongs to is suspended. Rotating the key will not help; contact support.
429rate_limitedThe per-key budget, or the per-IP budget for failed authentication, is exhausted. Honour `Retry-After` before retrying.
500internalSomething failed on our side. Safe to retry with the same Idempotency-Key; quote `request_id` if it persists.