Skip to content
API console (try a request with your own key)Get early access

Templates

A template decides which of the values SpecCapture reads a job keeps, what each is called, and in what order - one that keeps only the columns an ERP import expects, under its own headings, or one for quoting. Templates are made in the SpecCapture dashboard (Fields) by the workspace’s owner or an admin; the API reads them. Every template reads a drawing the same way - all of it, exactly as SpecCapture’s measured reading does - so a template never changes a value: it only chooses which values a job keeps, names them and orders them. A field’s path is its key everywhere and never changes, whatever the template calls it.

GET /v1/templates lists them. The standard template, drawing - every field and table SpecCapture reads, under its standard names, but the sizes and counts, the material form and, since 2026-10-21, the general notes (off unless you turn them on) - is always first; then the workspace’s own, by name. defaultTemplateId is what a submission uses when it names no template:

{
"defaultTemplateId": "6b0d5d2e-3c8a-4f6e-9a7b-2f1e0c9d8b7a",
"templates": [
{ "templateId": "drawing", "name": "Standard", "version": 1, "isDefault": false,
"definedBy": "speccapture", "updatedAt": null, "url": "/v1/templates/drawing" },
{ "templateId": "6b0d5d2e-3c8a-4f6e-9a7b-2f1e0c9d8b7a", "name": "ERP import", "version": 3, "isDefault": true,
"definedBy": "workspace", "updatedAt": "2026-10-14T09:00:00+00:00", "url": "/v1/templates/6b0d5d2e-3c8a-4f6e-9a7b-2f1e0c9d8b7a" }
]
}

GET /v1/templates/{templateId} gives one template’s fields, tables and notes, in order, at its newest version, or at an earlier one with ?version=:

{
"templateId": "6b0d5d2e-3c8a-4f6e-9a7b-2f1e0c9d8b7a",
"name": "ERP import",
"version": 3,
"currentVersion": 3,
"isDefault": true,
"archived": false,
"definedBy": "workspace",
"publishedAt": "2026-10-14T09:00:00+00:00",
"basedOn": "drawing",
"basedOnVersion": 1,
"fields": [
{ "path": "titleBlock.partNumber", "name": "Item number", "standardName": "Part Number", "order": 1,
"required": true, "alwaysCheck": false, "section": null, "definedBy": "speccapture", "measured": "measured" },
{ "path": "titleBlock.title", "name": "Description", "standardName": "Title", "order": 2,
"required": false, "alwaysCheck": false, "section": null, "definedBy": "speccapture", "measured": "standard" }
],
"tables": [
{ "path": "bom", "name": "Parts", "standardName": "Bill of Materials", "keyColumn": "item",
"columns": [ { "path": "item", "name": "Line", "standardName": "Item" }, { "path": "qty", "name": "Quantity", "standardName": "Quantity" } ] }
],
"notes": null,
"exportLayout": "valuesOnly",
"output": {
"include": ["confidence", "quote"],
"jsonShape": "flat",
"jsonKeys": "names",
"jsonNumbers": "text",
"spreadsheetRows": "perSheet"
}
}
  • name is the name the job’s values carry (each value’s name); standardName is SpecCapture’s.

  • required: a drawing that does not give the field waits for a person, the value with the review reason RequiredButNotFound - only on a scan for a part number or revision SpecCapture requires: the standard template’s, and the part number or revision a template made for Quoting, ERP import or Drawing register starts out requiring, until someone switches it in the dashboard (Values a drawing does not print). alwaysCheck: the field’s value always waits for a person, whatever the workspace accepts automatically.

  • measured says what SpecCapture says about the field’s accuracy: measured for the four fields whose accuracy SpecCapture publishes (part number, revision, material, finish), standard for every other field it reads, notMeasured for sizes and counts worked out from the drawing, which always wait for a person.

  • A table keeps its keyColumn (the column that numbers its rows) whatever else it leaves out. notes is null when the template leaves the general notes out - the standard template’s, drawing, since 2026-10-21.

  • A field of the workspace’s own worked out from other values (calculated values) carries workedOut, how in words: How many rows in Bill of Materials, The total of Quantity in Bill of Materials. Every other field leaves it out.

  • output is what the template’s exports and its values in its shape hold, chosen in the dashboard:

    • include: what each value carries beside it - reviewState (its review state and why it waits), confidence, asRead (what was read, beside a correction), box, quote (the text it was read from) and sheetDetails (each sheet’s status, engine version and when it was read). Empty for plain values. Without reviewState, a value still waiting for a person is left blank and named as waiting, so nothing unchecked is imported as final.
    • jsonShape: flat, nested (the fields grouped by section) or complete (the job and every sheet exactly as this API answers them). jsonKeys: names (the template’s names) or paths (the paths, which never change). jsonNumbers: text, or numbers (a count or quantity that is a plain whole number written as a JSON number, and a number or dimension field of the workspace’s own that is a plain number - 12.50, .375 as 0.375 - with its digits as delivered; a unit, a tolerance or a limit pair stays text).
    • spreadsheetRows: perSheet (sheets.csv, a column per field) or perValue (values.csv, one row per value).

    A template made before these choices existed has the output its layout always gave, and the standard template drawing has the complete one: include sheetDetails, asRead, reviewState and confidence, jsonShape complete.

  • exportLayout says the same in two words: full when each value carries its review state, valuesOnly when it does not - one column per field under its name, a value still waiting for review left blank and named in a Waiting for review column, and no sheet ever left out.

Versions. Every change the workspace publishes is a new version; a version never changes afterwards. A job keeps the version it was submitted with - its templateId and templateVersion - for good, so its values, names and exports stay as they were; GET /v1/templates/{templateId}?version=N gives that version. A template the workspace archived still answers here, with archived: true, for the jobs that name it; it cannot be used for new ones.

An id the workspace does not have, another workspace’s included, answers 404 not_found. Any key may read templates.

The standard template leaves the sizes and counts out. A job read with drawing keeps neither the nine values worked out from the drawing (assist.*) nor titleBlock.materialForm: each waits for a person on every drawing, or was wrong more often than right when accepted without a look, so the standard template keeps only what can be accepted unseen. SpecCapture still reads them on every drawing; a template of the workspace’s that keeps them delivers them - one made in the dashboard for quoting, or to keep everything we read, does, and the quoting one has a person check each. GET /v1/templates/drawing lists the fields it keeps.