Lens

The engine behind Strata, as an API.

The same retrieval and census that power Lens Strata, available as a service for your own applications. No workspace or org account required.

POST /v1/answer
200 OK
Request
$ curl -X POST https://api.lens.cx/v1/answer \
-H "Authorization: Bearer $LENS_API_KEY" \
-d '{"query": "What are the renewal terms for CloudScale?", "index": "customer-contracts"}'
Response
{
"answer": "CloudScale auto-renews for 12 months unless either party gives 60 days notice.
Payment terms are net-45 from the invoice date." [1][2],
"citations": [
{
"source": "cloudscale-renewal-2026.pdf", "page": 4,
"url": "https://files.lens.cx/cloudscale-renewal-2026.pdf"
},
{
"source": "master-services-agreement.pdf", "page": 11,
"url": "https://files.lens.cx/master-services-agreement.pdf"
}
],
"grounded": true
}

What the API returns

Ranked retrieval

Source and document results across the Web, the Lens Index and the Indexes you build.

Per-claim census

For each claim, the sources that support, refute or stay neutral, with a citation into each passage.

Your own Indexes

Upload document collections and scope every call to the sources you trust.

Grounding for agents

Feed your own models checked evidence instead of raw search results.

One engine, two front doors.

Strata is the workspace. The API is the same retrieval and census with no interface on top. Whatever ships in Strata reaches the API on the same engine, so what you see in a demo is what your code gets back.

1
Point at your Indexes

Choose the sources each call should read, from the Web to your own uploads.

2
Send a query or a claim

Ask for ranked sources, or hand over a claim and get its census back.

3
Read the evidence

Take the ranked sources or the per-claim census straight into your product.

4
Ground your model

Use the checked evidence as context for your own agents and answers.

How teams build on it

You own your routes and schemas. We give you the behavior and a live endpoint to build against.

Getting access

The API is in early access. We size the fit, hand you a live endpoint and shape the integration around the routes and schemas you own. There is no self-serve key yet.Pricing is worked out during the scoping conversation. There are no public tiers yet.Book a demo to scope access, or request early access to join the queue.

Build on the engine that shows its sources.