---
title: "Programs that implement a facility"
method: GET
path: "/v1/facilities/{code}/programs"
tags: ["Facilities"]
---

# Programs that implement a facility

`GET /v1/facilities/{code}/programs`

## Request

- Base URL: `https://api.rossdata.dev`
- URL: `https://api.rossdata.dev/v1/facilities/{code}/programs`
- Auth: none declared

Cross-link: the program(s) that run this screen, each tagged with a declared / titleId match label. Complements /v1/programs/{id}/facilities.

## Path parameters

- `code` string, required

## Response `200`

OK

- FacilityPrograms: The program(s) that implement a UI facility.
  - `facility` string
  - `name` string, nullable
  - `declares` string, nullable: The GEM<mod>:<program> the menu entry launches
  - `found` boolean
  - `count` integer
  - `programs` object[]
    - `basename` string
    - `programId` string, nullable: Declared TITLE id; null for internal programs
    - `title` string, nullable
    - `name` string, nullable: Display name — the TITLE label, or the registry description of a menu facility it backs for untitled programs
    - `module` string
    - `moduleName` string, nullable
    - `type` string, nullable: Program-type letter
    - `typeName` string, nullable
    - `layer` 'base' | 'vendor-core'
    - `tableCount` integer: Data Dictionary tables referenced
    - `writeCount` integer: Of the referenced tables, how many the program writes to (FIND IN.../LOCK=WRITE, ADD, or DELETE)
    - `procedureCount` integer: PROCEDURE_FORM blocks
    - `callsCount` integer: Programs this one invokes (outbound call edges)
    - `calledByCount` integer: Programs that invoke this one
    - `menuCount` integer: Menu facilities this program backs
    - `url` string, uri
    - `match` 'declared' | 'titleId' | 'declared+titleId': How the facility↔program link was derived: declared = named by the facility's menu entry (authoritative); titleId = TITLE id equals the facility code; declared+titleId = both agree.
  - `note` string
  - `links` object

---

[API](https://skmtc.dev/rossdata/apis/rossdata-dev-api.md) · [All operations](https://skmtc.dev/rossdata/apis/rossdata-dev-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rossdata/apis/rossdata-dev-api/revisions/8c796f2e258c?raw)
