Powerful Code Intelligence API
Access Dialect's AI-driven code understanding through a simple REST API with sandboxed testing available.
Access Dialect's AI-driven code understanding through a simple REST API with sandboxed testing available.
The Dialect API provides programmatic access to AI-driven code analysis and semantic navigation tools. With endpoints for codebase exploration, documentation generation, and intelligent code suggestions, you can integrate Dialect's capabilities into custom tools and workflows.
curl 'https://api.dialect.codebase/search' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-d '{ "query": "find authentication logic", "project_id": "my-project" }'
Example cURL request for codebase search in the /search endpoint
All requests require an API key in the Authorization header using the Bearer scheme.
Authorization: Bearer YOUR_API_TOKEN
Full-text search across your code repositories using natural language queries with semantic matching.
{
"query": "find login logic",
"project_id": "my-project"
}
[file1:auth.js, line:34],
[route:POST /login]
Automatically generate API documentation from code comments, function signatures, and usage patterns.
{
"path": "src/api/index.js",
"project_id": "my-project"
}
[Markdown documentation output]
# Authentication Endpoint
POST /login
...
Retrieve statistics about code quality, complexity, and usage patterns across your repositories.
{
"project_id": "my-project"
}
{
"code_smell_count": 17,
"test_coverage": 82%
}
Configure event-driven integrations to receive real-time notifications about codebase changes.
{
"events": ["code_change", "docs_update"],
"url": "https://your-callback.com/webhook"
}
{
"subscriber_id": "webhook-123"
}
Get started with a free API key and explore Dialect's capabilities in your own development tools.