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 KNOWPASSBEHAVIOR
The registration numberregistrationNumber + countryExact lookup — 0 or 1 results, no search, no LLM. interpretation.matchedBy: "registration_number"
Name + countryname + countryDeterministic registry search in that country, no LLM. Legal-form suffixes ("S.A.B. de C.V.", "LTDA") are stripped. routedBy: "caller"
Only a descriptionq (+ 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

curl -H "x-api-key: vk_live_…" \ "https://app.verety.ai/api/v1/search?country=BR&registrationNumber=07918048" { "interpretation": { "country": "BR", "matchedBy": "registration_number" }, "results": [{ "id": "cnpj-07918048", "name": "…", "taxId": { "label": "CNPJ", "value": "07918048", "confidence": "confirmed" } }], "registriesQueried": 1 }

Response

FIELDDESCRIPTION
interpretation.countryISO 3166-1 alpha-2 the query was routed to, or null.
interpretation.searchTextThe company name after stripping filler words.
interpretation.routedBysearch_agent — the agent routed the query · none — routing unavailable, searched all entitled countries.
interpretation.actionFree 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.subjectTypeFree 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.namesEvery company name searched (up to 3). searchText is the first.
interpretation.countriesThe countries actually searched. notCovered and notEntitled list the ones asked for but not searched.
interpretation.filtersDetails read from the query: officer, city, industry, website, year, status. Present only when one was given.
targetFree text only. What the search is looking for. Send it back as context to refine — see below.
results[].idEntity id — pass to /v1/entity/{id} or /v1/investigate.
results[].nameLegal name as recorded by the registry.
results[].countryISO country code.
results[].registryWhich registry answered (e.g. RFB / CNPJ REGISTRY, INEGI DENUE).
results[].registryRefThe record's key in that registry.
results[].locationRegistered 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 / mismatchesThe 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.
registriesQueriedHow many registries actually answered — not how many were asked.
notePresent 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

curl -H "x-api-key: vk_live_…" "https://app.verety.ai/api/v1/search?q=petrobras+brazil" { "query": "petrobras brazil", "interpretation": { "country": "BR", "searchText": "petrobras", "routedBy": "search_agent" }, "results": [{ "id": "cnpj-07918048", "name": "ASSOCIACAO DESPORTIVA CLASSISTA PETROBRAS NORTE", "country": "BR", "registry": "RFB / CNPJ REGISTRY", "registryRef": "07918048", "location": null, "taxId": { "label": "CNPJ", "value": "07918048", "confidence": "confirmed" } }], "registriesQueried": 1 }

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.

FIELDDESCRIPTION
results[0].kind · subjectType · nameperson, 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.

curl -G -H "x-api-key: vk_live_…" "https://app.verety.ai/api/v1/search" \ --data-urlencode "q=in the UK, the CEO is John Smith" \ --data-urlencode 'context={"target":{"names":["acme jets"],"countries":[]}}' { "interpretation": { "action": "search", "names": ["acme jets"], "countries": ["GB"], "filters": { "officer": "John Smith", … }, … }, "target": { "names": ["acme jets"], "countries": ["GB"], "identifier": null, "filters": { … } }, "results": [{ "id": "gb-ch-09876543", "name": "ACME JETS LTD", "matches": ["Director John Smith"], … }] }

A context that is not valid JSON returns 400 invalid_context.

ON THIS PAGE