Verified HTTP routes enforced by the Bundata API server.

API reference

MethodPathResult
POST/auth/loginCookie session, or JWT when the client is non-browser
GET/auth/meUser, workspaces, active workspace
POST/auth/workspaceBinds a browser session to workspaceId
POST/auth/logoutRevokes the browser session
GET/api/w/:workspaceId/collectionsCollections for that workspace
POST/api/collections/:id/documents/upload-urlPresigned upload instructions (documentUploadRejection checked)
POST/api/collections/:id/documents/confirm201 and queued processing
POST/api/collections/:id/retrieveHybrid Retrieval v2 over a collection (includeTableFacts optional)
POST/api/collections/:id/answerStructured answer brief (answer-brief/v1), verified answer, or studied field answer (/answer/stream for SSE)
POST/api/w/:workspaceId/connections/:id/source-ingestQueued ingest for S3 or PostgreSQL
POST/api/w/:workspaceId/searchWorkspace search; semantic mode needs agent:run
POST/api/w/:workspaceId/search/answerGrounded answer or an explicit non-answer status

AI providers, models, and chunking

MethodPathResult
GET/api/account/org/llm/providersConnected providers (openai, anthropic, google), default provider, and dependent workspace choices
PUT/api/account/org/llm/providers/:providerConnect or replace an encrypted organization provider key
DELETE/api/account/org/llm/providers/:providerRemove an organization provider key
PUT/api/account/org/llm/default-providerSet a connected openai or anthropic key as the default provider
GET/api/w/:wsId/ai-modelsWorkspace AI model map, catalog models, and chat backend
PUT / DELETE/api/w/:wsId/ai-models/choices/:stepSet or clear a workspace model choice for one step
POST/api/w/:wsId/ai-models/fill-geminiFill unchosen steps with suggested Gemini models for Google-only orgs
GET / PUT/api/collections/:id/chunk-sizesRead or update a collection’s multi-size chunking strategy (single, three_sizes, custom)

Context Engine, Context Studio, Lineage, and Table Facts

MethodPathResult
GET/api/w/:wsId/context-engine/statusCoverage and reason codes across all 9 derived layers (?collectionId= optional)
POST/api/w/:wsId/context-engine/builds/dry-runEstimate document counts, model calls, and USD cost before building a layer
POST/api/w/:wsId/context-engine/buildsStart, :buildId/resume, or :buildId/cancel a Context Engine layer build
GET / PUT/api/w/:wsId/context-engine/switches[/:key]Read or toggle answer-path switches (graphrag.*, whole_document, field_answers) with evaluation evidence
PUT/api/w/:wsId/context-engine/strictnessSet claim verification strictness (remove, caveat, abstain)
GET / PUT / DELETE/api/w/:wsId/context-engine/ranking[/assignment|/shadow]Inspect ranking profile, hold deployment default, or opt into shadow comparisons
GET / POST/api/w/:wsId/context-library/*Business context library entries, versions, re-anchoring, approvals, stewards, /memory, and /asked-before
GET / POST / PUT/api/w/:wsId/context-sets/*Context sets, versions, proposals, rollback, preview, and access rows
GET / POST/api/w/:wsId/context-explore/*Context Studio Explore capabilities, turns, and private saved chats
GET / POST / PUT/api/w/:wsId/context-enrichment/*Enrichment settings, runs, proposals inbox, and member /suggestions
GET / POST / PUT / DELETE/api/w/:wsId/learning/*Answer feedback, kept questions, learning settings, and Gaps list
GET / POST / PUT/api/w/:wsId/graph-review/*Quality review queues, items, bitemporal decisions, undo, dataset promotion, and /gate
GET / POST / PUT / DELETE/api/w/:wsId/structured-context/*PostgreSQL/MySQL schema reads, dbt metadata reads, annotations, joins, and query template test/run
GET / POST / PUT / DELETE/api/w/:wsId/ask-history/*Private Ask conversations, notes, owner retention settings, and member /agent-memories
GET / POST/api/w/:wsId/documents/:documentId/tables/*Logical tables, typed cell facts, reconciliation findings, finance rules, and /api/w/:wsId/table-facts
POST/api/w/:wsId/lineage/*Lineage catalog-map, investigation reads, and time-travel reads (entity-profile, value-series, history, diff, activity, themes)

Agent credentials, Agent Context API, and MCP

MethodPathResult
GET / POST/api/w/:wsId/agent-credentialsList or create scoped bdk_… agent credentials (plus /:id/rotate, /:id/revoke, /:id/context-sets)
POST/api/agent/v1/context-packsRanked, deduplicated, cited evidence pack within token budget (/context-packs/stream for NDJSON)
POST/api/agent/v1/replays/:replayIdVerify or recompute a recorded context pack
POST/api/agent/v1/context-sets/listList usable context sets (plus /context-sets/get, /definitions/lookup, /verified-answers/match)
POST/api/agent/v1/fields/listList studied fields for a collection (plus /fields/query for structured filter/sort/aggregate plans)
POST/api/agent/v1/query-templates/runExecute an approved read-only PostgreSQL query template from an active context set
POST/api/agent/v1/memories/*Governed agent memory (remember, recall, list, forget)
POST/api/agent/v1/mcpStateless Streamable HTTP MCP server (bundata-workspace-context)

Paths that older pages marked conceptual, including /extraction/runs and unprefixed /v1, are not this contract.