---
title: "Retrieve hierarchical auto complete for client contact person"
method: GET
path: "/agency/{agency_id}/client/{client_id}/contact-person/hierarchical-autocomplete"
tags: ["Autocomplete"]
---

# Retrieve hierarchical auto complete for client contact person

`GET /agency/{agency_id}/client/{client_id}/contact-person/hierarchical-autocomplete`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency/{agency_id}/client/{client_id}/contact-person/hierarchical-autocomplete`
- Auth: HTTP basic and HTTP basic

## Query parameters

- `search_term` string, required
- `size` integer

## Response `200`

Success result

- object
  - `results` object[], required
    - `_id` string, required
    - `status` 'active' | 'archived', required
    - `full_name` string, required
    - `display_name` string, required
    - `client_type` 'organisation' | 'ward' | 'site', required
    - `client_name` string, required
    - `client_display_name` string, required
    - `client_id` string, required
    - `organisation_id` string, required
    - `site_id` string
    - `ward_id` string

## Other responses

- `400`: Validation errors
- `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)
