API Documentation

API Reference

Explore Cody's API capabilities for integration and automation.

Available APIs

Cody CLI

Command-line interface for Cody integration

View Documentation

GraphQL API

Rich API for code search and analysis

Learn More

Stream API

Real-time search results and metadata

Learn More

Authentication

To use Cody's APIs, you'll need to authenticate using an access token. Generate your token from:

Generate Token URL
https://sourcegraph.example.com/user/settings/tokens

Rate Limits

API Free Tier Pro Tier Enterprise
GraphQL API 5000 requests/hour 10000 requests/hour Custom limits
Stream API 1000 requests/hour 5000 requests/hour Custom limits

Next Steps