Sourcegraph REST API

Versioned external REST API introduced in Sourcegraph 7.0 and intended as the stable integration surface going forward. Each Sourcegraph instance exposes its own /api-reference path where the live OpenAPI schema is published. Backwards compatibility is guaranteed within a major version.

Sourcegraph REST API is one of 10 APIs that Sourcegraph publishes on the APIs.io network.

Tagged areas include REST API, OpenAPI, and Code Intelligence. The published artifact set on APIs.io includes API documentation and an API reference.

API entry from apis.yml

apis.yml Raw ↑
aid: sourcegraph:sourcegraph-rest-api
name: Sourcegraph REST API
description: Versioned external REST API introduced in Sourcegraph 7.0 and intended as the stable integration
  surface going forward. Each Sourcegraph instance exposes its own /api-reference path where the live
  OpenAPI schema is published. Backwards compatibility is guaranteed within a major version.
humanURL: https://sourcegraph.com/docs/api
tags:
- REST API
- OpenAPI
- Code Intelligence
properties:
- type: Documentation
  url: https://sourcegraph.com/docs/api
- type: APIReference
  url: https://sourcegraph.com/api-reference