Documents

Search facts

POST
/spaces/{space_id}/facts/search

Search a Space's extracted facts by relevance (BM25) or, with regex=true, by regular expression. Returns an empty result list rather than an error when nothing matches.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Path Parameters

space_id*string

Resource identifier: space_id.

Formatuuid

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/spaces/123e4567-e89b-42d3-a456-426614174000/facts/search" \  -H "Content-Type: application/json" \  -d '{    "pattern": "example"  }'
{  "space_id": "123e4567-e89b-42d3-a456-426614174000",  "pattern": "acme",  "regex": false,  "results": [    {      "document_id": "123e4567-e89b-42d3-a456-426614174001",      "file_name": "invoice-2026-09.pdf",      "key": "supplier.name",      "value": "Acme S.A.S.",      "score": 2.31,      "document_type": "invoice"    }  ],  "total_returned": 1}