cURL
curl --request POST \ --url https://apigcp.trynia.ai/v2/fs/{source_id}/grep \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "pattern": "<string>", "path": "", "case_sensitive": false, "whole_word": false, "fixed_string": false, "max_total_matches": 100, "max_matches_per_file": 10, "context_lines": 3, "output_mode": "content" } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Regex search across files in an indexed source.
API key must be provided in the Authorization header
Regex pattern
Path prefix filter
1 <= x <= 10000
1 <= x <= 100
0 <= x <= 10
content|files_with_matches|count
Successful Response
Was this page helpful?
Suggestions
Contact support