Skip to main content
Documentation

Jobs

jobs.panels

Track panel-by-panel progress on one install job
Read-onlyRead budget

REST

Shipping
POST /api/v1/jobs/panels

MCP tool

Live
jobs.panels

Exposed on: REST API · Shop MCP server · Claude connector · Dash (in-app copilot) · Zapier. Part of the Jobs domain.

Operating contract

THE REAL PROGRESS ON AN INSTALL, panel by panel: what is planned, what is done, what was skipped and why, and which panel somebody has a timer running on right now.

A JOB'S STAGE SAYS 'IN PROGRESS' FOR DAYS; THIS SAYS HOW FAR IN. done_count against panel_count is the answer to 'how much longer', and it is the only honest one — a job on its last panel and a job on its first read identically everywhere else.

photos_outstanding IS A BLOCKER, NOT A CHORE. Those panels cannot be finished until somebody photographs them, so a job that looks nearly done with photos outstanding is not nearly done.

TWO TIME FIGURES, AND THEY ARE NOT THE SAME NUMBER. banked_labour_seconds is what the panel COST — closed segments across every worker. elapsed_seconds is what it TOOK — last close minus first start, interruptions and all. Reporting elapsed as labour overstates the cost of every job that was put down and picked back up.

running_since MEANS SOMEBODY IS ON IT AT THIS MOMENT. Say so — it changes what 'when will it be ready' means.

sequence_actual is the order panels were really worked, which often differs from sequence_planned. Neither is wrong; the difference is how the bay actually ran.

AN EMPTY LIST IS NOT AN UNSTARTED JOB. A job with no panel template, and any job at all on a database without the panels migration, has no panels — the work is real either way, and the honest answer is that this job is not tracked panel by panel.

This is one job's panels, entirely returned, so nothing is truncated.

Who may call it

Permission
jobs.accessThe caller must hold Jobs at the ACT level. A read-only dashboard grant on the same section is refused.
Plan
Every planNo plan gate. Available on every Service VIN plan.
Retries
naturalNaturally idempotent — running it twice leaves the same world as running it once. A retrying integration needs no key.
Rate class
readCounted against the read budget — the widest of the four.

Input

FieldTypeDescription
job_idrequiredstringuuid

The job to inspect, as returned by jobs.list or calendar.day.

Output

FieldTypeDescription
job_idstring

trackedboolean

totalsobject

totals.panel_countnumber

totals.done_countnumber

totals.skipped_countnumber

totals.banked_labour_secondsnumber

totals.expected_minutesnumber | null

totals.photos_outstandingnumber

running_panel_idstring | null

panelsobject[]

panels[].idstring

panels[].panel_codestring

panels[].labelstring

panels[].disciplinestring | null

panels[].statusstring

panels[].assignee_idstring | null

panels[].sequence_plannednumber

panels[].sequence_actualnumber | null

panels[].started_atstring | null

panels[].ended_atstring | null

panels[].banked_labour_secondsnumber

panels[].elapsed_secondsnumber

panels[].running_sincestring | null

panels[].segment_countnumber

panels[].required_photosnumber

panels[].photo_countnumber

panels[].expected_minutesnumber | null

panels[].skip_reasonstring | null

panels[].rework_reasonstring | null

Examples

Built from this capability's own schema — required fields and the ones carrying a default, and nothing invented. Paste one and it validates.

curl
export SERVICEVIN_API_KEY=svk_live_…

curl -X POST https://www.servicevin.com/api/v1/jobs/panels \
  -H "Authorization: Bearer $SERVICEVIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"job_id":"9b2f1c6e-4a77-4d2b-9f31-0f1c9a8e5d20"}'

TypeScript (fetch)
const res = await fetch("https://www.servicevin.com/api/v1/jobs/panels", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SERVICEVIN_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "job_id": "9b2f1c6e-4a77-4d2b-9f31-0f1c9a8e5d20"
  }),
});

// Success and failure are both envelopes. Switch on error.code, never
// on error.message — the codes are stable, the messages are for people.
const payload = await res.json();
if (!res.ok) throw new Error(payload.error.code);
const data = payload.data;

Python (requests)
import os, requests

res = requests.post(
    "https://www.servicevin.com/api/v1/jobs/panels",
    headers={"Authorization": f"Bearer {os.environ['SERVICEVIN_API_KEY']}"},
    json={
    "job_id": "9b2f1c6e-4a77-4d2b-9f31-0f1c9a8e5d20"
},
    timeout=30,
)
payload = res.json()
if not res.ok:
    raise RuntimeError(payload["error"]["code"])
data = payload["data"]

MCP tools/call — https://www.servicevin.com/api/mcp
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "jobs.panels",
    "arguments": {
      "job_id": "9b2f1c6e-4a77-4d2b-9f31-0f1c9a8e5d20"
    }
  }
}

Refusals

The four gates run in this order on every surface, and the order is not arbitrary — see Authentication.

StatusCodeWhen
404not_foundThe id is unknown, or the feature is not enabled for this account. Deliberately the same answer for both.
403forbiddenThis login does not hold jobs.access.
422validation_errorAn argument was wrong. The message names the field.
429rate_limitedToo many read calls. Back off and retry.
500internal_errorSomething failed on our side. Nothing was changed.