---
title: "Get timesheets hours"
method: POST
path: "/workspaces/{workspace_id}/timesheets/hours"
tags: ["approvals", "workspaces"]
---

# Get timesheets hours

`POST /workspaces/{workspace_id}/timesheets/hours`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/timesheets/hours`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/timesheets/hours/post.ts> (a function with typed inputs; its response is checked against the schema)

Get timesheet working hours and total tracked seconds.

## Path parameters

- `workspace_id` integer, required

## Request body

- TimesheetsPostTimesheetHoursPayload
  - `start_date` string
  - `timesheet_setup_id` integer

## Response `200`

Successful operation.

- TimesheetsTimesheetHoursResponse[]
  - `start_date` string
  - `timesheet_setup_id` integer
  - `total_seconds` integer
  - `working_hours_in_minutes` integer

## Other responses

- `400`: Possible error messages: * Workspace not found * Invalid ID * Invalid date
- `402`: Approvals are a premium feature
- `403`: User does not have access to this resource
- `500`: Internal Server Error

---

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