Skip to content

Workspace API

Read the saved project measurements and the current fix plan from a signed-in AnswerSignal session.

Authentication and project ownership

Use these same-origin endpoints from an active AnswerSignal browser session. Copy the project ID from the response to GET /api/projects for your own signed-in account. The project endpoints return 401 for a missing session and 404 for an unavailable or unowned project. Account-scoped responses are private and non-cacheable.

const list = await fetch("/api/projects");
if (!list.ok) throw new Error("Project list returned " + list.status);
const { projects } = await list.json();
if (!projects.length) throw new Error("Create a project in the workspace first.");
const id = encodeURIComponent(projects[0].id);

GET /api/projects/{id}/insights

Returns projectId, insights and visibilityEvidence. The technical group holds homepage checks, fixes holds task counts, visibility holds all-time and matched samples, and outcomes holds client-reported results. visibilityEvidence includes manual sample totals and up to 12 leading cited domains with supporting observation IDs. A missing measurement can produce a null result.

const res = await fetch("/api/projects/" + id + "/insights");
if (!res.ok) throw new Error("Insights request returned " + res.status);
const { insights } = await res.json();

GET /api/projects/{id}/fix-plan

Returns projectId, openActions and prompt. The text is the current plan built from saved findings and open actions. When no actions are open, prompt is null. Keep the response private because it may include project details, recorded notes and evidence.

const res = await fetch("/api/projects/" + id + "/fix-plan");
if (!res.ok) throw new Error("Fix plan request returned " + res.status);
const { openActions, prompt } = await res.json();

Report export

For a downloadable copy of the workspace record, use GET /api/projects/{id}/report from the same signed-in session. It returns the saved audit, task, observation, content and outcome records with their source notes and calculated measurements.

See the privacy policy