---
title: "Retrieve Time Off"
method: GET
path: "/v2/time_off/{time_off_id}"
tags: ["Time Off"]
---

# Retrieve Time Off

`GET /v2/time_off/{time_off_id}`

## Request

- Base URL: `https://api.7shifts.com`
- URL: `https://api.7shifts.com/v2/time_off/{time_off_id}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://app.7shifts.com/oauth2/authorize`
    - Client credentials
    - Password
    - Token URL: `https://app.7shifts.com/oauth2/token`
  - API key in cookie `7session`
- TypeScript: <https://skmtc.dev/7shifts/apis/7shifts-api/docs/v2/time_off/:time_off_id/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `time_off_id` integer, required

## Headers

- `x-api-version` string: An API version
- `x-company-guid` string, uuid

## Response `200`

timeoff fetched successfully

- object
  - `id` integer, required
  - `user_id` integer, required
  - `company_id` integer, required
  - `from_date` string, required
  - `to_date` string, required
  - `partial` boolean, required
  - `partial_from` string, time, nullable, required
  - `partial_to` string, time, nullable, required
  - `comments` string, required
  - `status` integer, required
  - `status_action_user_id` integer, nullable, required
  - `status_action_message` string, required
  - `category` string, required
  - `created` string, required
  - `amount_of_hours` number, required
  - `hours` object[], required
    - `date` string, required
    - `hours` number, required

## Other responses

- `403`: Insufficient permissions to fetch this time off
- `404`: timeoff does not exist

---

[API](https://skmtc.dev/7shifts/apis/7shifts-api.md) - [All operations](https://skmtc.dev/7shifts/apis/7shifts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/7shifts/apis/7shifts-api/revisions/40e0ef40dfcd?raw)
