Accounts
List account stakeholders
Use Test Request to send this request with your API key.
GET /api/v2/accounts/stakeholders
Returns the generated stakeholders for an account, in the same shape
as the stakeholder CSV export minus the contact-detail columns
(email). If the account's power pods have not been generated
yet, generated is false and stakeholders is empty. Trigger
generation with POST /accounts/stakeholders/generate.
Required scope: account:read-write
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
accountId | string | No | The 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. |
companyId | string | No | The 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. |
Responses
200
The account's stakeholders (or a not-generated indication).
{
"type": "object",
"description": "Stakeholders for an account. When the account's power pods have not\nbeen generated yet, `generated` is `false` and `stakeholders` is\nempty. Call `POST /accounts/stakeholders/generate` to start seeding.\n",
"required": [
"accountId",
"generated",
"seedingStatus",
"stakeholders"
],
"properties": {
"accountId": {
"type": "string"
},
"companyId": {
"type": "string",
"description": "Global id of the company this account represents."
},
"generated": {
"type": "boolean",
"description": "Whether power pods (stakeholder categories) exist for this account."
},
"seedingStatus": {
"type": "string",
"description": "Current stakeholder-seeding status.",
"enum": [
"not_started",
"pending",
"completed",
"failed"
]
},
"message": {
"type": "string",
"description": "Present when `generated` is `false`."
},
"stakeholders": {
"type": "array",
"items": {
"type": "object",
"description": "A single account stakeholder, in the same shape as the stakeholder\nCSV export minus the contact-detail columns (email). Resolve\nemail contact details via `GET /persons/contact`.\n",
"required": [
"personId",
"company",
"name",
"title",
"linkedInUrl",
"vieuUrl",
"location",
"swimlane"
],
"properties": {
"personId": {
"type": "string",
"example": "PERS-082e0318-8f24-4e21-a2ad-9259dfeef211"
},
"company": {
"type": "string"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"linkedInUrl": {
"type": "string"
},
"vieuUrl": {
"type": "string",
"description": "Deep link into the Vieu account plan for this person."
},
"location": {
"type": "string"
},
"swimlane": {
"type": "string",
"description": "The power pod (stakeholder category) this person belongs to."
}
}
}
}
},
"example": {
"accountId": "665f1c2e9b1a4c0012a3b4c5",
"companyId": "COMP-082e0318-8f24-4e21-a2ad-9259dfeef211",
"generated": true,
"seedingStatus": "completed",
"stakeholders": [
{
"personId": "PERS-082e0318-8f24-4e21-a2ad-9259dfeef211",
"company": "Acme",
"name": "Jane Doe",
"title": "VP Data Platform",
"linkedInUrl": "https://www.linkedin.com/in/janedoe",
"vieuUrl": "https://app.vieu.com/account-v2?id=665f1c2e9b1a4c0012a3b4c5#pt=person&pid=PERS-082e0318-8f24-4e21-a2ad-9259dfeef211",
"location": "San Francisco, CA",
"swimlane": "Economic Buyers"
}
]
}
}
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."
}
}
}