API docs
Every answer comes with its evidence: the document, the page or section, and the sentence it rests on. When the documents do not say, the API says so instead of guessing.
This page is the guide. Every route, parameter and schema: API reference · openapi.yaml
Authentication
Create your organization's keys in the app, under API (shown once — keep them on your servers), and send one with every request. Add X-CorpLens-Reference to label a call with your own reference (for instance one of your clients).
curl "https://www.corplens.ai/api/v1/companies/search?q=VINCI" \
-H "Authorization: Bearer $CORPLENS_KEY"
Use it from your AI assistant (MCP)
CorpLens is also a remote MCP server: Claude Code, Cursor and other assistants read the companies of your portfolio, ask questions and add companies — every answer with its evidence. Endpoint https://www.corplens.ai/mcp, with your API key.
claude mcp add --transport http corplens https://www.corplens.ai/mcp \
--header "Authorization: Bearer $CORPLENS_KEY"
Tools: search_companies, resolve_company, get_company, get_facts, get_financials, get_obligations, get_activities, get_dependencies, get_profile, get_evidence, ask, list_portfolio, add_company — the same quotas as the API. Without a key, get_plans and start_signup let an assistant present the offers and give you the link to subscribe; you always sign up and pay yourself.
Your companies
You read the companies of your portfolio. Add one by name, ISIN or LEI: if CorpLens has it ready, it is available at once (READY); otherwise it is prepared for you (PREPARING) and you are emailed — and your webhook called — when it is ready, usually within 24 hours.
curl -X POST "https://www.corplens.ai/api/v1/portfolio" \
-H "Authorization: Bearer $CORPLENS_KEY" -H "Content-Type: application/json" \
-d '{"company": "FR0000125486"}'
A company stays current on its own: when a newer annual report is published, CorpLens reads it and rebuilds the profile — you keep the previous one meanwhile, and you are not emailed again.
Each addition and each question counts against your plan; the X-Quota-Limit, X-Quota-Used and X-Quota-Remaining headers say where you stand.
Dates
Two optional dates (YYYY-MM-DD) make every answer reproducible:
as_of- The date the facts must be true at — “who was CEO on 1 January 2025”.
known_at- The date of your knowledge — what CorpLens knew on that day, ignoring anything published or corrected later. Defaults to today.
Routes
| Route | Returns |
|---|---|
GET /api/v1/companies/search?q= | Companies matching a name, ISIN, ticker or LEI. |
GET /api/v1/companies/resolve | Which company another system means, by exactly one of lei, domain or name: MATCHED, AMBIGUOUS (the candidates) or NOT_FOUND, with a stable reference corplens:company:<id>. |
GET /api/v1/companies/{id} | A company and its identifiers. |
GET /api/v1/companies/{id}/facts | Its facts with their evidence. Filters: category, as_of, known_at. |
GET /api/v1/companies/{id}/financials | Reported figures (revenue, income, cash…) by period, each with its source. |
GET /api/v1/companies/{id}/documents | The official documents CorpLens has read. |
GET /api/v1/companies/{id}/obligations | The regulations the company falls under (EU DORA, French e-invoicing), since when — each with the official text and the company's own proof. ?all=1 adds those not established. |
GET /api/v1/companies/{id}/activities | What the company does: product families and goods or services, each from one cited fact. Filter: known_at. |
GET /api/v1/companies/{id}/dependencies | What it depends on: countries with their roles (operations, market, supply, sourcing, asset), commodities, routes, named suppliers — each with the facts that say it. Filters: type, role, known_at. |
GET /api/v1/companies/{id}/profile | The account profile: strategy, cost programmes, technology, organisation, risks, procurement, M&A — every claim cited. |
GET /api/v1/evidence/{id} | One piece of evidence: document, location and excerpt. |
POST /api/v1/ask | An answer to a question about one company, built only from its documents. |
GET /api/v1/portfolio | The companies you follow, each with its status. |
POST /api/v1/portfolio | Add a company by name, ISIN or LEI. |
DELETE /api/v1/portfolio/{id} | Stop following a company. |
A fact and its evidence
GET /api/v1/companies/1/facts?category=PROCUREMENT
{ "results": [{
"statement": "VINCI says procurement exceeded 40 billion euros in 2025 and is a key lever …",
"raw_value": "40",
"raw_unit": "milliards d’euros",
"normalized_value": "40000000000.000000",
"normalized_unit": "EUR",
"valid_from": "2025-01-01",
"evidence": [{
"where": "p. 287",
"excerpt": "Les achats, qui se sont élevés à plus de 40 milliards d’euros en 2025, …",
"url": "https://filings.xbrl.org/…/VINCI-2025-12-31-1-fr.xhtml",
"document": { "title": "VINCI 2025 annual financial report (ESEF)",
"publication_date": "2026-03-04" }
}]
}] }
statement is the fact in English. raw_value and raw_unit are the value and its unit exactly as the document writes them, in its language (empty when the fact has no value); normalized_value and normalized_unit give a comparable number when there is one. excerpt is the sentence of the document, in its original language. where is a page when the document has pages, otherwise its section.
Questions
POST /api/v1/ask
{ "company": "VINCI", "question": "How large is group procurement?" }
{ "answer_status": "ANSWERED",
"answer": "More than €40 billion in 2025 …",
"claims": [{ "text": "…", "citations": [{ "id": 812 }] }],
"evidence": [ … ] }
When the documents do not answer, answer_status says so and no claim is made.
Errors
401- Missing or revoked key.
404- Unknown company, or a profile not computed yet.
400- A malformed date or question (1 to 2,000 characters).
402- No active plan, or a payment failed more than 7 days ago.
409- Several companies match the name you added — add it by its LEI.
429- Your trial's limit is reached for this month.
503- Answers are temporarily unavailable; retry later.
