API Reference
Backend endpoints, MCP entrypoints, and the snapshot objects that power Documint on itself.
Core routes
GET /healthreturns backend health plus cache and runtime details.GET /runtimereturns deployment metadata, commit source, and whether git metadata is available.GET /snapshotreturns the full project snapshot for the self-dogfood repo.GET /projectsreturns the configured project list. V1 exposes the dogfood project only.GET /sourcesreturns the Git repository source configuration.GET /integrations/github/appreturns GitHub App metadata, required events, and the install URL.POST /integrations/github/webhooksverifies GitHub deliveries and converts supported events into drift jobs.POST /jobs/driftruns the doc drift detector and returns a completed verification run.POST /jobs/publishcreates a preview-style publish result for the current repo state.GET /artifacts/{artifact_id}/traceexplains which source files and doc files back an artifact.
Snapshot objects
The public dashboard and the MCP surface share the same backend objects:
ProjectRepositorySourceRuntimeStatusArtifactTraceDriftFindingDocPatchVerificationRunPublishDeployment
Auth
V1 allows read-only access without auth. Mutating routes can require a bearer token when AUTH_TOKEN or DOCUMINT_AUTH_TOKEN is configured.
GitHub webhooks are authenticated separately through X-Hub-Signature-256 using GITHUB_WEBHOOK_SECRET.
GitHub webhook behavior
pushdeliveries collect changed files from the commit payload and run a scoped drift check.pull_requestdeliveries trigger a full artifact drift evaluation because the standard webhook payload does not include a file list.releasedeliveries trigger a full artifact drift evaluation before the next publish decision.- unsupported events, mismatched repositories, and ignored actions are acknowledged with an
ignoredstatus instead of mutating state.
Dogfood rule
The API exists to prove the Documint repo can document itself first. External customer onboarding comes after the self-dogfood loop is stable.
Production note
When the backend runs in a container or managed deploy without a .git directory, Documint can still report the current revision if the platform provides DOCUMINT_DEPLOY_COMMIT, RAILWAY_GIT_COMMIT_SHA, VERCEL_GIT_COMMIT_SHA, or GITHUB_SHA.