Get the account
curl -sS https://api.speccapture.com/v1/account \ -H "Authorization: Bearer $SPECCAPTURE_API_KEY"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"));
HttpResponseMessage response = await Call(HttpMethod.Get, "/v1/account");Console.WriteLine(await response.Content.ReadAsStringAsync());
// 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
print(call("GET", "/v1/account").text)const API = "https://api.speccapture.com";const headers = { Authorization: `Bearer ${process.env.SPECCAPTURE_API_KEY}` };
console.log(await call("GET", "/v1/account").then((response) => response.text()));
// 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;}The key you are calling with and its workspace: the workspace’s name, its plan or where its free trial stands, its credits (available, held for jobs being read, spent, and when the next of them expire) and how many sheets they pay for, the limits the key works within (requests a minute, the largest file, the most sheets and pixels, and how many days drawings are kept), the key itself - its name, whether it is live or test, and the role it acts with - and the free monthly allowance: its size, what is left of this month’s and when the next arrives. Any key, live or test: the first call to make with a new key.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
The workspace the key belongs to - its credits and plan - the limits the key works within, and the key itself: GET /v1/account.
object
The workspace’s name.
What the workspace is on: a monthly plan, or where its free trial stands.
object
The plan while the workspace is on one, else where its free trial stands.
When the free trial ends or ended; null when the workspace never had one.
When the plan renews and its next month’s credits arrive; null when it is set to end, or there is no plan.
When a canceled plan ends, at the end of the month paid for; null otherwise.
True when the plan’s last payment failed and is being retried: reading continues meanwhile, and the workspace’s owner updates the card on the dashboard’s Credits page. Null when there is no plan.
The workspace’s credits: what is available, what is held for jobs being read, and what was spent.
object
What can be reserved now.
Reserved for jobs still being read.
What read sheets have cost, all time.
What one drawing sheet costs.
How many more sheets the available credits pay for.
The key’s rate limit, the largest file and the most sheets and pixels one may hold, and how long drawings are kept.
object
This key’s rate limit; the X-RateLimit-* headers on every response count against it.
The largest file a submission takes, in megabytes.
The most sheets (pages) one file may hold.
The most pixels one page may hold, in millions, as page_too_large states it.
How many days after a job finishes its drawing is kept - the uploaded file, its page images and every value’s box. After that every box is null, view links are refused, and the job says when (drawingPurgedAt).
The key this request was made with.
object
The key’s id, as GET /v1/api-keys lists it.
What the person who made the key called it (“ERP import”).
A live key reads drawings and spends credits; a test key never does.
What someone may do in a workspace - and what an API key may do, since a key acts with the role the person who created it had when they created it.
owner: One per workspace: everything an admin can do, plus handing over ownership and deleting the workspace.admin: People, API keys, webhooks and settings, plus everything a member can do.member: Upload, review, correct and export.
How many more drawing sheets the workspace can read now: the same as sheetsAvailable, at perSheet credits a sheet.
The workspace’s free monthly allowance: its size, what is left of this month’s and when the next arrives. Months are UTC months: an allowance is given at the first reading of the workspace’s credits in a month and expires when the month ends, so unused sheets never carry over.
object
The sheets it pays for each month.
Where the workspace stands with it.
What is left of this month’s, in sheets; 0 when this month’s has not been given.
The same in credits.
When the next month’s allowance is due, in UTC: the end of this month. Null when none is coming - on a plan, or with no verified sign-in - and while the trial runs, when it starts at trialEndsAt.
Examples
A live key on the Pro plan
{ "workspaceName": "Northfield Precision", "plan": { "name": "pro", "trialEndsAt": "2026-09-13T14:02:41+00:00", "renewsAt": "2026-11-03T00:00:00+00:00", "endsAt": null, "paymentFailed": false }, "credits": { "available": 1832, "held": 0, "spent": 1168, "perSheet": 4, "sheetsAvailable": 458, "nextExpiry": { "credits": 1832, "expiresAt": "2026-11-03T00:00:00+00:00" } }, "limits": { "requestsPerMinute": 120, "maximumFileSizeMegabytes": 50, "maximumSheetsPerFile": 200, "maximumPageMegapixels": 150, "retentionDays": 90 }, "apiKey": { "keyId": "9d4c1a2b-6e8f-4a3c-b5d7-2f1e0a9b8c7d", "name": "ERP import", "mode": "live", "role": "admin" }, "sheetsRemaining": 458, "freeAllowance": { "sheetsPerMonth": 10, "status": "onPlan", "sheetsLeft": 0, "creditsLeft": 0, "renewsAt": null }}A key on the free monthly allowance, after the trial
{ "workspaceName": "Northfield Precision", "plan": { "name": "trialEnded", "trialEndsAt": "2026-09-27T14:02:41+00:00", "renewsAt": null, "endsAt": null, "paymentFailed": null }, "credits": { "available": 28, "held": 0, "spent": 112, "perSheet": 4, "sheetsAvailable": 7, "nextExpiry": { "credits": 28, "expiresAt": "2026-11-01T00:00:00+00:00" } }, "limits": { "requestsPerMinute": 120, "maximumFileSizeMegabytes": 50, "maximumSheetsPerFile": 200, "maximumPageMegapixels": 150, "retentionDays": 90 }, "apiKey": { "keyId": "9d4c1a2b-6e8f-4a3c-b5d7-2f1e0a9b8c7d", "name": "ERP import", "mode": "live", "role": "admin" }, "sheetsRemaining": 7, "freeAllowance": { "sheetsPerMonth": 10, "status": "thisMonth", "sheetsLeft": 7, "creditsLeft": 28, "renewsAt": "2026-11-01T00:00:00+00:00" }}