Search account
Use Test Request to send this request with your API key.
GET /api/v2/accounts/search
Resolves up to five matching companies from exactly one search input:
query, webDomain, linkedInUrl, companyId, or accountId. Each
result is annotated with this tenant's account state. accountId and
hasAccountPlan reflect whether the tenant already has an account plan
for the company. An accountId input resolves to its company first; an
unknown or cross-tenant accountId returns 404.
Required scope: account:read-write
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | No | Free-text company search query. |
webDomain | string | No | Company web or email domain. |
linkedInUrl | string | No | Company LinkedIn URL. |
companyId | string | No | Company (global) ID. |
accountId | string | No | This tenant's account-plan id; resolves to its company. |
Responses
200
Up to five resolved companies annotated with account state.
{
"type": "object",
"additionalProperties": false,
"required": [
"companies"
],
"properties": {
"companies": {
"type": "array",
"description": "Up to five account (company) search results, ordered by search relevance.",
"maxItems": 5,
"items": {
"type": "object",
"description": "A company matched by account search, annotated with this tenant's\naccount state. `accountId` and `hasAccountPlan` reflect whether the\ntenant already has a (non-archived) account plan for the company.\n",
"additionalProperties": false,
"required": [
"companyId",
"name",
"linkedInUrl",
"imageUrl",
"verified",
"accountId",
"hasAccountPlan"
],
"properties": {
"companyId": {
"type": "string",
"description": "Vieu company (global) ID.",
"example": "COMP-082e0318-8f24-4e21-a2ad-9259dfeef211"
},
"name": {
"type": "string",
"description": "Company display name.",
"example": "Vieu"
},
"linkedInUrl": {
"type": [
"string",
"null"
],
"format": "uri",
"description": "Canonical LinkedIn URL when Vieu has one.",
"example": "https://www.linkedin.com/company/vieu"
},
"imageUrl": {
"type": [
"string",
"null"
],
"format": "uri",
"description": "Company logo URL when Vieu has one.",
"example": "https://media.vieu.com/company/vieu/logo"
},
"verified": {
"type": "boolean",
"description": "Whether Vieu has verified this company entity."
},
"accountId": {
"type": [
"string",
"null"
],
"description": "This tenant's account-plan id for the company, or `null` when the\ntenant has no account plan for it.\n",
"example": "665f1c2e9b1a4c0012a3b4c5"
},
"hasAccountPlan": {
"type": "boolean",
"description": "True when `accountId` is present (the tenant has an account plan for the company)."
}
}
},
"example": [
{
"companyId": "COMP-082e0318-8f24-4e21-a2ad-9259dfeef211",
"name": "Vieu",
"linkedInUrl": "https://www.linkedin.com/company/vieu",
"imageUrl": "https://media.vieu.com/company/vieu/logo",
"verified": true,
"accountId": "665f1c2e9b1a4c0012a3b4c5",
"hasAccountPlan": true
}
]
}
}
}
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."
}
}
}