Greptile website screenshot

Greptile

Greptile builds an AI layer that understands entire codebases. Its public REST API indexes Git repositories into a graph plus embeddings, then answers natural-language questions and searches over that code. Greptile also ships an AI code-review product delivered as a GitHub App that reviews pull requests for bugs and anti-patterns.

4 APIs 0 Features
AICodebase UnderstandingCode ReviewCode SearchDeveloper Tools

APIs

Greptile Query API

Submit a natural-language question against one or more indexed repositories and receive a synthesized answer plus the relevant source files, functions, and classes. Supports ses...

Greptile Repositories (Indexing) API

Submit a Git repository for indexing and check indexing progress. POST /repositories queues a repo (remote, repository, branch) for processing into a graph and embeddings; GET /...

Greptile Search API

Search one or more indexed repositories in natural language and receive just the ranked list of relevant files, functions, and classes - without the synthesized answer returned ...

Greptile Code Review (GitHub App)

AI code-review product delivered as a GitHub App (also GitLab / Bitbucket). Installed on repositories, it reviews pull requests against full-codebase context, flagging bugs and ...

Collections

Pricing Plans

Greptile Plans Pricing

4 plans

PLANS

Rate Limits

Greptile Rate Limits

4 limits

RATE LIMITS

FinOps

Event Specifications

Greptile Query Streaming (HTTP + SSE)

AsyncAPI 2.6 description of Greptile's **query streaming** surface. Greptile does not publish a WebSocket API. The only asynchronous / event-style transport documented at https:...

ASYNCAPI

Resources

👥
GitHubOrganization
GitHubOrganization
🔗
LinkedIn
LinkedIn
🔗
Website
Website
🔗
Documentation
Documentation
🔗
Plans
Plans
🔗
RateLimits
RateLimits
🔗
FinOps
FinOps

Sources

Raw ↑
opencollection: 1.0.0
info:
  name: Greptile API
  version: '2.0'
request:
  auth:
    type: bearer
    token: '{{greptileApiKey}}'
  headers:
  - name: X-GitHub-Token
    value: '{{gitHubToken}}'
items:
- info:
    name: Repositories
    type: folder
  items:
  - info:
      name: Submit a repository for indexing
      type: http
    http:
      method: POST
      url: https://api.greptile.com/v2/repositories
      body:
        type: json
        data: "{\n  \"remote\": \"github\",\n  \"repository\": \"greptileai/greptile\",\n  \"branch\": \"main\",\n  \"reload\"\
          : false,\n  \"notify\": false\n}"
    docs: Queues a Git repository for indexing into Greptile's graph and embeddings.
  - info:
      name: Get repository indexing status
      type: http
    http:
      method: GET
      url: https://api.greptile.com/v2/repositories/github%3Amain%3Agreptileai%2Fgreptile
    docs: Returns metadata and indexing progress. The repositoryId is URL-encoded remote:branch:owner/repository; a present
      sha means it is ready to query.
- info:
    name: Query
    type: folder
  items:
  - info:
      name: Query repositories
      type: http
    http:
      method: POST
      url: https://api.greptile.com/v2/query
      body:
        type: json
        data: "{\n  \"messages\": [\n    { \"role\": \"user\", \"content\": \"How is authentication handled in this codebase?\"\
          \ }\n  ],\n  \"repositories\": [\n    { \"remote\": \"github\", \"repository\": \"greptileai/greptile\", \"branch\"\
          : \"main\" }\n  ],\n  \"sessionId\": \"session-abc-123\",\n  \"stream\": false,\n  \"genius\": false\n}"
    docs: Returns a synthesized answer plus relevant sources. Set stream=true for SSE; set genius=true for the larger model.
- info:
    name: Search
    type: folder
  items:
  - info:
      name: Search repositories
      type: http
    http:
      method: POST
      url: https://api.greptile.com/v2/search
      body:
        type: json
        data: "{\n  \"query\": \"where is rate limiting implemented\",\n  \"repositories\": [\n    { \"remote\": \"github\"\
          , \"repository\": \"greptileai/greptile\", \"branch\": \"main\" }\n  ],\n  \"stream\": false\n}"
    docs: Returns just the ranked list of relevant files, functions, and classes - without the synthesized answer.