---
title: "Returns a list of linked clients on Agency context"
method: GET
path: "/agency/{agency_id}/site"
tags: ["Agency Linked Clients"]
---

# Returns a list of linked clients on Agency context

`GET /agency/{agency_id}/site`

## Query parameters

- `sOrganisationName` string
- `sSiteName` string
- `sSiteAddress` string
- `sSiteProvince` string
- `sSitePostCode` string
- `bAgencyLinked` boolean
- `page` integer
- `items_per_page` integer
- `sortBy` string[]

## Response `200`

List of linked clients on agency context

- AgencySiteReturn[]
  - `sOrganisationName` string, required
  - `sOrganisationId` string, required
  - `sSiteId` string, required
  - `sSiteName` string, required
  - `sSiteTypeName` string, required
  - `sSiteTypeId` string, required
  - `sSiteAddress` string, required
  - `sSitePostCode` string, required
  - `sAgencyName` string, required
  - `sAgencyId` string, required
  - `bAgencyLinked` boolean, required
  - `sAgencyOrgType` string, required
  - `dtCreated` string, date-time, required
  - `dtModified` string, date-time, required
  - `id` string, required
  - `objSiteGeoLocation` ObjSiteGeoLocation
    - `fLongitude` number, required
    - `fLatitude` number, required
  - `sSiteProvince` string

## Other responses

- `204` — No Content. There were no records to return based on your query.
- `400` — Validation error due to some missing or incorrect values
- `401` — Authorization Error. Thrown if the user does not have access to resource.
- `403` — Permission denied error
- `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/6e2cb83db3a9?raw)
