---
title: "Get Facility Sla"
method: GET
path: "/api/fulfillment/sla/facilities"
tags: ["fulfillment"]
---

# Get Facility Sla

`GET /api/fulfillment/sla/facilities`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/fulfillment/sla/facilities`
- Auth: none declared

⛔THE SLA, LIVE, BY PIECE (Frederick, 2026-10-16: "it should be a live
representation of are we within SLA for this facility? Or are we
outside? ... Kind of like uptime ... rolling 30 days"). One row per
contract facility (a facility code, FLR-104). Over the rolling last 30
Pacific days, today included: `within` = pieces shipped by their deadline,
`outside` = pieces shipped after it PLUS pieces not shipped yet that are
already past it (`overdue`), `not_yet_counted` = unshipped and still
inside the deadline, `sla_pct` = within / (within + outside). A facility
is OUTSIDE the SLA right now while `overdue > 0`; `oldest_past_deadline_
days` says how far past the oldest one is and `as_of` is when this was
read. The page and Rooster (`rooster/page_reads.json`) read this one
function; the rule and its history are in
docs/00_business_rules/FULFILLMENT_AND_FLOOR.md (FLR-44) and
`sla_read.get_facility_sla`.

The window was 31 days until 2026-10-16 (a rolling window rather than an
all-time one, so ancient history does not dilute current performance).

`org_rollup` (added 2026-11-21, cleanup finding A23-web-pages-1-03): every row also carries its organization's
roll-up from `org_sla_rollup` (facility count, shipped, late, overdue and the server's `sla_pct`), so no page
re-computes the SLA percent. Additive: every other key is unchanged.

## Query parameters

- `period_start` string, date, nullable
- `period_end_exclusive` string, date, nullable

## Response `200`

Successful Response

- object[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
