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.
Sending jobs to a teammate
Section titled “Sending jobs to a teammate”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:
#!/usr/bin/env bashset -euo pipefailAPI=https://api.speccapture.comAUTH="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.
using System.Text;using System.Text.Json;using System.Text.Json.Nodes;
using HttpClient http = new() { BaseAddress = new Uri("https://api.speccapture.com") };http.DefaultRequestHeaders.Authorization = new("Bearer", Environment.GetEnvironmentVariable("SPECCAPTURE_API_KEY"));
StringContent body = new(new JsonObject { ["extractionIds"] = new JsonArray("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",}.ToJsonString(), Encoding.UTF8, "application/json");JsonElement sent = await Json(await Call(HttpMethod.Post, "/v1/review-assignments", body));
foreach (JsonElement assignment in sent.GetProperty("data").EnumerateArray()) { Console.WriteLine($"{assignment.GetProperty("fileName")} is with {assignment.GetProperty("assignee").GetProperty("name")}: {assignment.GetProperty("assignmentId")}");}
// Sends a request; stops with the problem's code and detail if the API refuses it.async Task<HttpResponseMessage> Call(HttpMethod method, string path, HttpContent? body = null, string? idempotencyKey = null) { using HttpRequestMessage request = new(method, path) { Content = body }; if (idempotencyKey is not null) request.Headers.Add("Idempotency-Key", idempotencyKey); HttpResponseMessage response = await http.SendAsync(request); if (!response.IsSuccessStatusCode) { JsonElement problem = await Json(response); string? detail = (problem.TryGetProperty("detail", out JsonElement text) ? text : problem.GetProperty("title")).GetString(); Console.Error.WriteLine($"{(int)response.StatusCode} {problem.GetProperty("code")}: {detail}"); Environment.Exit(1); } return response;}
// Reads an answer as JSON.static async Task<JsonElement> Json(HttpResponseMessage response) => JsonDocument.Parse(await response.Content.ReadAsStringAsync()).RootElement;Save as review_assignments.cs, set SPECCAPTURE_API_KEY, and run: dotnet run review_assignments.cs. Needs .NET 10 or later.
import osimport sys
import requests
API = "https://api.speccapture.com"session = requests.Session()session.headers["Authorization"] = f"Bearer {os.environ['SPECCAPTURE_API_KEY']}"
def call(method, path, **kwargs): """Send a request; stop with the problem's code and detail if the API refuses it.""" response = session.request(method, API + path, **kwargs) if not response.ok: problem = response.json() sys.exit(f"{response.status_code} {problem['code']}: {problem.get('detail', problem['title'])}") return response
sent = call( "POST", "/v1/review-assignments", json={"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"},).json()
for assignment in sent["data"]: print(f"{assignment['fileName']} is with {assignment['assignee']['name']}: {assignment['assignmentId']}")Save as review_assignments.py, set SPECCAPTURE_API_KEY, and run: python review_assignments.py. Needs Python 3.9+ and requests (pip install requests).
const API = "https://api.speccapture.com";const headers = { Authorization: `Bearer ${process.env.SPECCAPTURE_API_KEY}` };
const sent = await call("POST", "/v1/review-assignments", { body: JSON.stringify({ 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" }), headers: { "Content-Type": "application/json" },}).then((response) => response.json());
for (const assignment of sent.data) { console.log(`${assignment.fileName} is with ${assignment.assignee.name}: ${assignment.assignmentId}`);}
// Sends a request; stops with the problem's code and detail if the API refuses it.async function call(method, path, init = {}) { const response = await fetch(API + path, { ...init, method, headers: { ...headers, ...init.headers } }); if (!response.ok) { const problem = await response.json(); console.error(`${response.status} ${problem.code}: ${problem.detail ?? problem.title}`); process.exit(1); } return response;}Save as review_assignments.mjs, set SPECCAPTURE_API_KEY, and run: node review_assignments.mjs. Needs Node.js 20 or later.
- 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.
Telling them
Section titled “Telling them”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.reviewedwebhook, so your system can pick up the confirmed values.
Following them
Section titled “Following them”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.
#!/usr/bin/env bashset -euo pipefailAPI=https://api.speccapture.comAUTH="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.
using System.Text.Json;
using HttpClient http = new() { BaseAddress = new Uri("https://api.speccapture.com") };http.DefaultRequestHeaders.Authorization = new("Bearer", Environment.GetEnvironmentVariable("SPECCAPTURE_API_KEY"));
JsonElement page = await Json(await Call(HttpMethod.Get, "/v1/review-assignments?status=open"));
foreach (JsonElement assignment in page.GetProperty("data").EnumerateArray()) { Console.WriteLine($"{assignment.GetProperty("fileName")}: with {assignment.GetProperty("assignee").GetProperty("name")}, {assignment.GetProperty("sheetsWaiting")} sheets still to check");}
// Sends a request; stops with the problem's code and detail if the API refuses it.async Task<HttpResponseMessage> Call(HttpMethod method, string path, HttpContent? body = null, string? idempotencyKey = null) { using HttpRequestMessage request = new(method, path) { Content = body }; if (idempotencyKey is not null) request.Headers.Add("Idempotency-Key", idempotencyKey); HttpResponseMessage response = await http.SendAsync(request); if (!response.IsSuccessStatusCode) { JsonElement problem = await Json(response); string? detail = (problem.TryGetProperty("detail", out JsonElement text) ? text : problem.GetProperty("title")).GetString(); Console.Error.WriteLine($"{(int)response.StatusCode} {problem.GetProperty("code")}: {detail}"); Environment.Exit(1); } return response;}
// Reads an answer as JSON.static async Task<JsonElement> Json(HttpResponseMessage response) => JsonDocument.Parse(await response.Content.ReadAsStringAsync()).RootElement;Save as review_assignment_list.cs, set SPECCAPTURE_API_KEY, and run: dotnet run review_assignment_list.cs. Needs .NET 10 or later.
import osimport sys
import requests
API = "https://api.speccapture.com"session = requests.Session()session.headers["Authorization"] = f"Bearer {os.environ['SPECCAPTURE_API_KEY']}"
def call(method, path, **kwargs): """Send a request; stop with the problem's code and detail if the API refuses it.""" response = session.request(method, API + path, **kwargs) if not response.ok: problem = response.json() sys.exit(f"{response.status_code} {problem['code']}: {problem.get('detail', problem['title'])}") return response
page = call("GET", "/v1/review-assignments?status=open").json()
for assignment in page["data"]: print(f"{assignment['fileName']}: with {assignment['assignee']['name']}, {assignment['sheetsWaiting']} sheets still to check")Save as review_assignment_list.py, set SPECCAPTURE_API_KEY, and run: python review_assignment_list.py. Needs Python 3.9+ and requests (pip install requests).
const API = "https://api.speccapture.com";const headers = { Authorization: `Bearer ${process.env.SPECCAPTURE_API_KEY}` };
const page = await call("GET", "/v1/review-assignments?status=open").then((response) => response.json());
for (const assignment of page.data) { console.log(`${assignment.fileName}: with ${assignment.assignee.name}, ${assignment.sheetsWaiting} sheets still to check`);}
// Sends a request; stops with the problem's code and detail if the API refuses it.async function call(method, path, init = {}) { const response = await fetch(API + path, { ...init, method, headers: { ...headers, ...init.headers } }); if (!response.ok) { const problem = await response.json(); console.error(`${response.status} ${problem.code}: ${problem.detail ?? problem.title}`); process.exit(1); } return response;}Save as review_assignment_list.mjs, set SPECCAPTURE_API_KEY, and run: node review_assignment_list.mjs. Needs Node.js 20 or later.
- Status:
openwhile the job is with its person;doneonce nothing on the job waits for a person, whoever checked it;reassignedwhen it was sent to someone else;withdrawnwhen it was taken back. - Done too early opens again: a
doneassignment 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 wasdone(never one handed on or taken back), only while nothing else is open on the job and the person is still in the workspace.reopenedAtsays when, andclosedAtis null again. No new email goes.
Taking one back
Section titled “Taking one back”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.
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.
using System.Text.Json;
using HttpClient http = new() { BaseAddress = new Uri("https://api.speccapture.com") };http.DefaultRequestHeaders.Authorization = new("Bearer", Environment.GetEnvironmentVariable("SPECCAPTURE_API_KEY"));
string assignmentId = args[0]; // an assignmentId the extractions were sent with
await Call(HttpMethod.Delete, $"/v1/review-assignments/{assignmentId}");
// Sends a request; stops with the problem's code and detail if the API refuses it.async Task<HttpResponseMessage> Call(HttpMethod method, string path, HttpContent? body = null, string? idempotencyKey = null) { using HttpRequestMessage request = new(method, path) { Content = body }; if (idempotencyKey is not null) request.Headers.Add("Idempotency-Key", idempotencyKey); HttpResponseMessage response = await http.SendAsync(request); if (!response.IsSuccessStatusCode) { JsonElement problem = await Json(response); string? detail = (problem.TryGetProperty("detail", out JsonElement text) ? text : problem.GetProperty("title")).GetString(); Console.Error.WriteLine($"{(int)response.StatusCode} {problem.GetProperty("code")}: {detail}"); Environment.Exit(1); } return response;}
// Reads an answer as JSON.static async Task<JsonElement> Json(HttpResponseMessage response) => JsonDocument.Parse(await response.Content.ReadAsStringAsync()).RootElement;Save as take_back_review_assignment.cs, set SPECCAPTURE_API_KEY, and run: dotnet run take_back_review_assignment.cs -- d7e9f1a3-5b6c-4d8e-9f0a-1b3c5d7e9f2a. Needs .NET 10 or later.
import osimport sys
import requests
API = "https://api.speccapture.com"session = requests.Session()session.headers["Authorization"] = f"Bearer {os.environ['SPECCAPTURE_API_KEY']}"
def call(method, path, **kwargs): """Send a request; stop with the problem's code and detail if the API refuses it.""" response = session.request(method, API + path, **kwargs) if not response.ok: problem = response.json() sys.exit(f"{response.status_code} {problem['code']}: {problem.get('detail', problem['title'])}") return response
assignment_id = sys.argv[1] # an assignmentId the extractions were sent with
call("DELETE", f"/v1/review-assignments/{assignment_id}")Save as take_back_review_assignment.py, set SPECCAPTURE_API_KEY, and run: python take_back_review_assignment.py d7e9f1a3-5b6c-4d8e-9f0a-1b3c5d7e9f2a. Needs Python 3.9+ and requests (pip install requests).
const API = "https://api.speccapture.com";const headers = { Authorization: `Bearer ${process.env.SPECCAPTURE_API_KEY}` };
const [assignmentId] = process.argv.slice(2); // an assignmentId the extractions were sent with
await call("DELETE", `/v1/review-assignments/${assignmentId}`);
// Sends a request; stops with the problem's code and detail if the API refuses it.async function call(method, path, init = {}) { const response = await fetch(API + path, { ...init, method, headers: { ...headers, ...init.headers } }); if (!response.ok) { const problem = await response.json(); console.error(`${response.status} ${problem.code}: ${problem.detail ?? problem.title}`); process.exit(1); } return response;}Save as take_back_review_assignment.mjs, set SPECCAPTURE_API_KEY, and run: node take_back_review_assignment.mjs d7e9f1a3-5b6c-4d8e-9f0a-1b3c5d7e9f2a. Needs Node.js 20 or later.