Skip to main content

Accounts API

List accounts with their scores, levels, engagement metrics, and metadata. Accounts represent companies or organizations that group related leads, providing an account-level view of engagement and buying signals.

GET /accounts

Returns a paginated list of accounts for the active Organizational Unit, including firmographic scores, engagement metrics, and surge activity.

Query Parameters

ParameterTypeRequiredDescription
searchstringNoSearch by account name or domain
pageintegerNoPage number for pagination (default: 1)
per_pageintegerNoResults per page (default: 25, max: 100)
sort_bystringNoField to sort by: name, score, engagement, last_activity
sort_orderstringNoSort direction: asc or desc (default: desc)
account_levelstringNoFilter by account level (e.g., "Target", "Qualified")
min_scoreintegerNoMinimum account score
max_scoreintegerNoMaximum account score
min_engagementintegerNoMinimum engagement score
created_afterstringNoISO 8601 timestamp - accounts created after this date
created_beforestringNoISO 8601 timestamp - accounts created before this date
last_activity_afterstringNoISO 8601 timestamp - accounts active after this date
surge_statusbooleanNoFilter by surge activity: true (active surge) or false

Example

curl -X GET "https://api.leadvibe.com/accounts?page=1&per_page=25&sort_by=score&account_level=Target" \
-H "Authorization: Bearer <token>"

Response

200 OK

{
"accounts": [
{
"account_id": "acct_abc123",
"domain": "acme.com",
"name": "Acme Corporation",
"account_score": 85,
"account_level": "Target",
"total_leads": 12,
"engagement_score": 245,
"last_activity_at": "2026-01-30T14:23:00Z",
"surge_active": true,
"surge_window_start": "2026-01-28T00:00:00Z",
"surge_event_count": 47,
"metadata": {
"company_size": "Enterprise",
"industry": "Technology",
"country": "United States",
"employees": 2500,
"plan": "Pro"
},
"created_at": "2025-11-15T10:00:00Z",
"updated_at": "2026-01-30T14:23:00Z"
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total_count": 142,
"total_pages": 6
}
}

Response Fields

FieldTypeDescription
account_idstringUnique account identifier
domainstringPrimary email domain for the account
namestringAccount name (company name)
account_scoreintegerFirmographic score based on account attributes
account_levelstringAccount tier (Target, Qualified, Standard, etc.)
total_leadsintegerNumber of contacts associated with this account
engagement_scoreintegerCombined engagement across all contacts
last_activity_attimestampMost recent activity from any contact
surge_activebooleanWhether account is currently experiencing surge
surge_window_starttimestampWhen the current surge window started (if active)
surge_event_countintegerNumber of events during current surge (if active)
metadataobjectAccount metadata properties (firmographic data)
created_attimestampWhen the account was first created
updated_attimestampWhen the account was last modified

Pagination Object

FieldTypeDescription
pageintegerCurrent page number
per_pageintegerResults per page
total_countintegerTotal number of accounts matching filters
total_pagesintegerTotal number of pages available

Common Errors

StatusMeaningSolution
400Bad RequestInvalid query parameter value (e.g., invalid sort_by)
401UnauthorizedCheck authentication credentials
500Server ErrorContact support if the issue persists

Notes

  • Accounts are automatically created when leads with new account_id values are added
  • Account scores are calculated based on Account Scoring Rules
  • Account levels are assigned based on Account Level thresholds
  • Surge detection is enabled at the organization level
  • All accounts are scoped to your Organizational Unit