Search Repo(s)
Submit a natural language query about the codebase, get a list of relevant code references (filepaths, line numbers, etc).
Examples
- “Code to provision new API keys”
- “Functions that use recursion”
- “Code that touches session management in any way”
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Natural language search query to find the right code in the repo.
List of repos that Greptile should reference while answering your question.
Optional, defaults to a new session. You only need this if you want to retrieve this query/response later.
Optional, default false.
Response
The name of the repository where the file resides.
The remote service or platform where the repository is hosted.
The branch of the repository where the file is found.
The relative path to the file within the repository.
The starting line number of the code that is relevant, if applicable.
The ending line number of the code that is relevant, if applicable.
A summary or description of the contents and functionalities of the file.