---
title: "Get limit history"
method: GET
path: "/v2/limit_histories/{limit_history_id}"
tags: ["limits"]
---

# Get limit history

`GET /v2/limit_histories/{limit_history_id}`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/limit_histories/{limit_history_id}`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/limit_histories/:limit_history_id/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns the limit history with the given ID.

## Path parameters

- `limit_history_id` integer, required

## Response `200`

A limit history

- object
  - `limit_history` LimitHistory: LimitHistory model
    - `id` integer, required: the limit history ID
    - `user_id` integer, required: User ID
    - `limit_type` string, required: The type of limit history
    - `start_date` string, date, required: The start date of limit history
    - `stop_date` string, date, required: The end date of limit history
    - `start_time` string, date-time, required: The start time of limit history
    - `stop_time` string, date-time, required: The end time of limit history
    - `total` integer, required: How much time is allowed to track (seconds)
    - `used` integer: How much time is tracked (seconds)
    - `created_at` string, date-time, required: When the record was created
    - `updated_at` string, date-time, required: When the record was last updated

## Other responses

- `400`: Invalid parameters
- `401`: Unauthorized
- `403`: API access is only for organizations on an active plan
- `404`: Could not find record
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api.md) - [All operations](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/revisions/c6b90e4e4bdc?raw)
