Sourcegraph · GraphQL Specification

Sourcegraph GraphQL API

The historical GraphQL API used by most Sourcegraph integrations to date. It is still available but Sourcegraph now recommends migrating to the versioned REST API for compatibility guarantees. Also exposed as a debug surface inside each instance.

Documentation Endpoint View on GitHub Code IntelligenceCode SearchCodyAmpAI Coding AgentGraphQLREST APIMCPGraphQL

Overview

Sourcegraph GraphQL API is a GraphQL API specification published by Sourcegraph on the APIs.io network.

The historical GraphQL API used by most Sourcegraph integrations to date. It is still available but Sourcegraph now recommends migrating to the versioned REST API for compatibility guarantees. Also exposed as a debug surface inside each instance.

documentation is published at https://sourcegraph.com/api/graphql.

The specification includes 2 reference links.

Tagged areas include Code Intelligence, Code Search, Cody, Amp, and AI Coding Agent.

Endpoint

References

Back to Sourcegraph · All GraphQL Specs · GitHub