API and AI assistant reference
Read your characteristics, charts, flagged points and capability figures from your own scripts, reporting tools and AI assistants. Every endpoint and tool only reads: nothing here can change data in SPC Prism or in Plex.
The basics
- Address:
https://spcprism.com/api/v1/, version 1. Within version 1 things are only ever added, never taken away or renamed. - Sign-in: an access token from Connected apps, sent as a header:
Authorization: Bearer spcp_.... A token in the address is refused. - What a token sees: what the person who made it can see, today, narrowed to the sites and permissions chosen for the token. A characteristic outside that answers "not found".
- Every answer carries
api_version,data_through(the time of the newest record in your copy of Plex; the data is not live) and the sites it was computed for. - Limits: 60 requests a minute and 10,000 a day for each token. Past a limit the answer is
429with aRetry-Afterheader saying how many seconds to wait. - Only GET. Any other method answers
405.
Permissions
| Permission | Lets a token |
|---|---|
streams:read | Find characteristics, with their summary and capability figures |
charts:read | Open one characteristic's control chart |
signals:read | See which points were flagged, where and when |
sites:read | See the list of sites |
help:read | Read the help centre and the release notes |
production:read | See production: workcenter states, losses, the shift timeline and scrap |
suppliers:read | See the supplier scorecard: deliveries, on-time delivery, problem reports and returns by supplier |
dashboards:read | See the dashboards and what their tiles show |
shipping:read | See shipping on time and in full: releases due, shipped and late, by customer and part |
Endpoints
GET /api/v1/sites
The sites the caller may see: id, code and name. Needs sites:read.
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/sites"
GET /api/v1/streams
One page of characteristics with their stored summary figures (Cpk, Ppk, flagged points) on the default chart settings, and counts for everything in scope. Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
q | string | Words to find in part, operation, workcenter, characteristic or site. Every word must match. |
part | string | Part number or name contains this. |
operation | string | Operation contains this. |
workcenter | string | Workcenter contains this. |
kind | string | measured, passfail or all (default all). |
min | integer | Fewest subgroups (or checks) to be listed. Default 0. |
sort | string | attention (default), cpk, recent, name or failures. |
page | integer | Page number, from 1. |
per | integer | Rows a page, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/streams?q=bore&per=20"
GET /api/v1/chart
One characteristic's chart document: points, control limits, flagged points with the rule each broke, capability and a histogram. Pass/fail characteristics return a p chart of the daily failure rate. Needs charts:read.
| Parameter | Type | Meaning |
|---|---|---|
stream | integer | The characteristic id (from /api/v1/streams). Required. |
window | integer | Newest subgroups to chart: 25, 50, 125, 250, 500. Default 125. |
rules | string | Rule set: nelson, we, plex. Default nelson. |
baseline | integer | Subgroups the limits are calculated from (0 = all shown). Default 25. |
chart | string | For subgroups of two or more: auto (default: X-bar and S from a subgroup size of 10, else X-bar and R), xbar_r or xbar_s. |
limits | string | Which limits judge the points: calculated (default), approved (approved in SPC Prism) or source_system (saved in Plex). The answer lists which are available in limit_options. |
attribute | string | Pass/fail characteristics: p (default) or np. An np chart is given only when every day has the same number of checks. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/chart?stream=1&window=125&rules=nelson"
GET /api/v1/signals
Points flagged by a rule across characteristics in a period, newest first, each with the rule explained. The period ends at the data-through time unless you give one. Needs signals:read.
| Parameter | Type | Meaning |
|---|---|---|
days | integer | Length of the period in days, 1 to 90. Default 7. |
since | string | Start of the period (ISO 8601 date or time, UTC). Overrides days. |
until | string | End of the period (ISO 8601, UTC). Default: data through. |
rules | string | Rule set: nelson, we, plex. Default nelson. |
stream | integer | Only this characteristic. |
limit | integer | Most flagged points to return, 1 to 200. Default 100. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/signals?days=7"
GET /api/v1/capability
Measured characteristics ranked by capability from the stored summaries, weakest first unless asked. With stream=, that characteristic's capability trend, block by block. Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
metric | string | cpk (default) or ppk. |
order | string | weakest (default) or strongest. |
below | number | Only characteristics below this figure, for example 1.33. |
min | integer | Fewest subgroups to be ranked. Default 25. |
q | string | Words to find, as for /api/v1/streams. |
page | integer | Page number, from 1. |
per | integer | Rows a page, 1 to 200. Default 50. |
stream | integer | One characteristic: returns its trend instead of a ranking. |
block | integer | With stream=: subgroups in each block of the trend, 25 to 125. Default 50. |
period | string | With stream=: month or week gives Cp, Cpk, Pp and Ppk per calendar period with a 95 % range instead of blocks. |
months | integer | With period=: how many months back, 1 to 24. Default 12. |
min_readings | integer | With period=: fewest readings for a period to get figures, 10 to 500. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/capability?below=1.33&per=20"
GET /api/v1/help
With q=, matching help articles. With slug=, one article in Markdown. With neither, every category and its articles. Needs help:read.
| Parameter | Type | Meaning |
|---|---|---|
q | string | Words to search for. |
slug | string | One article by its slug. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/help?q=nelson"
GET /api/v1/grades
Sites, parts, operations or workcenters ranked by the grades of their characteristics (A1 to C3, see /help/how-characteristics-are-graded), with counts by letter, flagged characteristics and the worst Cpk. With heatmap=, the grade heat map too. Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
by | string | site (default), part, operation or workcenter. |
order | string | attention (default), grade, worst_cpk or name. |
q | string | Words to find in part, operation, workcenter or site. |
heatmap | string | site or workcenter: add the heat map of grades by that. |
page | integer | Page number, from 1. |
per | integer | Rows a page, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/grades?by=workcenter&heatmap=site"
GET /api/v1/triage
Characteristics with a reason to look (recent signals, not capable, off centre, frequent failures), highest priority first, each with its reasons in words; or the reviews people have left. Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
view | string | open (default) or reviewed. |
reason | string | Only one reason: signals, not_capable, off_target or failures. |
page | integer | Page number, from 1. |
per | integer | Rows a page, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/triage?reason=signals"
GET /api/v1/limits
Limit sets: proposed and approved in SPC Prism, or saved in Plex, with who proposed and approved them and when. With stream=, the full history of one characteristic. Nothing is ever written to Plex. Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
view | string | proposed (default), approved, source_system or history. |
stream | integer | One characteristic: its limit history and reviews. |
page | integer | Page number, from 1. |
per | integer | Rows a page, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/limits?view=approved"
GET /api/v1/missed-checks
Checks that came later than the inspection mode in Plex requires, by part and operation, workcenter or inspection mode, with the share on time. With group=, the late gaps of one group. Gaps over 24 hours are counted apart, as the workcenter was most likely not running. Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
by | string | group (default), workcenter or mode. |
q | string | Words to find in part, operation, workcenter or mode. |
group | integer | One group: its late gaps, newest first. |
long | integer | With group=: 1 to include gaps over 24 hours. |
page | integer | Page number, from 1. |
per | integer | Rows a page, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/missed-checks?by=workcenter"
GET /api/v1/workcenters
The workcenters with production records at the sites the caller may see, with the newest record of each, and the shifts those records use. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/workcenters"
GET /api/v1/loss
OEE with availability, performance and quality and the hours each lost; where the time went (Sankey nodes and links); the step-down from planned to fully productive time (waterfall); losses ranked by hours or by number of stops with the OEE each one would leave if removed; and the same per workcenter. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
days | integer | The last 1, 7, 30, 90 or 365 days that have records. Default 7. |
measure | string | hours (default) or stops: what the losses are ranked by. Ranked by stops, only stops are listed. |
from | string | First day (YYYY-MM-DD, the site's local day). With to=, overrides days. |
to | string | Last day, included (YYYY-MM-DD). |
workcenter | integer | Only this workcenter (an id from /api/v1/workcenters). |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/loss?days=30"
GET /api/v1/timeline
One workcenter's states over a day or a shift (every stop with its reason), production and scrap by hour, and OEE for that window. A replay of the copy, not live. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
workcenter | integer | The workcenter id. Default: the one with the newest record. |
day | string | The local day (YYYY-MM-DD). Default: the newest day with records. |
shift | integer | A shift id from /api/v1/workcenters: the window is that shift starting on day. Default: the whole day. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/timeline?day=2026-11-20"
GET /api/v1/scrap
Scrap ranked by reason, part, workcenter, shift, scrap category, fault, cavity or the workcenter that caused it, by quantity or cost, with each one's share and the cumulative share. Supplier scrap is counted apart in the totals. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
by | string | reason (default), part, workcenter, shift, category, fault, cavity or cause_workcenter. |
measure | string | quantity (default) or cost. |
days | integer | The last 1, 7, 30, 90 or 365 days that have records. Default 7. |
from | string | First day (YYYY-MM-DD). With to=, overrides days. |
to | string | Last day, included (YYYY-MM-DD). |
workcenter | integer | Only this workcenter. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/scrap?by=reason&days=30"
GET /api/v1/gage-studies
Gage R&R studies at the sites the caller may see, newest first, with % study variation, % tolerance and the number of distinct categories. With study=, one study in full: both methods (ANOVA and average and range), the ANOVA table and the chart data. Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
study | integer | One study by its id. |
q | string | Words to find in the study, gage or characteristic. |
page | integer | Page number, from 1. |
per | integer | Rows a page, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/gage-studies?per=20"
GET /api/v1/suppliers
Suppliers ranked by on-time delivery over a period, with deliveries, early and late ones, how late the late ones were, and the problem reports and returns naming each supplier. With supplier=, one supplier: deliveries by month and its late deliveries. A delivery is on time when it arrives on or before its due day. Needs suppliers:read.
| Parameter | Type | Meaning |
|---|---|---|
days | integer | The last 30, 90, 180 or 365 days. Default 90. |
order | string | on_time (default, weakest first), late, deliveries, problems or name. |
q | string | Words to find in the supplier code or name. |
supplier | integer | One supplier by its id. |
page | integer | Page number, from 1. |
per | integer | Rows a page, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/suppliers?days=90"
GET /api/v1/oee
OEE, availability, performance and quality for a period (and TEEP when the records cover the clock), the trend by day, week or month with the targets set in SPC Prism, a breakdown by site, workcenter group, workcenter, shift or part with each row's own trend, and a heat map of rows by day, week or month. Figures are combined from summed hours and pieces, never averaged. Days are production days. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
days | integer | The last 1, 7, 30, 90 or 365 days that have records. Default 7. |
from | string | First production day (YYYY-MM-DD). With to=, overrides days. |
to | string | Last production day, included (YYYY-MM-DD). |
interval | string | day (at most 92 days), week (366) or month (5 years). Default: by the length of the period. |
by | string | site, group, workcenter (default), shift or part. |
workcenter | integer | Only this workcenter. |
group | string | Only this workcenter group (its name). |
shift | integer | Only this shift (an id from /api/v1/workcenters). |
part | integer | Only this part operation (an id from a by=part answer). |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/oee?days=90&interval=week&by=shift"
GET /api/v1/stops
Stops of planned time ranked by hours or by how often they happened, by reason, reason group, workcenter or shift; stops by duration band and the share of short stops; mean time between failures and to repair per workcenter (downtime only, from 3 stops); and a trend of the five largest. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
days | integer | The last 1, 7, 30, 90 or 365 days that have records. Default 7. |
from | string | First production day (YYYY-MM-DD). With to=, overrides days. |
to | string | Last production day, included (YYYY-MM-DD). |
by | string | reason (default), group, workcenter or shift. |
measure | string | hours (default) or stops. |
short | integer | A short stop is under 2, 5 (default) or 15 minutes. |
workcenter | integer | Only this workcenter. |
group | string | Only this workcenter group. |
shift | integer | Only this shift. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/stops?days=30&measure=stops"
GET /api/v1/changeovers
Changeovers (adjacent setup states merged) with the part before and after, each against its goal (the incoming part's setup time in Plex, else the workcenter's goal); count, hours, mean and median by workcenter; the slowest part-to-part changes; the distribution of durations. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
days | integer | The last 1, 7, 30, 90 or 365 days that have records. Default 7. |
from | string | First production day (YYYY-MM-DD). With to=, overrides days. |
to | string | Last production day, included (YYYY-MM-DD). |
workcenter | integer | Only this workcenter. |
group | string | Only this workcenter group. |
over_goal | integer | 1 lists only changeovers that took longer than their goal. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/changeovers?days=30&over_goal=1"
GET /api/v1/rates
Each part at each workcenter: pieces per running hour against the ideal, standard and target rate held in Plex, with the rates that look wrong flagged (none held, faster than one and a half times ideal, under half of it, ideal slower than standard). Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
days | integer | The last 1, 7, 30, 90 or 365 days that have records. Default 7. |
from | string | First production day (YYYY-MM-DD). With to=, overrides days. |
to | string | Last production day, included (YYYY-MM-DD). |
view | string | all (default) or check: only the rates to check in Plex. |
workcenter | integer | Only this workcenter. |
group | string | Only this workcenter group. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/rates?days=30&view=check"
GET /api/v1/plant-timeline
Every workcenter of one site (or one workcenter group) side by side over a day or a shift: each one's states with their reasons and its OEE for the window. At most 60 workcenters. A replay of the copy, not live. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
site | integer | The site id. Default: the site with the newest record. |
group | string | Only this workcenter group. |
day | string | The local day (YYYY-MM-DD). Default: the newest day with records. |
shift | integer | A shift id: the window is that shift starting on day. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/plant-timeline?day=2026-11-20"
GET /api/v1/yield
First-pass yield (good of all made) for a period with its trend against the target set in SPC Prism, by workcenter, part or workcenter group; rolled throughput yield per part (the product of its operations' yields); with part=, that part's operations as a funnel. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
days | integer | The last 1, 7, 30, 90 or 365 days that have records. Default 7. |
from | string | First production day (YYYY-MM-DD). With to=, overrides days. |
to | string | Last production day, included (YYYY-MM-DD). |
interval | string | day, week or month. Default: by the length of the period. |
by | string | workcenter (default), part or group. |
part | integer | A part operation id: adds its part's operations as a funnel. |
workcenter | integer | Only this workcenter. |
group | string | Only this workcenter group. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/yield?days=90&by=part"
GET /api/v1/floor
One tile per active workcenter of a site (or workcenter group): its newest state and how long it had been in it, its OEE for the newest shift and production day against its target, and its biggest stop that day; stopped workcenters and the lowest OEE first. As of the newest record copied, not live. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
site | integer | The site id. Default: the site with the newest record. |
group | string | Only this workcenter group. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/floor"
GET /api/v1/shipping
Customer releases due by month: shipped on time (first shipment on or before the due day), in full (everything shipped reaches the quantity) and on time and in full (what had shipped by the due day reaches it); a breakdown by customer or part, weakest first; and the releases not shipped on time and in full, most days late first. Forecast releases and cancelled ones are left out; releases closed with nothing shipped are counted apart. Needs shipping:read.
| Parameter | Type | Meaning |
|---|---|---|
months | integer | The last 3, 6, 12 or 24 months that have releases. Default 12. |
by | string | customer (default) or part. |
customer | integer | Only this customer (an id from a by=customer answer). |
part | string | Only this part number. |
per | integer | Breakdown rows, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/shipping?months=12&by=customer"
GET /api/v1/wip
Active containers from the newest daily snapshot by operation, status or part, with how many are on hold and the oldest held stock; and the containers by kind (good to use, on hold, rework, scrap, other) day by day. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
days | integer | The trend: the last 30, 90, 180 or 365 days. Default 90. |
by | string | operation (default), status or part. |
kind | string | Only one kind: ok, hold, rework, scrap or other. |
per | integer | Breakdown rows, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/wip?by=operation"
GET /api/v1/jobs
Jobs due by month: completed on or before the due day, completed late, and open past due; the on-time share by part, weakest first; and the late jobs, most days late first. Cancelled and scrapped jobs are left out. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
months | integer | The last 3, 6, 12 or 24 months that have jobs due. Default 12. |
part | string | Only this part number. |
per | integer | Breakdown rows, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/jobs?months=6"
GET /api/v1/maintenance
Work requests raised and completed by month, the mean hours from raising to completing and the share completed within a day; by equipment; and the open requests with how long they have waited. Preventive requests (from a maintenance schedule) can be shown apart. Needs production:read.
| Parameter | Type | Meaning |
|---|---|---|
months | integer | The last 3, 6, 12 or 24 months. Default 12. |
kind | string | all (default), repair (not from a preventive schedule) or preventive. |
equipment | string | Only this equipment (its id as recorded). |
per | integer | Breakdown rows, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/maintenance?months=12&kind=repair"
GET /api/v1/problems
Problem reports raised by month (customer, supplier or internal) and closed, the mean days to close, a breakdown by problem type, part or workcenter, and the open reports with how long they have waited. Customer and supplier names are not included. Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
months | integer | The last 3, 6, 12 or 24 months. Default 12. |
by | string | type (default), part or workcenter. |
origin | string | Only customer, supplier or internal reports. |
per | integer | Breakdown rows, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/problems?months=12&by=part"
GET /api/v1/control-plan
The characteristics in the control plans in use, for the parts the site has checks for: how many have any check in the copy and how many were checked in the last 90 days, by part (least covered first), with the characteristics never checked (or not recently, or all). Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
view | string | missing (default: never checked), stale (not checked in 90 days) or all. |
q | string | Words to find in the part, operation or characteristic. |
per | integer | Part rows, 1 to 200. Default 50. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/control-plan?view=missing"
GET /api/v1/calibration
Gages in use by calibration status (overdue, due soon, due later, no due date), how many fall due each of the next twelve months, the calibrations recorded each of the last twelve, and a list of gages, soonest due first. Needs streams:read.
| Parameter | Type | Meaning |
|---|---|---|
within | integer | Due soon means within 30 (default), 60 or 90 days. |
view | string | due (default: overdue and due soon), overdue or all. |
q | string | Words to find in the gage id, description or type. |
sites | string | Comma-separated site ids to narrow to. Only ever narrows to sites the token may see. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/calibration?within=30"
GET /api/v1/whats-new
The newest release notes, newest first. Needs help:read.
| Parameter | Type | Meaning |
|---|---|---|
limit | integer | How many releases, 1 to 10. Default 3. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/whats-new?limit=3"
GET /api/v1/dashboards
The dashboards the caller may see: SPC Prism's own and the organisation's and sites' published ones. With id= (or builtin=), one dashboard's document and tiles; with history=1, its published versions; with compare=a,b, what changed between two versions, in sentences. Needs dashboards:read.
| Parameter | Type | Meaning |
|---|---|---|
id | integer | One dashboard by its id. |
builtin | string | One of SPC Prism's own dashboards by its key (from the list). |
version | integer | With id=: a published version. Default: the one published now. |
history | integer | With id=: 1 lists the published versions. |
compare | string | With id=: two version numbers, for example 3,5. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/dashboards"
GET /api/v1/dashboard-data
What up to four tiles of a dashboard show, read with the caller's own sites: a tile about a site the caller may not see answers not_found, and one whose kind needs a scope the caller lacks answers not_available. Tiles not reached within the request's time answer later; ask for them again. Needs dashboards:read.
| Parameter | Type | Meaning |
|---|---|---|
dashboard | integer | The dashboard id (or give builtin=). |
builtin | string | One of SPC Prism's own dashboards by its key. |
version | integer | A published version. Default: the one published now. |
tiles | string | Comma-separated tile ids, at most 4. Required. |
sites | string | Comma-separated site ids to narrow tiles that name no site to. Only ever narrows. |
curl -H "Authorization: Bearer spcp_YOUR_TOKEN" "https://spcprism.com/api/v1/dashboard-data?builtin=quality-at-a-glance&tiles=capability,look-first"
When something is refused
A refusal is JSON with success: false, a sentence in error and a short code:
| Status | Code | Means |
|---|---|---|
| 400 | bad_request, token_in_address | A parameter could not be used, or the token was put in the address. |
| 401 | invalid_token | The token is missing, removed or expired, or its owner has left the organisation. |
| 403 | insufficient_scope, access_switched_off, two_step_required | The token lacks that permission, the organisation has switched tokens off, or its owner must turn on two-step sign-in. |
| 404 | not_found | No such characteristic among the sites the token can see. |
| 405 | method_not_allowed | Only GET is answered. |
| 429 | slow_down | Too many requests. Wait the seconds in Retry-After. |
AI assistants (MCP)
The MCP server is at https://spcprism.com/mcp (Streamable HTTP). Assistants that support connectors sign in through SPC Prism and ask you to approve them; see Connecting an AI assistant. Tools that take a header can use an access token instead. The tools are:
| Tool | Needs | Answers |
|---|---|---|
spc_sites | sites:read | List the sites (Plex plants) this connection can see, with the time the data runs through. Start here when the question names a site. |
spc_streams | streams:read | Find characteristics (a measured feature of a part at an operation, or a pass/fail check) by part, operation, workcenter or name. Returns their ids and the stored summary on default settings (newest 125 subgroups, limits from the first 25, Nelson rules): Cpk, Ppk and how many points are flagged. Use an id with spc_chart, spc_signals or spc_capability. |
spc_chart | charts:read | One characteristic's control chart as numbers: control limits, capability (Cp, Cpk, Pp, Ppk), and every flagged point with the rule it broke. The same figures the SPC workbench shows for the same settings. Quote them with the window and rule set, for example "Cpk 1.12 over the newest 125 subgroups". Points are only included when asked. |
spc_signals | signals:read | What was flagged, where and when: points that broke a rule across the characteristics in scope, newest first, each with the rule explained in words. The period ends at the time the data runs through, not now, because the data is a copy. A flagged point means the process behaved unusually by a statistical rule; it is not proof of a cause or of bad parts. |
spc_capability | streams:read | Where capability is weakest (or strongest): measured characteristics ranked by Cpk or Ppk from the stored summary over the newest 125 subgroups. With stream_id, that characteristic's trend instead: Cpk and Ppk block by block, oldest first. A figure is only as good as the specification limits and the stability of the process behind it. |
spc_help_search | help:read | Search the SPC Prism help centre: how a rule, a chart or a capability figure works, and what to do when a point is flagged. Use it to explain things the way SPC Prism does. |
spc_help_article | help:read | One help article in full, as Markdown, by its slug from spc_help_search. Link the person to its url when they want to read more. |
spc_whats_new | help:read | What changed in recent SPC Prism releases, newest first. |
spc_grades | streams:read | Sites, parts, operations or workcenters ranked by the grades of their characteristics. A grade's letter is potential capability (A: under about 1 part in 10,000 outside specification even when centred; B: under 0.27 %; C: worse), its number how much of that potential is achieved (1: at least 95 %, 2: at least 90 %, 3: less). Counts by letter, flagged characteristics and the worst Cpk per row. Grades come from the stored summaries and fill in as data arrives; "not enough data" is not a bad grade. |
spc_look_first | streams:read | The review list: characteristics with a reason to look (points flagged in the newest data, not capable, off centre, frequent failures), highest priority first, each with its reasons in words and its last review. view=reviewed lists the reviews people left instead. A characteristic leaves the list when someone reviews it, until something new happens. |
spc_limits | streams:read | Control limit sets: proposed and approved in SPC Prism (with who proposed and approved them and when), or saved in Plex. With stream_id, one characteristic's full limit history and reviews. Nothing is ever written back to Plex: approved limits live in SPC Prism. |
spc_missed_checks | streams:read | Checks that came later than the interval Plex's inspection mode requires, by part and operation, workcenter or inspection mode, with the share of intervals on time. With group_id, the late gaps of one group, newest first. Gaps over 24 hours are counted apart (the workcenter was probably not running) and listed only with include_long. |
spc_loss | production:read | OEE with availability, performance and quality for a period, the hours each lost, the losses ranked by hours with the OEE each would leave if removed (the biggest lever), and the same per workcenter. Performance is left blank where Plex has no usable ideal rate; say so rather than guessing. Figures are for the period named in the answer, which ends at the newest record, not today. |
spc_timeline | production:read | One workcenter's states over a local day or a shift (running, setup, down, idle, off, no record), each stop with its reason, production and scrap by hour, and OEE for that window. A replay of the copy, a few hours behind live, never the current state. Without workcenter_id, the workcenter with the newest record; the answer lists the workcenters and shifts to choose from. |
spc_scrap | production:read | Scrap ranked by reason, part, workcenter, shift, scrap category, fault, cavity or the workcenter that caused it, by pieces or by cost as Plex records it, with each one's share and the running share, for a period ending at the newest record. Category, fault, cavity and causing workcenter appear only where Plex records them; the answer says when it does not. Supplier scrap is counted apart in the totals. |
spc_gage_studies | streams:read | Gage repeatability and reproducibility studies (copied from Plex or entered in SPC Prism), newest first, with the gage's share of the study variation (% GRR), of the tolerance, and the number of distinct categories. With study_id, one study in full by both methods (ANOVA and average and range). Under 10 % GRR is usually acceptable, 10 to 30 % may be, over 30 % is not; 5 or more distinct categories is the usual minimum. |
spc_suppliers | suppliers:read | Suppliers ranked by on-time delivery over a period ending at the newest delivery: deliveries (receipts), early and late ones and how late, and the problem reports and returns naming each. On time means received on or before the due day; receipts without a due date are counted but not judged; a supplier is ranked from 5 judged deliveries. With supplier_id, one supplier by month with its late deliveries. Rejections and receiving inspections are not part of it: the records copied from Plex do not name the supplier. |
spc_oee | production:read | OEE with availability, performance and quality for a period, its trend by day, week or month against the targets set in SPC Prism, and a breakdown by site, workcenter group, workcenter, shift or part with each row's trend. Days are production days (a night shift is one day). Figures are combined from summed hours and pieces, never averaged; performance is blank where Plex has no usable ideal rate, say so rather than guessing. Figures are for the period named in the answer, which ends at the newest record, not today; the copy runs a few hours behind live Plex. |
spc_stops | production:read | Stops of planned time ranked by hours or by count, by reason, reason group, workcenter or shift; stops by duration band and the share of short stops; mean time between failures and to repair per workcenter (downtime only, from 3 stops); the five largest over time. Short stops appear only where Plex records them. Figures are for the period named in the answer, which ends at the newest record, not today; the copy runs a few hours behind live Plex. |
spc_changeovers | production:read | Changeovers with the part before and after, each against its goal (the incoming part's setup time in Plex, else the workcenter's goal; many have none), count and hours by workcenter, the slowest part-to-part changes, longest first. Figures are for the period named in the answer, which ends at the newest record, not today; the copy runs a few hours behind live Plex. |
spc_rates | production:read | Each part at each workcenter: pieces per running hour against the ideal, standard and target rates in Plex, and the rates that look wrong (none held, over one and a half times ideal, under half, ideal slower than standard). Rates are corrected in Plex, never here. Figures are for the period named in the answer, which ends at the newest record, not today; the copy runs a few hours behind live Plex. |
spc_plant_timeline | production:read | Every workcenter of one site (or group) over a day or shift: its stops with reasons and its OEE for the window. A replay of the copy, never the current state. |
spc_yield | production:read | First-pass yield (good of everything made) by workcenter, part or group with its trend against the target, and rolled throughput yield per part (the product of its operations' yields). Rework is not recorded in the Plex reporting copy, so a reworked piece counts as good. Figures are for the period named in the answer, which ends at the newest record, not today; the copy runs a few hours behind live Plex. |
spc_floor | production:read | Each active workcenter of a site: its newest state and how long it had been in it, its OEE for the newest shift against target, its biggest stop that day; stopped ones first. As of the newest record copied (say so: never "right now"). |
spc_shipping | shipping:read | Customer releases due by month: on time (first shipment on or before the due day), in full (everything shipped reaches the quantity) and on time and in full (shipped by the due day reaches it), by customer or part weakest first, and the releases that were not, most days late first. Forecast and cancelled releases are left out; releases closed with nothing shipped are counted apart and not judged. The copy runs a few hours behind live Plex; say so rather than "right now". |
spc_wip | production:read | Active containers from the newest daily snapshot by operation, status or part: how many, how many on hold (a status Plex marks as a hold or defective) and since when, and the trend by day. Quantities are in each part's own unit: compare containers across parts, not quantities. The copy runs a few hours behind live Plex; say so rather than "right now". |
spc_jobs | production:read | Jobs due by month: completed on or before the due day, completed late, open past due; the on-time share by part, weakest first; the late jobs, most days late first. By job and part: Plex does not record job operations by workcenter at the sites measured. The copy runs a few hours behind live Plex; say so rather than "right now". |
spc_maintenance | production:read | Work requests raised and completed by month, mean hours from raising to completing and the share completed within a day, by equipment, and the open requests by how long they have waited. Preventive (from a schedule) can be shown apart. There is no downtime by equipment: nothing copied says the line was down. The copy runs a few hours behind live Plex; say so rather than "right now". |
spc_problems | streams:read | Problem reports raised by month (customer, supplier or internal) and closed, mean days to close, by problem type, part or workcenter, and the open ones by age. Names of customers and suppliers are not included. The copy runs a few hours behind live Plex; say so rather than "right now". |
spc_control_plan | streams:read | Of the characteristics in the control plans in use (for parts the site has checks for), how many have any check in the copy and how many were checked in the last 90 days, by part, with the ones never checked. A match is the same part and specification at any operation; say that a characteristic "has no check in the copy", not that nobody checks it. |
spc_calibration | streams:read | Gages in use by calibration status (overdue, due soon, due later, no due date) from the next calibration day kept in Plex, how many fall due each of the next twelve months, the calibrations recorded each of the last twelve, and the gages soonest due first. |
spc_dashboards | dashboards:read | The dashboards this connection may open: SPC Prism's own (by builtin key) and the organisation's and sites' published ones (by id), with their published version. Use spc_dashboard to read one. |
spc_dashboard | dashboards:read | One dashboard's tiles (kind, title, settings in words, which site) and its version. With with_data, the rows behind each tile (at most 20 a tile), read with this connection's own sites: a tile about a site it may not see says not_found, one needing a scope it lacks says not_available. Data runs to the data_through time, not live. |