---
title: "Work History Client Summary populated from closed timesheets(Show shift counts and total shift duration)"
method: GET
path: "/agency/{agency_id}/candidate/{candidate_id}/work-history-client-summary"
tags: ["Work History Client Summary"]
---

# Work History Client Summary populated from closed timesheets(Show shift counts and total shift duration)

`GET /agency/{agency_id}/candidate/{candidate_id}/work-history-client-summary`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency/{agency_id}/candidate/{candidate_id}/work-history-client-summary`
- Auth: HTTP basic and HTTP basic

## Query parameters

- `job_title_id` string
- `sortBy` string[]
- `page` integer
- `items_per_page` integer

## Headers

- `Authorization` string, string, required
- `Context` string, string, required
- `Accept` 'application/json', required

## Response `200`

List of work history client summary records for agency candidate

- object[]
  - `_id` object, required
    - `agency_id` string, required
    - `organisation_id` string, required
    - `site_id` string, required
    - `ward_id` string
    - `job_title_id` string
    - `candidate_id` string, required
  - `total_shifts` number, required
  - `total_duration_as_hours` number, required
  - `last_shift_start` string, date-time, required
  - `organisation_name` string, required
  - `site_name` string, required
  - `ward_name` string
  - `timesheet_date_modified` string, date-time, required

## Other responses

- `204`: No content
- `400`: Validation Error. Usually caused by a missing or invalid parameter.
- `401`: Failed to authenticate the user making the request
- `403`: Permission denied error
- `404`: Resource not found
- `default`: unexpected error

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) - [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
