Find and understand an account
Use account search to turn a familiar company name or domain into a stable identifier, then enrich your workflow with a profile or account plan.
Required scope: account:read-write.
Resolve the company
- cURL
- JavaScript
- Python
curl 'https://api.vieu.com/api/v2/accounts/search?webDomain=vieu.com' \
--header "x-api-key: $VIEU_API_KEY"
const url = new URL('https://api.vieu.com/api/v2/accounts/search');
url.searchParams.set('webDomain', 'vieu.com');
const response = await fetch(url, {
headers: { 'x-api-key': process.env.VIEU_API_KEY },
});
const body = await response.json();
if (!response.ok) throw new Error(JSON.stringify(body));
console.log(body);
import os
import requests
response = requests.get(
"https://api.vieu.com/api/v2/accounts/search",
params={"webDomain": "vieu.com"},
headers={"x-api-key": os.environ["VIEU_API_KEY"]},
timeout=15,
)
response.raise_for_status()
print(response.json())
Choose a match from companies. Do not assume the first result is always correct: present candidates when the input is ambiguous. Search returns up to five results and does not use list pagination.
Read the profile
Pass the returned companyId, or an accountId from your tenant, as a query parameter. Replace the example ID below with a real result.
- cURL
- JavaScript
- Python
curl 'https://api.vieu.com/api/v2/accounts/profile?companyId=COMP-082e0318-8f24-4e21-a2ad-9259dfeef211' \
--header "x-api-key: $VIEU_API_KEY"
const url = new URL('https://api.vieu.com/api/v2/accounts/profile');
url.searchParams.set('companyId', 'COMP-082e0318-8f24-4e21-a2ad-9259dfeef211');
const response = await fetch(url, {
headers: { 'x-api-key': process.env.VIEU_API_KEY },
});
const body = await response.json();
if (!response.ok) throw new Error(JSON.stringify(body));
console.log(body);
import os
import requests
response = requests.get(
"https://api.vieu.com/api/v2/accounts/profile",
params={"companyId": "COMP-082e0318-8f24-4e21-a2ad-9259dfeef211"},
headers={"x-api-key": os.environ["VIEU_API_KEY"]},
timeout=15,
)
response.raise_for_status()
print(response.json())
The profile can include industry, size, headquarters, domain, and description. A free-text query is also supported; ambiguous input can return candidates instead of profile.
One identifier at a time For profile lookup, provide exactly one of companyId, accountId, or query.
Bring an account plan into your workflow
If the company has an account plan, export its brief and structured data:
- cURL
- JavaScript
- Python
curl 'https://api.vieu.com/api/v2/accounts/plan?accountId=665f1c2e9b1a4c0012a3b4c5' \
--header "x-api-key: $VIEU_API_KEY"
const url = new URL('https://api.vieu.com/api/v2/accounts/plan');
url.searchParams.set('accountId', '665f1c2e9b1a4c0012a3b4c5');
const response = await fetch(url, {
headers: { 'x-api-key': process.env.VIEU_API_KEY },
});
const body = await response.json();
if (!response.ok) throw new Error(JSON.stringify(body));
console.log(body);
import os
import requests
response = requests.get(
"https://api.vieu.com/api/v2/accounts/plan",
params={"accountId": "665f1c2e9b1a4c0012a3b4c5"},
headers={"x-api-key": os.environ["VIEU_API_KEY"]},
timeout=15,
)
response.raise_for_status()
print(response.json())
The plan can include stakeholders, org chart, opportunities, insights, and introductions. Technographics have a separate endpoint.
Try the request builder
The inline example includes account search with editable query parameters, three client languages, and inspectable JSON. Start with demo mode, then supply a key to query your tenant.