Skip to main content
POST
Search files
Searches file contents with a regular expression. Pass context to include surrounding lines with each match.

Authorizations

Authorization
string
header
required

Enter your Zite API key. Format: Bearer <api_key>

Path Parameters

sessionId
string
required

The build session ID from Open a session.

Body

application/json
pattern
string
required

Regular expression to search for.

Example:

"createEndpoint"

context
integer

Lines of surrounding context to include per match.

Example:

2

Response

Search results

results
string

Raw grep -rn output over the workspace's code files, with context lines.

matchCount
integer