Search files
Finds lines that match a regular expression, like grep -rn. Skips binary files and files over 1 MiB.
On a branch whose namespace has a linked index, only the files that hold every trigram the pattern needs are read, and files changed since the index last caught up are read too, so a search over a huge tree takes about as long as one over the files that can match. Such a search covers the files the link indexes; the skywake-searched header says index or scan.
bearerAuthorizationBearer <token>namespace*stringA namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.
branch*stringA branch, such as main or agents/fix-1. Encode / as %2F.
pattern*string1 <= length <= 1000path?stringSearch only under this folder.
length <= 4096""glob?stringSearch only paths this glob matches. Without / it matches a name at any depth.
1 <= length <= 1000ignoreCase?stringMatch letters of either case. False by default.
"true""false"at?stringRead an older commit of the branch instead of its head.
^[0-9a-f]{64}$limit?|The most matches to return. 100 by default.
The matches.
application/json- response
[index: integer]?curl -X GET 'https://example.com/v1/namespaces/string/branches/string/search?pattern=string'[ { "path": "string", "line": 0, "text": "string" }]