---
title: "Fetch booked time slots for an account"
method: GET
path: "/restapi/json/v1/accounts/{accountId}/bookedtimeslots"
tags: ["Access Control"]
---

# Fetch booked time slots for an account

`GET /restapi/json/v1/accounts/{accountId}/bookedtimeslots`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/accounts/{accountId}/bookedtimeslots`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/accounts/:accountId/bookedtimeslots/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves the booked time slots for password access on a specific account that has access control configured. Returns server time, date format, timezone, maximum request duration/range, and a list of already booked slots so the requester can choose an available window. Access control must be enabled on the account.

## Path parameters

- `accountId` integer, required

## Headers

- `orgName` string

## Response `200`

Booked time slots retrieved successfully

- GetBookedTimeSlotsResponse
  - `operation` object
    - `result` object
      - `message` string
      - `status` string
      - `statusCode` integer
    - `Details` object
      - `MAX_REQUEST_RANGE` string: Maximum number of days ahead a request can be made.
      - `TIME_ZONE` string: Server time zone.
      - `DATE_FORMAT` string: Date format used in slot timestamps.
      - `SERVER_TIME` string: Current server time.
      - `REQUEST_NOW_DUR` string: Duration in minutes for immediate access requests.
      - `MAX_REQUEST_DUR` string: Maximum request duration in hours.
      - `BOOKED_SLOTS` object[]
        - `STARTTIME` string: Slot start time.
        - `SLOTNUMBER` string: Slot identifier number.
        - `ENDTIME` string: Slot end time.
    - `name` string

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
