Skip to content

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 429 with a Retry-After header saying how many seconds to wait.
  • Only GET. Any other method answers 405.

Permissions

PermissionLets a token
streams:readFind characteristics, with their summary and capability figures
charts:readOpen one characteristic's control chart
signals:readSee which points were flagged, where and when
sites:readSee the list of sites
help:readRead the help centre and the release notes
production:readSee production: workcenter states, losses, the shift timeline and scrap
suppliers:readSee the supplier scorecard: deliveries, on-time delivery, problem reports and returns by supplier
dashboards:readSee the dashboards and what their tiles show
shipping:readSee 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.

ParameterTypeMeaning
qstringWords to find in part, operation, workcenter, characteristic or site. Every word must match.
partstringPart number or name contains this.
operationstringOperation contains this.
workcenterstringWorkcenter contains this.
kindstringmeasured, passfail or all (default all).
minintegerFewest subgroups (or checks) to be listed. Default 0.
sortstringattention (default), cpk, recent, name or failures.
pageintegerPage number, from 1.
perintegerRows a page, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
streamintegerThe characteristic id (from /api/v1/streams). Required.
windowintegerNewest subgroups to chart: 25, 50, 125, 250, 500. Default 125.
rulesstringRule set: nelson, we, plex. Default nelson.
baselineintegerSubgroups the limits are calculated from (0 = all shown). Default 25.
chartstringFor 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.
limitsstringWhich 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.
attributestringPass/fail characteristics: p (default) or np. An np chart is given only when every day has the same number of checks.
sitesstringComma-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.

ParameterTypeMeaning
daysintegerLength of the period in days, 1 to 90. Default 7.
sincestringStart of the period (ISO 8601 date or time, UTC). Overrides days.
untilstringEnd of the period (ISO 8601, UTC). Default: data through.
rulesstringRule set: nelson, we, plex. Default nelson.
streamintegerOnly this characteristic.
limitintegerMost flagged points to return, 1 to 200. Default 100.
sitesstringComma-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.

ParameterTypeMeaning
metricstringcpk (default) or ppk.
orderstringweakest (default) or strongest.
belownumberOnly characteristics below this figure, for example 1.33.
minintegerFewest subgroups to be ranked. Default 25.
qstringWords to find, as for /api/v1/streams.
pageintegerPage number, from 1.
perintegerRows a page, 1 to 200. Default 50.
streamintegerOne characteristic: returns its trend instead of a ranking.
blockintegerWith stream=: subgroups in each block of the trend, 25 to 125. Default 50.
periodstringWith stream=: month or week gives Cp, Cpk, Pp and Ppk per calendar period with a 95 % range instead of blocks.
monthsintegerWith period=: how many months back, 1 to 24. Default 12.
min_readingsintegerWith period=: fewest readings for a period to get figures, 10 to 500. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
qstringWords to search for.
slugstringOne 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.

ParameterTypeMeaning
bystringsite (default), part, operation or workcenter.
orderstringattention (default), grade, worst_cpk or name.
qstringWords to find in part, operation, workcenter or site.
heatmapstringsite or workcenter: add the heat map of grades by that.
pageintegerPage number, from 1.
perintegerRows a page, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
viewstringopen (default) or reviewed.
reasonstringOnly one reason: signals, not_capable, off_target or failures.
pageintegerPage number, from 1.
perintegerRows a page, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
viewstringproposed (default), approved, source_system or history.
streamintegerOne characteristic: its limit history and reviews.
pageintegerPage number, from 1.
perintegerRows a page, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
bystringgroup (default), workcenter or mode.
qstringWords to find in part, operation, workcenter or mode.
groupintegerOne group: its late gaps, newest first.
longintegerWith group=: 1 to include gaps over 24 hours.
pageintegerPage number, from 1.
perintegerRows a page, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
sitesstringComma-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.

ParameterTypeMeaning
daysintegerThe last 1, 7, 30, 90 or 365 days that have records. Default 7.
measurestringhours (default) or stops: what the losses are ranked by. Ranked by stops, only stops are listed.
fromstringFirst day (YYYY-MM-DD, the site's local day). With to=, overrides days.
tostringLast day, included (YYYY-MM-DD).
workcenterintegerOnly this workcenter (an id from /api/v1/workcenters).
sitesstringComma-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.

ParameterTypeMeaning
workcenterintegerThe workcenter id. Default: the one with the newest record.
daystringThe local day (YYYY-MM-DD). Default: the newest day with records.
shiftintegerA shift id from /api/v1/workcenters: the window is that shift starting on day. Default: the whole day.
sitesstringComma-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.

ParameterTypeMeaning
bystringreason (default), part, workcenter, shift, category, fault, cavity or cause_workcenter.
measurestringquantity (default) or cost.
daysintegerThe last 1, 7, 30, 90 or 365 days that have records. Default 7.
fromstringFirst day (YYYY-MM-DD). With to=, overrides days.
tostringLast day, included (YYYY-MM-DD).
workcenterintegerOnly this workcenter.
sitesstringComma-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.

ParameterTypeMeaning
studyintegerOne study by its id.
qstringWords to find in the study, gage or characteristic.
pageintegerPage number, from 1.
perintegerRows a page, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
daysintegerThe last 30, 90, 180 or 365 days. Default 90.
orderstringon_time (default, weakest first), late, deliveries, problems or name.
qstringWords to find in the supplier code or name.
supplierintegerOne supplier by its id.
pageintegerPage number, from 1.
perintegerRows a page, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
daysintegerThe last 1, 7, 30, 90 or 365 days that have records. Default 7.
fromstringFirst production day (YYYY-MM-DD). With to=, overrides days.
tostringLast production day, included (YYYY-MM-DD).
intervalstringday (at most 92 days), week (366) or month (5 years). Default: by the length of the period.
bystringsite, group, workcenter (default), shift or part.
workcenterintegerOnly this workcenter.
groupstringOnly this workcenter group (its name).
shiftintegerOnly this shift (an id from /api/v1/workcenters).
partintegerOnly this part operation (an id from a by=part answer).
sitesstringComma-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.

ParameterTypeMeaning
daysintegerThe last 1, 7, 30, 90 or 365 days that have records. Default 7.
fromstringFirst production day (YYYY-MM-DD). With to=, overrides days.
tostringLast production day, included (YYYY-MM-DD).
bystringreason (default), group, workcenter or shift.
measurestringhours (default) or stops.
shortintegerA short stop is under 2, 5 (default) or 15 minutes.
workcenterintegerOnly this workcenter.
groupstringOnly this workcenter group.
shiftintegerOnly this shift.
sitesstringComma-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.

ParameterTypeMeaning
daysintegerThe last 1, 7, 30, 90 or 365 days that have records. Default 7.
fromstringFirst production day (YYYY-MM-DD). With to=, overrides days.
tostringLast production day, included (YYYY-MM-DD).
workcenterintegerOnly this workcenter.
groupstringOnly this workcenter group.
over_goalinteger1 lists only changeovers that took longer than their goal.
sitesstringComma-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.

ParameterTypeMeaning
daysintegerThe last 1, 7, 30, 90 or 365 days that have records. Default 7.
fromstringFirst production day (YYYY-MM-DD). With to=, overrides days.
tostringLast production day, included (YYYY-MM-DD).
viewstringall (default) or check: only the rates to check in Plex.
workcenterintegerOnly this workcenter.
groupstringOnly this workcenter group.
sitesstringComma-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.

ParameterTypeMeaning
siteintegerThe site id. Default: the site with the newest record.
groupstringOnly this workcenter group.
daystringThe local day (YYYY-MM-DD). Default: the newest day with records.
shiftintegerA shift id: the window is that shift starting on day.
sitesstringComma-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.

ParameterTypeMeaning
daysintegerThe last 1, 7, 30, 90 or 365 days that have records. Default 7.
fromstringFirst production day (YYYY-MM-DD). With to=, overrides days.
tostringLast production day, included (YYYY-MM-DD).
intervalstringday, week or month. Default: by the length of the period.
bystringworkcenter (default), part or group.
partintegerA part operation id: adds its part's operations as a funnel.
workcenterintegerOnly this workcenter.
groupstringOnly this workcenter group.
sitesstringComma-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.

ParameterTypeMeaning
siteintegerThe site id. Default: the site with the newest record.
groupstringOnly this workcenter group.
sitesstringComma-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.

ParameterTypeMeaning
monthsintegerThe last 3, 6, 12 or 24 months that have releases. Default 12.
bystringcustomer (default) or part.
customerintegerOnly this customer (an id from a by=customer answer).
partstringOnly this part number.
perintegerBreakdown rows, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
daysintegerThe trend: the last 30, 90, 180 or 365 days. Default 90.
bystringoperation (default), status or part.
kindstringOnly one kind: ok, hold, rework, scrap or other.
perintegerBreakdown rows, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
monthsintegerThe last 3, 6, 12 or 24 months that have jobs due. Default 12.
partstringOnly this part number.
perintegerBreakdown rows, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
monthsintegerThe last 3, 6, 12 or 24 months. Default 12.
kindstringall (default), repair (not from a preventive schedule) or preventive.
equipmentstringOnly this equipment (its id as recorded).
perintegerBreakdown rows, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
monthsintegerThe last 3, 6, 12 or 24 months. Default 12.
bystringtype (default), part or workcenter.
originstringOnly customer, supplier or internal reports.
perintegerBreakdown rows, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
viewstringmissing (default: never checked), stale (not checked in 90 days) or all.
qstringWords to find in the part, operation or characteristic.
perintegerPart rows, 1 to 200. Default 50.
sitesstringComma-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.

ParameterTypeMeaning
withinintegerDue soon means within 30 (default), 60 or 90 days.
viewstringdue (default: overdue and due soon), overdue or all.
qstringWords to find in the gage id, description or type.
sitesstringComma-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.

ParameterTypeMeaning
limitintegerHow 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.

ParameterTypeMeaning
idintegerOne dashboard by its id.
builtinstringOne of SPC Prism's own dashboards by its key (from the list).
versionintegerWith id=: a published version. Default: the one published now.
historyintegerWith id=: 1 lists the published versions.
comparestringWith 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.

ParameterTypeMeaning
dashboardintegerThe dashboard id (or give builtin=).
builtinstringOne of SPC Prism's own dashboards by its key.
versionintegerA published version. Default: the one published now.
tilesstringComma-separated tile ids, at most 4. Required.
sitesstringComma-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:

StatusCodeMeans
400bad_request, token_in_addressA parameter could not be used, or the token was put in the address.
401invalid_tokenThe token is missing, removed or expired, or its owner has left the organisation.
403insufficient_scope, access_switched_off, two_step_requiredThe token lacks that permission, the organisation has switched tokens off, or its owner must turn on two-step sign-in.
404not_foundNo such characteristic among the sites the token can see.
405method_not_allowedOnly GET is answered.
429slow_downToo 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:

ToolNeedsAnswers
spc_sitessites:readList the sites (Plex plants) this connection can see, with the time the data runs through. Start here when the question names a site.
spc_streamsstreams:readFind 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_chartcharts:readOne 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_signalssignals:readWhat 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_capabilitystreams:readWhere 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_searchhelp:readSearch 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_articlehelp:readOne 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_newhelp:readWhat changed in recent SPC Prism releases, newest first.
spc_gradesstreams:readSites, 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_firststreams:readThe 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_limitsstreams:readControl 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_checksstreams:readChecks 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_lossproduction:readOEE 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_timelineproduction:readOne 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_scrapproduction:readScrap 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_studiesstreams:readGage 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_supplierssuppliers:readSuppliers 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_oeeproduction:readOEE 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_stopsproduction:readStops 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_changeoversproduction:readChangeovers 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_ratesproduction:readEach 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_timelineproduction:readEvery 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_yieldproduction:readFirst-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_floorproduction:readEach 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_shippingshipping:readCustomer 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_wipproduction:readActive 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_jobsproduction:readJobs 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_maintenanceproduction:readWork 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_problemsstreams:readProblem 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_planstreams:readOf 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_calibrationstreams:readGages 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_dashboardsdashboards:readThe 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_dashboarddashboards:readOne 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.