---
title: "Get all relationships for a facility"
method: GET
path: "/facilities/{id}/relationships/all"
tags: ["Facility"]
---

# Get all relationships for a facility

`GET /facilities/{id}/relationships/all`

Returns a single, deeply-nested snapshot of every relationship a facility participates in — groups (groupMemberships[]), the networks and contracts under each group (facilityNetworks[]), the facility's locations both independent of any group (tenantFacilityLocations[]) and nested under each group (groupMemberships[].facilityLocations[] with their own network/plan participation), and practitioners. Use this to get a comprehensive view of a facility's associations in a single call instead of querying individual relationship endpoints separately. Note: practitioners are only present nested under groupMemberships[].facilityLocations[].practitionersAtLocation[] (i.e. scoped to a specific group-location) — there is no facility-wide practitioner roster field on this endpoint; a prior facility-wide practitioner array was intentionally removed to avoid oversized rows, so consumers needing the full practitioner roster for a facility must call a dedicated practitioner endpoint instead.

## Path parameters

- `id` string, required

## Headers

- `tenant-id` string

## Response `200`

All the relationships that the facility belongs to successfully retrieved

- object

## Other responses

- `401` — Unauthorized - Authentication required
- `403` — Forbidden - Insufficient permissions
- `404` — Facility not found with the given ID for tenant
- `500` — Internal server error

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/563848e0ecc0/schema)
