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

List the workspace's templates

GET
/v1/templates
#!/usr/bin/env bash
set -euo pipefail
API=https://api.speccapture.com
AUTH="Authorization: Bearer $SPECCAPTURE_API_KEY"
templateList=$(curl -sS --fail-with-body "$API/v1/templates" \
-H "$AUTH") || { echo "$templateList" >&2; exit 1; }
jq -r '"A job naming no template is delivered with \(.defaultTemplateId)"' <<<"$templateList"
jq -r '.templates[] as $template | "\($template.templateId) \($template.name), version \($template.version)"' <<<"$templateList"

The standard template (templateId drawing: every field and table SpecCapture reads, under its standard names, but the sizes and counts, the material form and the general notes, which only a template that keeps them delivers) comes first and is always there; then each template the workspace made in the dashboard, by name, with its newest version. defaultTemplateId is what POST /v1/extractions uses when it names no templateId.

OK

Media typeapplication/json

The workspace’s templates: GET /v1/templates. The standard template, drawing, comes first and is always there; then each of the workspace’s own, by name. Every template reads a drawing the same way - the whole standard template - and decides which values a job keeps, what each is called and in what order.

object
defaultTemplateId
required

What POST /v1/extractions uses when it names no template: one of these ids.

string
templates
required

The standard template first, then the workspace’s own by name.

Array<object>

One template in the list.

object
templateId
required

drawing for the standard template; a GUID for one of the workspace’s own.

string
name
required

What the workspace calls it; “Standard” for drawing.

string
version
required

Its newest published version: what a submission naming it, and no version, is delivered with.

integer format: int32
isDefault
required

What a submission naming no template is delivered with.

boolean
definedBy
required

speccapture for the standard template, workspace for the workspace’s own.

string
updatedAt
required

When its newest version was published; null for the standard template.

null | string format: date-time
url
required

Where its fields are: GET /v1/templates/{templateId}.

string

Examples

Exampletemplates

The standard template, and the workspace's own, which is its default

{
"defaultTemplateId": "c2b8f3a1-7e5d-4c9a-8f6b-1a2d3e4f5a6b",
"templates": [
{
"templateId": "drawing",
"name": "Standard",
"version": 1,
"isDefault": false,
"definedBy": "speccapture",
"updatedAt": null,
"url": "/v1/templates/drawing"
},
{
"templateId": "c2b8f3a1-7e5d-4c9a-8f6b-1a2d3e4f5a6b",
"name": "ERP import",
"version": 3,
"isDefault": true,
"definedBy": "workspace",
"updatedAt": "2026-10-02T15:04:00+00:00",
"url": "/v1/templates/c2b8f3a1-7e5d-4c9a-8f6b-1a2d3e4f5a6b"
}
]
}