Find Record records semantically furthest from a text query, scoped to one space.
Inverse of /similar: returns records whose embedded text fields are most
* DISTANT from the query (cosine distance, descending). Same filter/scope rules as
* /similar. Note: HNSW indexes do not accelerate distance-DESC queries; outlier
* ranking is closer to a full scan over the filtered candidate set.
- Type: integerspace
_id min:1requiredTenant scope. Custom module derived from
space.custom_module_id. - Type: stringquerymin length:1max length:4000required
Free-text query to embed; ranking returns records UNLIKE this. Max 4000 characters.
- Type: integerlimitmin:1
Integer numbers.
- Type: stringfilter
Filter expression. Mutually exclusive with
segment_id. - Type: integersegment
_id min:1ID of a saved segment whose filter to apply. Mutually exclusive with
filter. - Type: number Format: floatmax
_distance min:0max:2Cosine-distance floor in [0, 2]. Records whose best embedding is CLOSER than this are dropped.
- application/json
- 400
Validation error.
- 401
Not authenticated.
- 403
User lacks read access to the requested space.
- 405
Method not GET.
- 502
Embedding provider call failed.
curl 'https://test.boost.space/api/record/vector/outliers?space_id=123&query=premium%20wireless%20headphones' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"results": [
{
"recordId": 99887,
"distance": 0.91,
"record": {
"id": 42,
"created": "2026-01-15T09:30:00Z",
"createdUserId": 42,
"statusSystemId": 42,
"statusId": 42,
"spaceId": 42,
"featuredImageId": 42,
"files": [
1
],
"labels": [
1
],
"boostId": "string",
"customFieldsValues": [
{
"id": 42,
"created": "2026-01-15T09:30:00Z",
"valueWysiwyg": "string",
"valueInt": 1,
"valueFloat": 1.5,
"valueDatetime": "2026-01-15T09:30:00Z",
"valueModule": "string",
"value": "string",
"fileId": 42,
"customFieldInputId": 42,
"module": "activities",
"table": "string",
"entityId": 42,
"customFieldInputName": "Sample customFieldInputName",
"selected": true,
"ipAddress": "string",
"translatable": true,
"translations": {
"en": {
"field1": "translation1",
"field2": "translation2"
},
"it": {
"field1": "translation1",
"field2": "translation2"
},
"cs": {
"field1": "translation1",
"field2": "translation2"
}
}
}
]
}
}
],
"totalCandidates": 8000,
"queryTimeMs": 38
}