Semantic search over the tenant's indexed objects
const url = 'https://api.aerandil.com/v1/retrieval/search';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"limit":10,"object_types":["example"],"query":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.aerandil.com/v1/retrieval/search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "limit": 10, "object_types": [ "example" ], "query": "example" }'Embeds query and cosine-ranks it against the host-side retrieval index (AIP Increment 4, Option B: vanilla Postgres, no extension). Only unmarked String/Text/Enum properties are ever embedded, and every hit is re-hydrated through the caller’s authorized read path — marking redaction applies and unreadable objects are dropped, never ranked into view. Returns 501 when the retrieval tier is disabled (AERANDIL_RETRIEVAL_ENABLED unset).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Maximum hits returned (clamped to 1..100).
Optional filter to these object-type api-names; defaults to every indexed type.
Natural-language query text.
Responses
Section titled “Responses”Cosine-ranked, ACL-hydrated hits, best first.
object
object
The object’s properties as the caller is cleared to see them (marking redaction applied).
object
Cosine similarity in [-1, 1], higher is closer.
Examplegenerated
{ "data": [ { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "object_type": "example", "properties": {}, "score": 1 } ]}Headers
Section titled “Headers”Always no-store — live data.
Missing objects:read scope.
The retrieval tier is disabled on this deployment.