Skip to content
Proofline for developers

Build with research.
Ship with evidence.

Give your application a research engine. Start a run, follow the work and bring cited findings back into your product—with explicit access, effort and review controls.

REST APIPythonTypeScriptMCP
POST /v1/runOne-call API · server-side
# Server-side: set PROOFLINE_API_ORIGIN and PROOFLINE_KEY.
# Persist REQUEST_ID and reuse it only for this same request.
curl "$PROOFLINE_API_ORIGIN/v1/run?wait=60" \
  -H "Authorization: Bearer $PROOFLINE_KEY" \
  -H "Idempotency-Key: $REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "question": "Research Acme Logistics and its supplier risks",
    "effort": "standard"
  }'

# 200: completed result. 202: pending, with poll_url and stream_url.
# Follow the returned poll_url with the same authentication.

200 returns a result. 202 returns the URLs to follow it.
Code examples only; no request is executed here.

A small integration surface

Your request. Our research. Your application’s next step.

Use the one-call API to get started, or workspace routes when you need detailed control over agents, plans and reports.

YOUR APPLICATION → PROOFLINE → YOUR TEAMIntegration overview
  1. A scoped request

    Send the brief and permitted context with a workspace API key.

    runs:write
  2. An inspectable run

    Follow progress, then retrieve the report and its supporting references.

    reports:read
  3. Your review workflow

    Use structured findings in your application and review proposed actions.

    Evidence + open questions
REQUEST → RESPONSE → NEXT STEPIllustrative response excerpts

Read the result and its evidence.

A completed one-call request returns a result. Inspect the run status, sources, and any unresolved findings before your application relies on the answer.

Read the relevant guide ↗
EXAMPLE / 200
{
  "status": "completed",
  "answer": "Example cited research brief…",
  "claims": []
}

Keep the report and source references together.

INTEGRATION MAP / ONE API, MANY WAYS IN

Proofline APIRuns, reports, agents, events
Workspace control routes

Go deeper when your workflow needs it.

Follow a research request through completion and retrieve its findings with source references. The API documentation covers the integration details.

  • A live key with runs:write, runs:read and reports:read.
  • An eligible plan for API writes.
  • An Idempotency-Key for API-key POST requests to workspace routes.
  • Secrets stored on your server, outside browser bundles.
Set up authentication ↗
// Server-side: configure your API origin, live key and workspace.
// Persist the idempotency key with this request; reuse it for retries.
const origin = process.env.PROOFLINE_API_ORIGIN;
const workspace = "your-workspace";
const headers = {
  Authorization: `Bearer ${process.env.PROOFLINE_KEY}`,
  "Content-Type": "application/json",
  "Idempotency-Key": crypto.randomUUID(),
};

const response = await fetch(
  `${origin}/v1/workspaces/${workspace}/runs`,
  {
    method: "POST",
    headers,
    body: JSON.stringify({
      question: "Research Acme Logistics and its supplier risks",
      effort: "standard",
      require_plan_approval: false,
    }),
  }
);
if (!response.ok) throw new Error(await response.text());
const run = await response.json();
console.log(run.id, run.status, run.charged_micro_usd);
Asynchronous by design

Follow a run. Handle every outcome.

A request starting successfully does not mean the research has finished. Keep waiting, review and terminal states distinct.

01Request
02Research
03Evidence
04Your review

Illustrative lifecycle. Real runs may wait for approval, fail, be cancelled or retain a partial answer.

Connect the event stream ↗
EVENT REFERENCEReceiver guide ↗
run.completed
Research finished; retrieve the result and inspect its status.
run.failed
Handle the failure and any retained context.
report.ready
The report rendering is ready.
batch.completed
Inspect the batch and its individual row results.

Verify X-Signature against the raw body, acknowledge durable receipt and deduplicate before side effects.

From question to confidence

Ask your hardest question.

Your first 10 Standard tasks every month are on us.

Run a free task ↗
Can we measure how the site is used?

With your OK, Google Analytics counts visits. No ads, no selling data. Cookie Policy