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.
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
- Documentation https://sourcegraph.com/docs/api
- APIReference https://sourcegraph.com/api/graphql