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

Review assignments

A review assignment sends jobs to one of your workspace’s own people to check - a checker on your team, the engineer who owns the part - as the dashboard’s Send for review sends drawings to a teammate. Each job becomes theirs: it waits for them under Assigned to you on the dashboard’s Review page, with their count beside Review, with your message and the day it is wanted by, and SpecCapture emails them that it is there. It locks nothing - anyone in the workspace may still check it - and it is with one person at a time. For someone outside your workspace, make a review link instead.

POST /v1/review-assignments takes extractionIds - 1 to 200 job ids, each with a sheet still waiting for a person - and assigneeEmail, the email GET /v1/workspace/members shows for them, and optionally message (up to 500 characters) and dueOn (YYYY-MM-DD, from today to a year ahead). It answers 201 with one assignment for each job, in the order named:

review_assignments.sh
#!/usr/bin/env bash
set -euo pipefail
API=https://api.speccapture.com
AUTH="Authorization: Bearer $SPECCAPTURE_API_KEY"
sent=$(curl -sS --fail-with-body "$API/v1/review-assignments" \
-H "$AUTH" \
-H "Content-Type: application/json" \
-d '{"extractionIds":["7c9e6679-7425-40de-944b-e07fc1f90ae7","1b4e28ba-2fa1-41d2-883f-0016d3cca427"],"assigneeEmail":"sam.okafor@northfield.example","message":"Line 3 needs these before Thursday.","dueOn":"2026-10-22"}') || { echo "$sent" >&2; exit 1; }
jq -r '.data[] as $assignment | "\($assignment.fileName) is with \($assignment.assignee.name): \($assignment.assignmentId)"' <<<"$sent"

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

  • One person at a time: a job already with someone moves to the new person, the earlier assignment listed as reassigned. A job another key or person sent may be handed on only by a key acting as the owner or an admin (403 role_not_allowed).
  • All or nothing: a job with nothing left to check answers 409 nothing_to_review, naming it, and an id that is not one of your workspace’s jobs, or an email that is not one of its people’s, 404 not_found. Nothing is sent.
  • Costs nothing: sending jobs and checking them never spend credits.

SpecCapture emails the person once for each request, within a minute or two: which jobs, your message and dueOn when you gave them, the name of the API key that sent them, and one link that opens those jobs on the dashboard’s Review page. Your integration sends no email of its own and needs no email settings.

  • Up to 50 a day: a workspace’s keys have their teammate emailed for up to that many requests in any 24 hours, so an integration in a loop cannot flood anyone’s inbox. Past that, the jobs are still theirs and wait on Review, with their count beside it; no email goes for that request, then or later.
  • Only what is still theirs: a job checked, handed on or taken back before the email goes is left out of it, and a request none of whose jobs is still theirs sends nothing.
  • When they’re done: each sheet whose last waiting value is checked sends an extraction.reviewed webhook, so your system can pick up the confirmed values.

GET /v1/review-assignments lists every assignment, newest first, open and closed - made through the API or the dashboard - with whom it is with (assignee: name, email, inWorkspace), who sent it (assignedBy: a person or an API key), message, dueOn, status, createdAt, closedAt, reopenedAt and how many of the job’s sheets wait for a person now (sheetsWaiting). Narrow it with status and jobId, and page it as every list pages (Lists and paging). GET /v1/review-assignments/{assignmentId} reads one.

review_assignment_list.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-assignments?status=open" \
-H "$AUTH") || { echo "$page" >&2; exit 1; }
jq -r '.data[] as $assignment | "\($assignment.fileName): with \($assignment.assignee.name), \($assignment.sheetsWaiting) sheets still to check"' <<<"$page"

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

  • Status: open while the job is with its person; done once nothing on the job waits for a person, whoever checked it; reassigned when it was sent to someone else; withdrawn when it was taken back.
  • Done too early opens again: a done assignment opens again, for the same person, when something on its job comes to wait for a person again - a sheet read after the others, an acceptance undone, a held page read anyway, or a template change - so a job is never left with nobody after its person thought it finished. Only the job’s latest assignment, only when it was done (never one handed on or taken back), only while nothing else is open on the job and the person is still in the workspace. reopenedAt says when, and closedAt is null again. No new email goes.

DELETE /v1/review-assignments/{assignmentId} closes an open assignment as withdrawn; nothing checked on the job is undone. One already closed is left as it is and the answer is the same 204, so it is safe to send again. The key that sent it, or a key acting as the owner or an admin, may.

Terminal window
ASSIGNMENT_ID=d7e9f1a3-5b6c-4d8e-9f0a-1b3c5d7e9f2a # an assignmentId the extractions were sent with
curl -sS -X DELETE "https://api.speccapture.com/v1/review-assignments/$ASSIGNMENT_ID" \
-H "Authorization: Bearer $SPECCAPTURE_API_KEY"

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