Skip to content

Recipes ​

The API has no metric endpoints. A dashboard tile is a summary request: a filter that picks the records, and a group_by that splits the count. This page gives the exact request behind each common tile and says precisely what it counts, so you can copy it into the guides for Power BI, Grafana, Excel or Python.

All examples use the production base URL, https://api.continualapp.com/public/v1. Each recipe works for any factory scope: add factory_id, line_id or machine_id to narrow it.

How Summaries Work ​

GET /check-instances/summary and GET /actions/summary take exactly the same filters as their lists, plus group_by. They return one row per combination of the grouped fields, with a count:

json
{ "groups": [{ "line_id": "…", "count": 8, "completion_rate": null }] }
  • Only the fields you group by appear, plus count (and completion_rate for check instances).
  • With no group_by, you get a single row with the total. An empty population returns {"groups":[{"count":0,"completion_rate":null}]} for check instances, and {"groups":[{"count":0}]} for actions.
  • With a group_by, an empty population returns {"groups":[]}.
  • group_by takes a comma-separated list. For check instances it accepts status, origin, check_kind, factory_id, line_id, machine_id, check_id, due_date, due_week and due_month. For actions it accepts status, category, origin, root_cause, factory_id, line_id, machine_id, check_id, created_date, created_week and created_month.
  • Check-instance summaries cover the last 30 days of due_at unless you send due_from or due_to. The maximum range is 366 days.
  • Summaries may be cached for up to 120 seconds. See Caching.

Results carry IDs. Join them to /factories, /lines and /machines for names.

The Completion Rate ​

Each check-instance group also returns completion_rate:

completion_rate = completed ÷ (completed + overdue + missed) × 100

The rate is computed over the rows you selected, in that group. Skipped, not applicable, expired and still-due instances count towards count but not towards the rate. The rate is null when a group has no completed, overdue or missed instances; a group with only overdue instances has a rate of 0. It is also null in every group when you group by status, because each such group holds a single status.

The formula is fixed. The population is yours: the same formula over different filters gives a different number. The completed against scheduled recipe gives the filters that reproduce the portal. The Metrics Glossary defines the portal's completion rate.

Due Now ​

Checks that are due and still waiting to be done, per line:

http
GET /check-instances/summary?status=due&group_by=line_id
sh
curl --get https://api.continualapp.com/public/v1/check-instances/summary \
  -H "Authorization: Bearer $CONTINUAL_API_KEY" \
  --data-urlencode 'status=due' \
  --data-urlencode 'group_by=line_id'
json
{
  "groups": [
    { "line_id": "08284ba4-d647-4739-9086-d7093410b518", "count": 8, "completion_rate": null },
    { "line_id": "77aa5ca4-32dc-44b1-9f09-156f2006c99e", "count": 11, "completion_rate": null }
  ]
}

What it counts: every check instance that is due now and hasn't been done, skipped or marked overdue. The API only exposes instances once they're due, so every due instance is past its due time.

Why there's no time parameter: none is needed, because exposed instances are already due. It also keeps the request identical from one poll to the next, so repeat polls are served from the cache. Like every summary, it covers instances due in the last 30 days by default; that only matters for a check whose grace period is longer than that, in which case add a due_from further back (up to 366 days).

Timing: when an instance's grace period ends, it stays due until the next run of the job that records status changes, which runs every 5 minutes. So an instance can count as due for up to about 5 minutes after its grace period has ended, and then it moves to overdue.

Overdue Now ​

Scheduled checks whose grace period ended without a result, and whose closure hasn't been recorded yet, per line:

http
GET /check-instances/summary?status=overdue&group_by=line_id
sh
curl --get https://api.continualapp.com/public/v1/check-instances/summary \
  -H "Authorization: Bearer $CONTINUAL_API_KEY" \
  --data-urlencode 'status=overdue' \
  --data-urlencode 'group_by=line_id'

What it counts: every instance recorded as overdue right now and due in the last 30 days, the summary's default range. An overdue instance closes, and becomes missed, 7 days after its grace period ends, or sooner when the next occurrence of its check comes due. So the default range holds every overdue instance unless a check's grace period is longer than about 23 days; for those, add a due_from further back (up to 366 days), or count the records from GET /check-instances?status=overdue, whose default range is the last 366 days. Add this tile next to due now to show all outstanding work.

overdue is the recorded status, not a promise that a late completion will be accepted: once an instance passes either cutoff it is refused, and it stays overdue here until the 5-minute job records the closure.

Missed in a Period ​

Scheduled checks that closed without a result, per line, for a period:

http
GET /check-instances/summary?status=missed&origin=scheduled&check_kind=cil,centreline&include_archived=false&due_from=2026-10-16T00:00:00%2B10:00&due_to=2026-10-17T00:00:00%2B10:00&group_by=line_id
sh
curl --get https://api.continualapp.com/public/v1/check-instances/summary \
  -H "Authorization: Bearer $CONTINUAL_API_KEY" \
  --data-urlencode 'status=missed' \
  --data-urlencode 'origin=scheduled' \
  --data-urlencode 'check_kind=cil,centreline' \
  --data-urlencode 'include_archived=false' \
  --data-urlencode 'due_from=2026-10-16T00:00:00+10:00' \
  --data-urlencode 'due_to=2026-10-17T00:00:00+10:00' \
  --data-urlencode 'group_by=line_id'

What it counts: scheduled CIL and centreline instances that were due in the period and have closed without a result. The period is chosen by due time, not by when the instance closed. Note that + in an offset must be URL-encoded as %2B; --data-urlencode does this for you.

  • Every miss that counts against the rate is status=overdue,missed: the portal's completion rate counts overdue checks as misses too. Use that for "missed today" if you want today's not-yet-closed misses included.
  • For "missed today", send today's local midnight as due_from and omit due_to. The upper bound then defaults to now.
  • For a trend, replace line_id with due_date (or add it: group_by=line_id,due_date).
  • Only scheduled work can be missed: checks someone triggered by hand become expired, which is never a miss. origin=scheduled makes that explicit.
  • Listing check kinds explicitly means a new kind added later can't change this figure.
  • completion_rate is 0 in every row here, because you filtered to misses only. Ignore it for this tile.

How These Differ From the Apps ​

The portal's Currently due tile and the apps' to-do lists answer "what can be done now?". These recipes report records, so they differ in a few deliberate ways:

In the appsIn the APIWhy
Instances for a format the line isn't running are hiddenEvery instance is reportedFormat filtering is a presentation choice
One instance per checkEvery instanceLists are records; this only differs when grace periods overlap
A due instance just past its grace period is hidden until the 5-minute job runsIt is due until that job runsThe recorded status is still due
A newly closed instance disappears at onceIt is overdue until the 5-minute job records the closureThe status is recorded by that job

The 7-day late-completion window is the same rule everywhere. Status changes are recorded by a job that normally runs every 5 minutes, and summaries can be cached for up to 2 minutes more, so allow for some lag; a delayed job can lag longer.

Completed Against Scheduled, per Day ​

The portal's headline completion rate, per factory-local day:

http
GET /check-instances/summary?origin=scheduled&check_kind=cil,centreline&include_archived=false&due_from=2026-10-01T00:00:00%2B10:00&due_to=2026-10-17T00:00:00%2B10:00&group_by=due_date
sh
curl --get https://api.continualapp.com/public/v1/check-instances/summary \
  -H "Authorization: Bearer $CONTINUAL_API_KEY" \
  --data-urlencode 'origin=scheduled' \
  --data-urlencode 'check_kind=cil,centreline' \
  --data-urlencode 'include_archived=false' \
  --data-urlencode 'due_from=2026-10-01T00:00:00+10:00' \
  --data-urlencode 'due_to=2026-10-17T00:00:00+10:00' \
  --data-urlencode 'group_by=due_date'
json
{
  "groups": [
    { "due_date": "2026-10-12", "count": 498, "completion_rate": 92.4 },
    { "due_date": "2026-10-13", "count": 108, "completion_rate": 96.5 }
  ]
}

What it means: each row is one factory-local day. completion_rate is completed ÷ (completed + overdue + missed) × 100 for scheduled CIL and centreline instances due that day, on checks and hierarchy that are not archived. That is the same population and formula as the portal's headline completion rate for the same factories and days. count is every instance in that population due that day, including due, skipped and not applicable ones.

Each filter is there for parity:

FilterWhy
origin=scheduledOnly work the schedule asked for. Checks triggered by hand are extra work, so they don't lift or lower the rate.
check_kind=cil,centrelineLists kinds explicitly, so a kind added later can't move your figure.
include_archived=falseThe portal excludes archived checks, machines, lines and factories. The API keeps that history by default, so set this to match.

Variations:

  • Period total: omit group_by to get one rate for the whole range.
  • Completed and missed counts: use group_by=due_date,status, and read the completed, overdue and missed rows. completion_rate is null in this form; compute it yourself if you need both.
  • Per line or per check: add line_id or check_id to group_by.
  • Weekly or monthly: use due_week or due_month.

Days today and later may still change: due instances become completed, overdue or missed as the day goes on.

Open Actions ​

Actions that still need work or a sign-off, per line and category:

http
GET /actions/summary?status=open,pending_verification&group_by=line_id,category
sh
curl --get https://api.continualapp.com/public/v1/actions/summary \
  -H "Authorization: Bearer $CONTINUAL_API_KEY" \
  --data-urlencode 'status=open,pending_verification' \
  --data-urlencode 'group_by=line_id,category'
json
{
  "groups": [
    { "line_id": "77aa5ca4-32dc-44b1-9f09-156f2006c99e", "category": "defect", "count": 10 },
    { "line_id": "77aa5ca4-32dc-44b1-9f09-156f2006c99e", "category": "deviation", "count": 3 },
    { "line_id": "08284ba4-d647-4739-9086-d7093410b518", "category": null, "count": 2 }
  ]
}

What it counts: every action that is open (awaiting work) or pending verification (resolved, awaiting confirmation), however old. With no created-date filter, action summaries include all history, so this is the whole backlog. It matches the portal's open and pending-verification figures combined, for the same factories.

  • category is defect, deviation or review, or null for manual actions. review is a manager's verdict on a temporary target, not corrective work. To show only corrective work, add category=defect,deviation (this also drops manual actions), or keep the grouping and hide review in your tool.
  • To split open from awaiting verification, add status to group_by.
  • To show how old the backlog is, use group_by=created_month. Date-bucketed action summaries cover the last 366 days unless you send created_from and created_to.

Building the Three Tiles ​

The guides build the same three tiles from these recipes:

TileRecipe
Due and overdue checksDue now, overdue now and missed today, per line
Completed against scheduledCompleted against scheduled, per day, last 30 days
Open actionsOpen actions, per line and category

Four requests a refresh, every few minutes, is well within the rate limits.