Query your codebase in natural language and integrate seamlessly with Slack, Sentry & GitHub workflows.
/retrieve
endpoint?”Index repo(s)
POST /repositories
to submit a repo to get indexed.Query repos
POST /query
to query the repo or repos in natural language and get back an answer and a list of relevant files, functions, classes etc.Search repos
POST /search
to search the repo or repos in natural language and get back just the list of relevant files, functions, classes etc., not the answer.https://api.greptile.com/v2/
.
Authorization: Bearer <API_KEY>
.
You can get your API key here.
GitHub Token:
Include this header with your GitHub/Gitlab access token for operations requiring GitHub access:
X-GitHub-Token: <GITHUB_TOKEN>
.
Note: The read permissions on the GitHub/GitLab token determine which repos Greptile can reference in its answers.