Skip to main content
Accounts

Read a company/account profile

Use Test Request to send this request with your API key.

GET /api/v2/accounts/profile

Returns the profile (industry, size, headquarters, domain, description) for a company. Address it by accountId, companyId, or a free-text query (exactly one). When the reference is ambiguous, candidates is returned instead of profile.

Required scope: account:read-write

Query parameters​

NameTypeRequiredDescription
accountIdstringNoThe account (plan) id. Provide exactly one of accountId or companyId. An accountId is unique to a customer platform-wide; within a tenant it is 1:1 with companyId, so the two are interchangeable when addressing an account.
companyIdstringNoThe company's global id (as returned by GET /accounts/search). Resolves to the tenant's account for that company. Provide exactly one of accountId or companyId.
querystringNoFree-text company search query.

Responses​

200​

The resolved profile, or candidates to disambiguate.


{
"type": "object",
"description": "A single resolved company profile, or a list of candidates when the\nreference was ambiguous.\n",
"properties": {
"profile": {
"type": "object",
"description": "Profile for a company/account.",
"required": [
"companyId",
"id",
"name"
],
"properties": {
"companyId": {
"type": "string",
"description": "Vieu company (global) ID.",
"example": "COMP-082e0318-8f24-4e21-a2ad-9259dfeef211"
},
"id": {
"type": "string",
"deprecated": true,
"description": "**Deprecated — use `companyId`.**\n"
},
"name": {
"type": "string"
},
"imageUrl": {
"type": "string",
"format": "uri",
"description": "Company logo URL when Vieu has one."
},
"industry": {
"type": "string"
},
"employeeCount": {
"type": "integer"
},
"headquarters": {
"type": "string"
},
"domain": {
"type": "string"
},
"linkedInUrl": {
"type": "string"
},
"description": {
"type": "string"
}
}
},
"candidates": {
"type": "array",
"description": "Present instead of `profile` when the reference was ambiguous.",
"items": {
"type": "object",
"description": "One possible match for an ambiguous reference. Person and company\ncandidates share this shape, so a field that does not apply to the\nentity type is simply absent.\n",
"required": [
"id",
"name"
],
"properties": {
"id": {
"type": "string",
"description": "Vieu id of the candidate — `PERS-<uuid>` or `COMP-<uuid>`."
},
"name": {
"type": "string"
},
"imageUrl": {
"type": "string",
"format": "uri",
"description": "Profile photo (people) or logo (companies) when Vieu has one."
},
"domain": {
"type": "string",
"description": "Website domain (companies)."
},
"linkedInUrl": {
"type": "string",
"format": "uri"
},
"linkedInSlug": {
"type": "string",
"description": "Vanity slug from the LinkedIn profile URL (people)."
},
"email": {
"type": "string"
},
"employeeCount": {
"type": "integer",
"description": "Employee count (companies)."
},
"currentRoles": {
"type": "array",
"description": "Every current role (people).",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"company": {
"type": "string"
}
}
},
"example": [
{
"title": "Director of Data Engineering",
"company": "Acme"
}
]
},
"score": {
"type": "number",
"description": "Search relevance (higher is better). Only the ordering within one\nresult set is meaningful.\n"
}
}
}
}
}
}

400​

The request is malformed or failed validation.


{
"type": "object",
"description": "Standard error response.",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Machine-readable error code.",
"enum": [
"ERR_INVALID_REQUEST",
"ERR_NOT_FOUND",
"ERR_RATE_LIMIT",
"ERR_INTERNAL_SERVER"
]
},
"message": {
"type": "string",
"description": "Human-readable error message."
}
}
}

401​

Missing or invalid API key.


{
"type": "object",
"description": "Returned on 401 responses. `reason` is a stable machine-readable code\nthat clients can branch on without parsing `message`.\n",
"required": [
"message",
"reason"
],
"properties": {
"message": {
"type": "string",
"example": "Invalid Auth Token Provided"
},
"reason": {
"type": "string",
"description": "- `TOKEN_MISSING`: no `x-api-key` header on the request.\n- `TOKEN_EXPIRED`: the key was found but has expired or been revoked (also used when the key is unknown).\n- `ACCESS_DENIED`: the token is present but not accepted for the resource.\n- `AUTH_INVALID`: generic auth failure, usually an internal error resolving the key.\n",
"enum": [
"TOKEN_MISSING",
"TOKEN_EXPIRED",
"ACCESS_DENIED",
"AUTH_INVALID"
],
"example": "TOKEN_EXPIRED"
}
}
}

403​

API key lacks the scope required to call this endpoint.


{
"type": "object",
"description": "Returned on 403 responses. The key was valid but does not have the\nscope required by the endpoint.\n",
"required": [
"code",
"message",
"reason"
],
"properties": {
"code": {
"type": "string",
"enum": [
"ERR_FORBIDDEN"
]
},
"message": {
"type": "string",
"example": "Insufficient permissions for this operation"
},
"reason": {
"type": "string",
"description": "- `SCOPE_INSUFFICIENT`: the authenticated key's scopes do not include the one required by this endpoint.\n- `FORBIDDEN`: generic 403 (rarely used on v2 routes; reserved for non-scope access checks).\n",
"enum": [
"SCOPE_INSUFFICIENT",
"FORBIDDEN"
],
"example": "SCOPE_INSUFFICIENT"
}
}
}

404​

Resource not found, or not owned by the authenticated tenant.


{
"type": "object",
"description": "Standard error response.",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Machine-readable error code.",
"enum": [
"ERR_INVALID_REQUEST",
"ERR_NOT_FOUND",
"ERR_RATE_LIMIT",
"ERR_INTERNAL_SERVER"
]
},
"message": {
"type": "string",
"description": "Human-readable error message."
}
}
}

429​

API key rate limit exceeded.


{
"type": "object",
"description": "Standard error response.",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Machine-readable error code.",
"enum": [
"ERR_INVALID_REQUEST",
"ERR_NOT_FOUND",
"ERR_RATE_LIMIT",
"ERR_INTERNAL_SERVER"
]
},
"message": {
"type": "string",
"description": "Human-readable error message."
}
}
}

500​

Unexpected server error.


{
"type": "object",
"description": "Standard error response.",
"required": [
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Machine-readable error code.",
"enum": [
"ERR_INVALID_REQUEST",
"ERR_NOT_FOUND",
"ERR_RATE_LIMIT",
"ERR_INTERNAL_SERVER"
]
},
"message": {
"type": "string",
"description": "Human-readable error message."
}
}
}