Powerful Code Intelligence API

Access Dialect's AI-driven code understanding through a simple REST API with sandboxed testing available.

API Overview

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

API Sandbox UI Mockup
Try our API explorer

Authentication

Getting Started

All requests require an API key in the Authorization header using the Bearer scheme.

Authorization: Bearer YOUR_API_TOKEN

Permissions

Project scoped token READ
Organization token FULL
Legacy token DEPRECATED

Rate Limits

  • Free Tier 100 req/min
  • Pro Tier 1000 req/min
  • Enterprise Custom

API Endpoints

POST /api/v1/search

Search Codebase

Full-text search across your code repositories using natural language queries with semantic matching.

Request

{ "query": "find login logic", "project_id": "my-project" }

Response

[file1:auth.js, line:34], [route:POST /login]
POST /api/v1/documentation

Generate Documentation

Automatically generate API documentation from code comments, function signatures, and usage patterns.

Request

{ "path": "src/api/index.js", "project_id": "my-project" }

Response

[Markdown documentation output] # Authentication Endpoint POST /login ...
GET /api/v1/analytics

Codebase Analytics

Retrieve statistics about code quality, complexity, and usage patterns across your repositories.

Request

{ "project_id": "my-project" }

Response

{ "code_smell_count": 17, "test_coverage": 82% }
POST /api/v1/webhooks

Webhooks Subscription

Configure event-driven integrations to receive real-time notifications about codebase changes.

Request

{ "events": ["code_change", "docs_update"], "url": "https://your-callback.com/webhook" }

Response

{ "subscriber_id": "webhook-123" }

Try the API Sandbox

POST /api/v1/search

Request

Response

200 OK

Ready to power your workflows with code intelligence?

Get started with a free API key and explore Dialect's capabilities in your own development tools.