List the workspace's review assignments
#!/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"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;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")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;}Every review assignment the workspace has made - through the API or the dashboard’s Send for review - newest first, open and closed: the extraction (jobId, fileName), whom it was sent to (assignee: name, email, and whether they are still in the workspace), who sent it (assignedBy: a person or an API key), the message and dueOn, its status (open, done, reassigned or withdrawn), when it was sent, closed and last reopened, and how many of the extraction’s sheets wait for a person now. Page with limit and cursor (the previous page’s nextCursor), narrow with createdAfter, createdBefore, status and jobId (one extraction’s assignments). A deleted extraction’s are not listed. Any live key.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”How many items the page holds: 1 to 200, 50 when left out.
The previous page’s nextCursor, exactly as it came: the list continues just after that page’s last item, so items made or removed meanwhile never shift a page. Leave it out for the first page.
Only items made strictly after this date and time (ISO 8601, such as 2026-10-14T09:30:00Z; without an offset it is UTC).
Only items made strictly before this date and time (ISO 8601, such as 2026-10-14T09:30:00Z; without an offset it is UTC).
Where a review assignment stands.
open: The extraction is with its assignee to check.done: Closed by itself: nothing on the extraction waits for a person any more, whoever checked it. It opens again, for the same person, if something on it comes to wait again - a sheet read later, an acceptance undone, a template change.reassigned: The extraction was sent to someone else (or to the same person again, as a new assignment).withdrawn: Taken back:DELETE /v1/review-assignments/{assignmentId}, or Take back in the dashboard.
Only items with this status.
Only this job’s assignments: a jobId POST /v1/extractions answered with, or one GET /v1/extractions lists. Every job’s when left out.
Responses
Section titled “Responses”OK
A page of the workspace’s review assignments, newest first: GET /v1/review-assignments; and what POST /v1/review-assignments made, one for each extraction in the order named, in one page.
object
The page’s assignments.
A review assignment: an extraction sent to one of the workspace’s people to check - through the API, or from the dashboard’s Review page. It locks nothing: anyone in the workspace may still check the extraction; the assignment says whose job it is. At most one is open per extraction.
object
What taking it back takes.
The extraction.
The extraction’s file name.
Whom it was sent to.
object
Their name as the workspace’s people list last knew them, else their email.
Their sign-in email, as GET /v1/workspace/members shows it.
Whether they are still one of the workspace’s people; an assignment to someone who left is shown to nobody in the dashboard.
Who sent it: one of the workspace’s people, or one of its API keys.
object
One of the workspace’s people, or one of its API keys.
The person’s name - else their email - as the workspace’s people list last knew them, kept after they leave; or the key’s name. Null when nothing names them.
The note sent with it; null when there was none.
The day it is wanted by, YYYY-MM-DD; null when none was chosen.
Where it stands.
When it was sent.
When it was done, handed on or taken back; null while it is open.
When it last opened again by itself, something on the extraction waiting again after it was done; null if it never has.
How many of the extraction’s sheets wait for a person now.
Whether more assignments follow this page.
Send as cursor for the page after this one; null when there is none.
Examples
One open, and one done a day after it was sent
{ "data": [ { "assignmentId": "d7e9f1a3-5b6c-4d8e-9f0a-1b3c5d7e9f2a", "jobId": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "fileName": "bracket.pdf", "assignee": { "name": "Sam Okafor", "email": "sam.okafor@northfield.example", "inWorkspace": true }, "assignedBy": { "kind": "apiKey", "name": "ERP import" }, "message": "Line 3 needs these before Thursday.", "dueOn": "2026-10-22", "status": "open", "createdAt": "2026-10-15T10:20:00+00:00", "closedAt": null, "reopenedAt": null, "sheetsWaiting": 2 }, { "assignmentId": "6b8d0f2a-4c6e-4a8c-9e0a-2b4d6f8a0c2e", "jobId": "f1e2d3c4-b5a6-4978-8695-a4b3c2d1e0f9", "fileName": "housing-rev-c.pdf", "assignee": { "name": "Sam Okafor", "email": "sam.okafor@northfield.example", "inWorkspace": true }, "assignedBy": { "kind": "person", "name": "Dana Whitfield" }, "message": null, "dueOn": null, "status": "done", "createdAt": "2026-10-13T15:02:09+00:00", "closedAt": "2026-10-14T11:47:30+00:00", "reopenedAt": null, "sheetsWaiting": 0 } ], "hasMore": false, "nextCursor": null}Bad Request: a problem with a stable code. See Errors for every code and what to do about it.
Every error: a problem with a stable code. https://speccapture.com/docs/api/errors lists every code.
object
A link to the code’s entry in the docs.
What went wrong, in a few words for a person: the same for every problem with this code.
The HTTP status of the answer.
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.
The path of the request that was refused.
What went wrong, as a stable code to branch on: a published code never changes meaning.
This request’s trace: quote it when asking for help.
Examples
The request is not valid.
{ "type": "https://speccapture.com/docs/api/errors#invalid_request", "title": "The request is not valid.", "status": 400, "detail": "limit must be a whole number from 1 to 200; leave it out for 50.", "instance": "/v1/review-assignments", "code": "invalid_request", "traceId": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"}