Skip to main content
GET
/
office-hours
/
{id}
Get an office hours schedule
curl --request GET \
  --url https://api.open.cx/office-hours/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "name": "<string>",
  "iana_timezone": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "shifts": [
    {
      "day_of_week": "everyday",
      "start_time": "<string>",
      "end_time": "<string>",
      "id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

Default Response

id
string
required

Office hours schedule ID

name
string
required

Schedule name (e.g. "Weekday Support", "Weekend Hours")

iana_timezone
string
required

IANA timezone (e.g. "America/New_York", "Europe/London")

created_at
string<date-time>
required
updated_at
string<date-time>
required
shifts
object[]
required

The time blocks when support is available