OriginService
POST /v1/origin/repos/{ownerSlug}/{repoName}:grep
Searches the text of the files in the repository at a ref and returns the lines that match, plus any requested surrounding context lines. The search is line-oriented: a pattern never matches across a line break, and each returned entry is one line. The response is complete only when limit_hit is false; see max_results. An empty repository (no refs) returns no matches and limit_hit false. Uses POST because the search parameters travel in the request body.
Request
- Base URLhttps://api.cursor.com
- AuthHTTP bearer
Path parameters
ownerSlugstring required
Owning entity's unique slug.
repoNamestring required
Repo name, unique to the owner entity.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.