Skip to main content
POST
Grep Space Pages

Authorizations

X-API-Key
string
header
required

Body

application/json
pattern
string
required

Text to find in each line. Literal unless regex is true.

address
string | null

Search only this space or page subtree: '' for a space root, '/' for a page (e.g. 'handbook/onboarding/first-week').

regex
boolean
default:false

Read pattern as a POSIX advanced regular expression.

ignore_case
boolean
default:false
context
integer
default:0

Lines to return before and after each match (0 to 10).

paths_only
boolean
default:false

Return matching pages with their match counts only.

limit
integer
default:50

Maximum matches (or pages with paths_only), 1 to 50.

Response

200 - application/json

OK

mode
string
required
data
GrepMatchOut · object
required
has_more
boolean
required
object
string
default:grep_result
hint
string | null