Data

Search document text

POST
/data/grep

Find a regular expression (case-insensitive; literal text works as is, at least 3 characters) in the current text of the documents of a Space, optionally under one folder: live Markdown documents, uploaded CSV, TSV, TXT, MD and JSON files as they are, and the extracted text of other uploads. Returns path, id, hash, line number and line per match, with context_lines around it. Search records with records.sql.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/data/grep" \  -H "Content-Type: application/json" \  -d '{    "space_id": "123e4567-e89b-42d3-a456-426614174000",    "pattern": "example"  }'
{  "matches": [    {}  ],  "truncated": false}