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

Get one sheet's extracted values

GET
/v1/extractions/{jobId}/sheets/{sheetNumber}
JOB_ID=7c9e6679-7425-40de-944b-e07fc1f90ae7 # the jobId the submission answered with
SHEET_NUMBER=1 # which sheet: 1 is the first page
curl -sS "https://api.speccapture.com/v1/extractions/$JOB_ID/sheets/$SHEET_NUMBER" \
-H "Authorization: Bearer $SPECCAPTURE_API_KEY"

Each value has its path, value (a reviewer’s correction when there is one), extractedValue (what was read), confidence, reviewState, reviewReasons and box. confidence is how sure SpecCapture is of extractedValue, from 0 to 1; it is null for a general note, which is not scored, and for a value whose reviewState is corrected: that value is a person’s, and needs no threshold. A sheet not read yet answers with its status and no values.

jobId
required
string format: uuid
sheetNumber
required
integer format: int32
/^-?(?:0|[1-9]\d*)$/

OK

Media typeapplication/json
object
jobId
required
string format: uuid
sheetNumber
required
integer format: int32
status
required
Allowed values: queued running completed failed
reviewState
required
One of:
null
engineVersion
required
null | string
completedAt
required
null | string format: date-time
fields
required
Array<object>
object
path
required
string
value
required
null | string
extractedValue
required
null | string
confidence
required
null | number format: double
reviewState
required
Allowed values: autoAccepted needsReview accepted corrected
reviewReasons
required
Array<string>
box
required
One of:
null
name
null | string
tables
required
Array<object>
object
path
required
string
rows
required
Array<object>
object
rowIndex
required
integer format: int32
cells
required
object
key
additional properties
object
path
required
string
value
required
null | string
extractedValue
required
null | string
confidence
required
null | number format: double
reviewState
required
Allowed values: autoAccepted needsReview accepted corrected
reviewReasons
required
Array<string>
box
required
One of:
null
name
null | string
name
null | string
testMode
required
boolean
markedControlled
boolean
controlledMarking
null | string
drawingPurgedAt
null | string format: date-time
controlledKept
One of:
null

Not Found: a problem with a stable code. See Errors for every code and what to do about it.

Media typeapplication/problem+json

Every error: a problem with a stable code. https://speccapture.com/docs/api/errors lists every code.

object
type

A link to the code’s entry in the docs.

null | string
title
null | string
status
null | integer format: int32
detail
null | string
instance
null | string
code

What went wrong, as a stable code to branch on: a published code never changes meaning.

string
traceId

This request’s trace: quote it when asking for help.

string