API

List time slots

Gets all available tima slots for company based on filter.

Either event_type_ids or event_id must be provided.

Capacity is the number of customers in booking.

GET/v1/hq/companies/{company_id}/time_slots
AuthorizationBearer <token>

The Noona HQ API uses Bearer token for authentication.

Endpoints that return generic information that does not contain sensitive data do not require authentication. Endpoints that require authentication are specifically marked in the documentation.

Authorization: Bearer your-token

In: header

Path Parameters

company_id*string

Company ID

Example"aw7da9wd8ua28a821"

Query Parameters

employee_id?string
Example"8a1da9wd8ua28aa9d"
resource_id?string
Example"ea7da9wd8ua28a134"
event_type_ids?array<string>
Example[ "te7da9wd8ua28a1ab", "xa7da9wd8ua01a134" ]
event_id?string
Example"xa7da9wd8ua01a134"
start_date*string
Example"2021-01-01"
end_date*string
Example"2021-01-31"
capacity?integer
Default1
Formatint32
Example5
duration?integer

Duration is by default inferred from event type(s) but can be overwritten with this parameter.

Formatint32
Example30
skip_can_perform?boolean

If true, skips checking if employees and resources can perform the event types and returns all available timeslots

Examplefalse
override_booking_interval?integer

Override the booking interval used for generating timeslots. This overrides the intervals set on the company, employees, and resources.

Default15
Formatint32
Value in5 | 10 | 15 | 20 | 30 | 45 | 50 | 60 | 75 | 90 | 105 | 120 | 160 | 180 | 240
Example15
select?array<string>
expand?array<string>

Response Body

application/json

curl -X GET "https://api.noona.is/v1/hq/companies/aw7da9wd8ua28a821/time_slots?start_date=2021-01-01&end_date=2021-01-31"
[
  {
    "slot": "2020-08-24T15:00:00Z",
    "employeeIds": [
      "string"
    ],
    "resourceIds": [
      "string"
    ],
    "unavailable_resources": [
      {
        "resource": "string",
        "reason": "booking"
      }
    ]
  }
]
Empty
Empty
Empty
Empty