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

Skip a held sheet

POST
/v1/extractions/{jobId}/sheets/{sheetNumber}/skip
#!/usr/bin/env bash
set -euo pipefail
API=https://api.speccapture.com
AUTH="Authorization: Bearer $SPECCAPTURE_API_KEY"
JOB_ID=7c9e6679-7425-40de-944b-e07fc1f90ae7 # the jobId the submission answered with
SHEET_NUMBER=1 # which sheet: 1 is the first page
job=$(curl -sS --fail-with-body -X POST "$API/v1/extractions/$JOB_ID/sheets/$SHEET_NUMBER/skip" \
-H "$AUTH") || { echo "$job" >&2; exit 1; }
jq -r '"Job \(.jobId): the page is skipped and its credits refunded"' <<<"$job"

Skips a sheet that was held because its page does not look like a drawing: it is never read, its status becomes skipped and its 4 credits are refunded. Answers 200 with the job. 409 sheet_not_held when the sheet is not held (never held, or already read or skipped). A held sheet nobody decides on is skipped, and refunded, when the workspace’s retention removes its drawing.

jobId
required
string format: uuid

The job’s id: the jobId POST /v1/extractions answered with, or one GET /v1/extractions lists.

sheetNumber
required
integer format: int32

Which sheet of the job: 1 for the file’s first page, up to the job’s sheetCount.

OK

Media typeapplication/json

One uploaded file and the extraction of its sheets: the answer of POST /v1/extractions and GET /v1/extractions/{jobId}, and the job of every extraction webhook event.

object
jobId
required

The job’s id: what every other request about it names.

string format: uuid
status
required

Where the job is.

string
Allowed values: queued splitting extracting completed failed
fileName
required

The uploaded file’s name, as it was sent.

string
fileSizeBytes
required

The uploaded file’s size, in bytes.

integer format: int64
fileSha256
required

SHA-256 of the file’s bytes, lowercase hex.

string
templateId
required

The template the job is delivered with: the id of one of the workspace’s own templates (from GET /v1/templates), or drawing - the standard template, every field but the sizes and counts and the material form - for a job sent with drawing or read before the workspace had a template of its own. Every template reads the drawing the same way; it decides which values the job keeps, what each is called and in what order.

string
templateVersion
required

The version of the template the job keeps for good: 1 for drawing.

integer format: int32
sheetCount
required

The pages counted when the file was accepted; each is read, and billed, on its own.

integer format: int32
credits
required

What the job reserved, spent, refunded and still holds.

object
perSheet
required

What each sheet of this job costs, fixed when it was accepted.

integer format: int32
reserved
required

Reserved when the file was accepted: its sheets times perSheet.

integer format: int32
spent
required

Spent on sheets that were read.

integer format: int32
refunded
required

Returned for sheets, or a whole file, that could not be read, and for sheets skipped.

integer format: int32
held
required

Still reserved for sheets not yet finished, and for sheets held because they do not look like drawings.

integer format: int32
progress
required

How many of its sheets are read, how many failed, and how many need a person to look.

object
sheetsCompleted
required

Sheets read so far.

integer format: int32
sheetsFailed
required

Sheets that could not be read, their credits refunded.

integer format: int32
sheetsNeedingReview
required

Read sheets with at least one value waiting for a person to look.

integer format: int32
sheetsHeld

Sheets held because their page does not look like a drawing, waiting to be read anyway or skipped. Left out of the answer when there are none.

integer format: int32
0
sheetsSkipped

Held sheets that were skipped, their credits refunded. Left out of the answer when there are none.

integer format: int32
0
sheets
required

One entry per sheet, in page order: present from the start, each waiting until the file is split.

Array<object>

One sheet of a job, as the job lists it: where it stands, and where its values are.

object
sheetNumber
required

1 for the file’s first page.

integer format: int32
status
required

Where the sheet is.

string
Allowed values: queued running completed failed held skipped
reviewState
required
One of:
null
engineVersion
required

The version of SpecCapture’s reading engine (ev1-...) that read the sheet; null until it has been read.

null | string
completedAt
required

When the sheet was read, or failed; null until then.

null | string format: date-time
resultUrl
required

Where the sheet’s values are: GET /v1/extractions/{jobId}/sheets/{sheetNumber}.

string
markedControlled

True when the sheet’s own export-control marking (titleBlock.exportControlMarking) names an export control: controlledMarking says which. SpecCapture takes no export-controlled drawings, so the workspace is warned to delete it unless it is sure it is not controlled. A flag only: the sheet was read, and nothing about its values or review changes.

boolean
controlledMarking

The control the marking names: Distribution Statement B to Distribution Statement F (or the old Distribution Statement X), ITAR, EAR, CUI, NOFORN, FOUO or export-restricted (a warning that the drawing’s export is restricted); null when markedControlled is false.

null | string
controlledKept
One of:
null
turnedUpright
One of:
null
heldBecause
One of:
null
readAnywayUrl

While the sheet is held: where to POST to read it anyway, its held credits spent once it is read. Left out otherwise.

null | string
skipUrl

While the sheet is held: where to POST to skip it, its credits refunded. Left out otherwise.

null | string
createdAt
required

When the file was accepted.

string format: date-time
updatedAt
required

When anything about the job last changed.

string format: date-time
completedAt
required

When its last sheet finished, or the job failed; null until then.

null | string format: date-time
failureReason
required

Why the job failed, in words for a person; null unless status is failed.

null | string
testMode
required

Always false: there are no test keys and no test mode, so every job reads its drawing and is charged for it.

boolean
drawingPurgedAt

When the workspace’s retention period removed the drawing - the uploaded file, its page images and every value’s box - so every box is null from then on and a view link is refused; null while the drawing is kept. The values, their review and the exports stay.

null | string format: date-time
templateName

What the workspace calls the job’s template now (“ERP import”); null for drawing.

null | string

Examples

Exampleskipped

Sheet 2 skipped: never read, its 4 credits refunded

{
"jobId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"status": "completed",
"fileName": "bracket.pdf",
"fileSizeBytes": 482113,
"fileSha256": "5c7e180a7bc5a50d1300976a9400df057e7324a7e416eddfaeacec87967fed9f",
"templateId": "c2b8f3a1-7e5d-4c9a-8f6b-1a2d3e4f5a6b",
"templateVersion": 3,
"sheetCount": 2,
"credits": {
"perSheet": 4,
"reserved": 8,
"spent": 4,
"refunded": 4,
"held": 0
},
"progress": {
"sheetsCompleted": 1,
"sheetsFailed": 0,
"sheetsNeedingReview": 1,
"sheetsSkipped": 1
},
"sheets": [
{
"sheetNumber": 1,
"status": "completed",
"reviewState": "needsReview",
"engineVersion": "ev1-85b79e6519c05a40",
"completedAt": "2026-10-14T09:31:05+00:00",
"resultUrl": "/v1/extractions/7c9e6679-7425-40de-944b-e07fc1f90ae7/sheets/1",
"markedControlled": false,
"controlledMarking": null,
"controlledKept": null
},
{
"sheetNumber": 2,
"status": "skipped",
"reviewState": null,
"engineVersion": null,
"completedAt": "2026-10-14T09:31:22+00:00",
"resultUrl": "/v1/extractions/7c9e6679-7425-40de-944b-e07fc1f90ae7/sheets/2",
"markedControlled": false,
"controlledMarking": null,
"controlledKept": null,
"heldBecause": "notADrawing"
}
],
"createdAt": "2026-10-14T09:30:12+00:00",
"updatedAt": "2026-10-14T09:31:22+00:00",
"completedAt": "2026-10-14T09:31:22+00:00",
"failureReason": null,
"testMode": false,
"drawingPurgedAt": null,
"templateName": "ERP import"
}

Forbidden: 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
required

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

string
title
required

What went wrong, in a few words for a person: the same for every problem with this code.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong with this request and what to do about it, in a sentence or two for a person. Present on nearly every problem.

string
instance
required

The path of the request that was refused.

string
code
required

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

string
traceId
required

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

string

Examples

Examplerole_not_allowed

This key's role does not allow this.

{
"type": "https://speccapture.com/docs/api/errors#role_not_allowed",
"title": "This key's role does not allow this.",
"status": 403,
"detail": "This key acts with the member role of the person who created it, which cannot do this. Use a key created by the workspace's owner or an admin.",
"instance": "/v1/extractions/7c9e6679-7425-40de-944b-e07fc1f90ae7/sheets/2/skip",
"code": "role_not_allowed",
"traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
"keyRole": "member"
}

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
required

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

string
title
required

What went wrong, in a few words for a person: the same for every problem with this code.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong with this request and what to do about it, in a sentence or two for a person. Present on nearly every problem.

string
instance
required

The path of the request that was refused.

string
code
required

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

string
traceId
required

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

string

Examples

Examplenot_found

Not found.

{
"type": "https://speccapture.com/docs/api/errors#not_found",
"title": "Not found.",
"status": 404,
"detail": "There is no extraction with this id, or this sheet, in your workspace.",
"instance": "/v1/extractions/7c9e6679-7425-40de-944b-e07fc1f90ae7/sheets/3/skip",
"code": "not_found",
"traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
}

Conflict: 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
required

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

string
title
required

What went wrong, in a few words for a person: the same for every problem with this code.

string
status
required

The HTTP status of the answer.

integer format: int32
detail

What went wrong with this request and what to do about it, in a sentence or two for a person. Present on nearly every problem.

string
instance
required

The path of the request that was refused.

string
code
required

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

string
traceId
required

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

string

Examples

Examplesheet_not_held

This sheet is not held.

{
"type": "https://speccapture.com/docs/api/errors#sheet_not_held",
"title": "This sheet is not held.",
"status": 409,
"detail": "This page isn't held any more: someone has already read it anyway or skipped it.",
"instance": "/v1/extractions/7c9e6679-7425-40de-944b-e07fc1f90ae7/sheets/2/skip",
"code": "sheet_not_held",
"traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
}