Body Required
-
Beginning of the name or the domain of a company
-
countryFilters array[string] | null
-
excludeDomains array[string] | null
POST /v2/autocomplete/companies
curl \
-X POST https://api.ocean.io/v2/autocomplete/companies?apiToken=string \
-H "Content-Type: application/json" \
-d '{"name":"ocea","countryFilters":["dk","se"],"excludeDomains":["ocean.com"]}'
Request examples
{
"name": "ocea",
"countryFilters": [
"dk",
"se"
],
"excludeDomains": [
"ocean.com"
]
}
Response examples (200)
{
"companies": [
{
"domain": "ocean.io",
"logo": "https://cdn2.ocean.io/companies-logos-v1/domain.com/020539e284d9318e805301b672ad23047c30818a.png",
"name": "Ocean"
}
]
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}