Skip to main content
POST
Search app code

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>.

Path Parameters

app_id
string
required

ID of the app whose code to read.

Body

application/json

The text to find.

query
string
required

Text to find, 2 to 200 characters on a single line. It's matched literally.

Required string length: 2 - 200
Example:

"useState("

case_sensitive
boolean
default:false

Whether the match respects case.

Example:

false

Response

The matching lines, grouped by file.

The files that contain the text.

files
SearchFileResult · object[]
required

Each file with at least one match.

Example:
truncated
boolean
required

true when the search stopped at 500 matching lines or 10 seconds, so there can be more matches.

Example:

false

skipped_files
integer
required

Number of files left out of the search because they're over 5 MB or aren't text.

Example:

0