GET POST /api/v1/search
Find a company three ways, by how much your system already knows. The more structure you pass, the more deterministic the call — no LLM is involved unless you use free text.
Input modes
| YOU KNOW | PASS | BEHAVIOR |
|---|---|---|
| The registration number | registrationNumber + country | Exact lookup — 0 or 1 results, no search, no LLM. interpretation.matchedBy: "registration_number" |
| Name + country | name + country | Deterministic registry search in that country, no LLM. Legal-form suffixes ("S.A.B. de C.V.", "LTDA") are stripped. routedBy: "caller" |
| Only a description | q (+ context) | Free text — the Search Agent routes it. It can name several companies, a region ("in Europe") and details such as a director, city, founding year or "active". routedBy: "search_agent" |
Modes are exclusive — mixing q with structured params returns 400 conflicting_parameters. A country whose registry has no number-lookup yet returns 422 unsupported_lookup_for_country.
Structured lookup example
Response
| FIELD | DESCRIPTION |
|---|---|
interpretation.country | ISO 3166-1 alpha-2 the query was routed to, or null. |
interpretation.searchText | The company name after stripping filler words. |
interpretation.routedBy | search_agent — the agent routed the query · none — routing unavailable, searched all entitled countries. |
interpretation.action | Free text only. search · ask — not enough to search, show interpretation.message (a short question) to the user · not_covered — every country asked for is outside coverage. |
interpretation.subjectType | Free text only. company · person · driver, read from an identifier's format (CPF, CURP, SSN, VIN…) or the words. A vehicle is checked with its driver: a VIN or plate with no driver named gets action: "ask", as does a bare name that could be a person or a company. |
interpretation.names | Every company name searched (up to 3). searchText is the first. |
interpretation.countries | The countries actually searched. notCovered and notEntitled list the ones asked for but not searched. |
interpretation.filters | Details read from the query: officer, city, industry, website, year, status. Present only when one was given. |
target | Free text only. What the search is looking for. Send it back as context to refine — see below. |
results[].id | Entity id — pass to /v1/entity/{id} or /v1/investigate. |
results[].name | Legal name as recorded by the registry. |
results[].country | ISO country code. |
results[].registry | Which registry answered (e.g. RFB / CNPJ REGISTRY, INEGI DENUE). |
results[].registryRef | The record's key in that registry. |
results[].location | Registered address when the registry provides one, else null. |
results[].taxId | {label, value, confidence}. Confidence: confirmed (the registry's own key) · candidate (resolved, partially corroborated) · pending (resolvable on request). |
results[].matches / mismatches | The details from filters checked on this record, e.g. ["London", "Director John Smith"] / ["not 2015"]. Matching records rank first within the same name match; records are never dropped for a mismatch. Directors are checked for UK and French records. |
registriesQueried | How many registries actually answered — not how many were asked. |
note | Present only when results are empty for a reason: country_not_entitled (the query routed to a country outside your key) or country_not_supported (no registry for that country yet — supportedCountries lists what is covered). We never silently search elsewhere. |
Example
A person or a driver
When the free text describes a person or a driver, nothing is searched in company registries. The response has one row in results, built from what was typed and the documents you attach. To attach documents, POST the same parameters as a JSON body with files (as on /v1/investigate). Search reads them; it never runs or charges a check.
| FIELD | DESCRIPTION |
|---|---|
results[0].kind · subjectType · name | person, then driver or person, and the name. |
complete · missing[] · invalid[] | Whether /v1/investigate can run with these details, and what it still needs. |
mismatches | { major, minor }: what was typed against the documents. A major one stops the check (see /v1/investigate). |
fields[] | Each detail: key, label, required, value and source (given, or the document it was read from). |
documents[] · photo · unread[] | Each file as read (docType, expiresOn, signedOn), the photo (a data URL) and the files that couldn't be read. |
note: "onboard" | The text asks to onboard the person, not to check them: use POST /v1/onboarding. |
Refining a free-text search
Each free-text response carries a target. To refine — another country, a director's name — send only the new words as q and the previous target as context(URL-encoded JSON). The earlier names, countries and details are kept unless the new words change them.
A context that is not valid JSON returns 400 invalid_context.