Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api-reference/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ We offer a growing list of [first-party integrations](https://app.greptile.com/l
</Step>

<Step title="Search repos">
Optionally, use [`POST /search`](/api-reference/query) to search the repo or repos in natural language and get back just the list of relevant files, functions, classes etc., not the answer.
Optionally, use [`POST /search`](/api-reference/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.
</Step>
</Steps>

Expand Down
12 changes: 12 additions & 0 deletions api-reference/search.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: 'Search Repo(s)'
openapi: 'POST /search'
---

Submit a natural language search query to find relevant code references without generating an AI response.

Returns a list of relevant code files, functions, and snippets based on your search query, similar to the query endpoint but **without the AI-generated answer**.

Use this endpoint when you only need the source references and don't need an AI explanation.

Note: Before Greptile can search a repo, it must be indexed. See [Index Repository](/api-reference/index) for more information.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Missing newline at end of file - add empty line after the note

14 changes: 0 additions & 14 deletions api-reference/search.txt

This file was deleted.

1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"api-reference/index",
"api-reference/get-repository",
"api-reference/query",
"api-reference/search",
"api-reference/zapier"
]
}
Expand Down