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

Review links

A review link hands the review itself to someone with no seat in your workspace - a supplier’s checker, an inspector on the floor, a reviewer your ERP or QA system sends a drawing to. They open it with no sign-in, see the drawing with every value boxed, and accept, correct and confirm the values SpecCapture read, exactly as your own people do on the review screen. Nothing else of your workspace is reachable through it: no other drawing, no settings, no credits, no exports, no people, no keys.

POST /v1/extractions/{jobId}/review-links makes a link to every sheet of a job that was read; the job must have finished. POST /v1/extractions/{jobId}/sheets/{sheetNumber}/review-links makes one to a single read sheet. Both answer 201 with the link:

review_link.sh
#!/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
link=$(curl -sS --fail-with-body "$API/v1/extractions/$JOB_ID/review-links" \
-H "$AUTH" \
-H "Content-Type: application/json" \
-d '{"expiresInDays":30,"reviewerLabel":"Supplier incoming inspection"}') || { echo "$link" >&2; exit 1; }
jq -r '"Send this to the one person who should check the drawing, until \(.expiresAt): \(.reviewUrl)"' <<<"$link"
jq -r '"To withdraw it: \(.reviewLinkId)"' <<<"$link"

Save as review_link.sh, set SPECCAPTURE_API_KEY, and run: bash review_link.sh. Needs curl; scripts also use bash and jq.

  • Who it is for: reviewerLabel, up to 100 characters, says whom you made it for (“Acme incoming inspection”, a purchase order) - shown to them, and in the list of links. It is a note: SpecCapture never checks it.
  • Lifetime: expiresInDays from 1 to 90, or 30 when left out, and never later than the workspace keeps the drawing, as for a view link: a review without the drawing is no review.
  • Who reviewed: the link asks whoever opens it for their name (and, if they like, an email) once. Every value they accept or correct is recorded with that name and the link it came through, and the value says so: GET /v1/extractions/{jobId}/sheets/{sheetNumber} gives it reviewedThrough - { reviewLinkId, name, email, reviewedAt }
    • while one of your own people’s reviews carries none. A name is the reviewer’s own word, not a sign-in: the link is the permission.
  • One link, one person. Anyone holding the link can change the values it opens, so send each one to one person and make another for someone else. If a link is forwarded, every name given through it is recorded beside the link.
  • When the review is done: each sheet whose last waiting value is checked sends an extraction.reviewed webhook, so your system can pick up the confirmed values.
  • Refusals: another workspace’s job, or a sheet number past the job’s sheetCount, answers 404 not_found. A sheet not read yet, a job still being read (for a whole-job link), a drawing past the workspace’s retention period, a workspace that keeps no drawings, or a sheet marked export-controlled that its workspace has not kept answers 409 not_shareable, whose detail says which. A key acting as a member is refused with 403 role_not_allowed.
  • Costs nothing: reviewing never spends credits.
  • Listing them: GET /v1/review-links lists every review link the workspace made - through the API or the dashboard - newest first and a page at a time (Lists and paging); GET /v1/review-links/{reviewLinkId} reads one. Each says what it opens (jobId, sheetNumber - null for every read sheet - and fileName), reviewerLabel, status (active, expired or withdrawn), when it was made and expires, how often it was opened, who made it, how many values were reviewed through it (valuesReviewed), how many sheets and values it opens still wait for a person (sheetsWaiting, valuesWaiting: sheetsWaiting 0 means its review is done), and the names its reviewers gave (reviewers: each reviewer once, a name with the email given with it - the same name given with another email is another reviewer, as the values they checked say), and what it opens as it stands (extractions: each job’s jobId, fileName, status, sheetsWaiting, valuesWaiting and valuesReviewed). Never the link itself. One link for several jobs - made by POST /v1/review-links or the dashboard’s Send for review - is listed once, as the one link its holder was given: jobId, sheetNumber and fileName are null, extractions names each job in the order sent, status is active while any job’s part of it works and withdrawn once every part was withdrawn, and its counts add its jobs’ up.
review_links.sh
#!/usr/bin/env bash
set -euo pipefail
API=https://api.speccapture.com
AUTH="Authorization: Bearer $SPECCAPTURE_API_KEY"
page=$(curl -sS --fail-with-body "$API/v1/review-links?status=active" \
-H "$AUTH") || { echo "$page" >&2; exit 1; }
jq -r '.data[] as $link | ("\($link.reviewLinkId): \($link.valuesReviewed) values reviewed, \($link.valuesWaiting) still waiting", $link.extractions[] as $extraction | " \($extraction.fileName): \($extraction.valuesWaiting) waiting")' <<<"$page"

Save as review_links.sh, set SPECCAPTURE_API_KEY, and run: bash review_links.sh. Needs curl; scripts also use bash and jq.

  • Withdrawing it: DELETE /v1/review-links/{reviewLinkId} stops it at once: whoever opens it is told it was withdrawn, and nothing more can be changed through it - a link to several jobs, every job’s part of it. What was reviewed through it stays, with who reviewed it. The owner and admins also see every review link on the dashboard’s Review page, under Sent for review, and can withdraw any of them there. Deleting the job, or asking for the workspace to be deleted, withdraws its links.
Terminal window
REVIEW_LINK_ID=8d2f4b6a-1c3e-4a5b-9d7f-2e4c6a8b0d1f # the reviewLinkId the review link was made with
curl -sS -X DELETE "https://api.speccapture.com/v1/review-links/$REVIEW_LINK_ID" \
-H "Authorization: Bearer $SPECCAPTURE_API_KEY"

Paste into a terminal with SPECCAPTURE_API_KEY set. Needs curl; scripts also use bash and jq.

  • One link for several jobs: POST /v1/review-links with extractionIds - 1 to 200 job ids, in the order the reviewer is to see them - makes ONE link to every read sheet of each, with the same expiresInDays and reviewerLabel. Whoever opens it gives their name once, moves from one drawing to the next, and is shown how many are left to check. It is all or nothing: a job that cannot be sent answers 409 not_shareable naming its file, and no link is made. One id makes the same link as POST /v1/extractions/{jobId}/review-links. Each job’s part never outlasts that drawing, so expiresAt is when the last part stops. A value reviewed through it names this one link in its reviewedThrough.reviewLinkId.
review_link_for_several.sh
#!/usr/bin/env bash
set -euo pipefail
API=https://api.speccapture.com
AUTH="Authorization: Bearer $SPECCAPTURE_API_KEY"
link=$(curl -sS --fail-with-body "$API/v1/review-links" \
-H "$AUTH" \
-H "Content-Type: application/json" \
-d '{"extractionIds":["7c9e6679-7425-40de-944b-e07fc1f90ae7","1b4e28ba-2fa1-41d2-883f-0016d3cca427"],"expiresInDays":30,"reviewerLabel":"Supplier incoming inspection"}') || { echo "$link" >&2; exit 1; }
jq -r '"Send this to the one person who should check both drawings, until \(.expiresAt): \(.reviewUrl)"' <<<"$link"
jq -r '"To withdraw it, every drawing at once: \(.reviewLinkId)"' <<<"$link"

Save as review_link_for_several.sh, set SPECCAPTURE_API_KEY, and run: bash review_link_for_several.sh. Needs curl; scripts also use bash and jq.

  • Limits: a link takes up to 120 changes a minute - “Accept all” and “Accept table” are one change each - and up to 50 different names.