curl --request POST \
--url https://apigcp.trynia.ai/v2/local-folders/{local_folder_id}/grep \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pattern": "<string>",
"path": "<string>",
"case_sensitive": false,
"context_lines": 2,
"max_matches": 100
}
'{
"matches": [
{
"file_path": "<string>",
"line_number": 123,
"content": "<string>",
"context_before": [
"<string>"
],
"context_after": [
"<string>"
]
}
],
"total_matches": 123
}Search for a pattern across all files in the local folder using regex.
curl --request POST \
--url https://apigcp.trynia.ai/v2/local-folders/{local_folder_id}/grep \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pattern": "<string>",
"path": "<string>",
"case_sensitive": false,
"context_lines": 2,
"max_matches": 100
}
'{
"matches": [
{
"file_path": "<string>",
"line_number": 123,
"content": "<string>",
"context_before": [
"<string>"
],
"context_after": [
"<string>"
]
}
],
"total_matches": 123
}API key must be provided in the Authorization header
Local folder ID
Was this page helpful?