Skip to main content
You can fetch the OpenAPI document for your Sourcebot instance from /api/openapi.json. This API reference is generated from the web app’s Zod schemas and OpenAPI registry. Mintlify renders it from the checked-in spec at /api-reference/sourcebot-public.openapi.json. The first documented endpoints include:
  • /api/search
  • /api/stream_search
  • /api/repos
  • /api/version
  • /api/source
  • /api/tree
  • /api/files
To refresh the spec after you change those contracts:
yarn openapi:generate