---
title: "Find time booking by ID"
method: GET
path: "/time_bookings/{id}.json"
tags: ["Time bookings"]
---

# Find time booking by ID

`GET /time_bookings/{id}.json`

## Path parameters

- `id` string, required

## Response `200`

time booking found

- TimeBooking
  - `id` integer
  - `start` string, date-time
  - `stop` string, date-time
  - `time_log_id` integer
  - `time_entry_id` integer
  - `time_entry` TimeEntry
    - `id` integer
    - `author_id` integer
    - `user_id` integer
    - `project_id` integer, nullable
    - `issue_id` integer, nullable
    - `hours` string
    - `activity_id` integer
    - `comments` string, nullable
    - `spent_on` string, date
    - `tyear` integer
    - `tmonth` integer
    - `tweek` integer
    - `created_on` string, date-time
    - `updated_on` string, date-time
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — missing or wrong api key
- `403` — insufficient permissions
- `404` — nothing found

## Changes

> 4 revisions in range; 1 could not be searched.

- **2017-07-21** (v1) `7805e8118edd` — 1 breaking
  - removed the media type `application/json` for the response with the status `200`

[Change history](https://skmtc.dev/hicknhack-software/apis/hourglass-api/changes/time_bookings/:id.json/get.md)

---

[API](https://skmtc.dev/hicknhack-software/apis/hourglass-api.md) · [All operations](https://skmtc.dev/hicknhack-software/apis/hourglass-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hicknhack-software/hourglass-api/revisions/42cc6d20ab5d/schema)
