Skip to content

API Endpoints

The T3 webapp exposes REST endpoints under two path families.

Health Check

GET /api/health

Returns:

json
{
  "ok": true,
  "db": { "reachable": true, "latencyMs": 4 },
  "version": "1.0.0",
  "time": "2024-01-15T12:00:00.000Z"
}

On database failure returns HTTP 503 with "ok": false.

Response headers include cache-control: no-store.

Upload

POST /api/upload

Auth: x-api-key: $UPLOAD_API_KEY header required.

Body: multipart/form-data with a file field.

Constraints:

  • PDF only (magic-byte validated — first 5 bytes must be %PDF-)
  • Max 50 MB
  • Filename must not contain .., /, or \

On success, writes the PDF to ~/FundAdmin-AI-Vault/Inbox/ and triggers the classifier. Returns the classification result and whether the SDK review pipeline was triggered.

Error responses:

StatusBody
401{"error": "Unauthorized"}
400{"error": "No file"}
400{"error": "Only PDF files accepted"}
400{"error": "File too large (max 50MB)"}
400{"error": "Not a valid PDF file"}

Workspace-Scoped Endpoints (/api/w/[slug]/)

EndpointMethodDescription
/api/w/[slug]/activityGETWorkspace activity feed
/api/w/[slug]/copilotPOSTAI copilot chat
/api/w/[slug]/extractPOSTTerm extraction
/api/w/[slug]/fundsGET, POSTFund list / create
/api/w/[slug]/inboxGETInbox items
/api/w/[slug]/investorsGET, POSTInvestor list / create
/api/w/[slug]/issuesGETIssue list
/api/w/[slug]/runsGETRun history
/api/w/[slug]/searchGETGlobal search

Global Entity Endpoints

EndpointMethodDescription
/api/agents/[id]GETAgent detail
/api/autopilots/[id]GET, PATCH, DELETEAutopilot schedule
/api/funds/[id]GET, PATCHFund detail
/api/investors/[id]GET, PATCHInvestor detail
/api/issues/[id]GET, PATCHIssue detail
/api/runs/[id]GETRun detail
/api/skills/[id]GETSkill detail

MCP Vault Server REST API

The MCP vault server runs a separate HTTP listener on 127.0.0.1:3001 (configurable via MCP_VAULT_API_PORT).

EndpointMethodDescription
/api/review/statusPOSTUpdate review status
/api/kanban/addPOSTAdd Kanban card
/api/kanban/movePOSTMove Kanban card
/api/kanban/checkGETCheck card existence

This API is an internal interface between the webapp and the MCP vault server. It is not exposed to the public internet.

T1 (skills + CLI) and T2 (vault template) are MIT licensed.