Growth Intelligence

GetAccountById

Fetch a complete account profile by its unique ID. Returns acquisition, activation, monetization, engagement, and firmographic data — everything ThriveStack has learned about the account.

Endpoint

This is a GraphQL query sent over HTTP POST.

POST /growth-intelligence

Authentication

content-type: application/json
x-api-key: YOUR_API_KEY

Input

VariableTypeRequiredDescription
input.idStringYesThe unique account identifier (same group_id used in Group and Track calls).

GraphQL query

query GetAccountById($input: GetAccountByIdRequest!) {
  getAccountById(input: $input) {
    account {
      name
      id
      domain
      createdAt
      acquisition {
        abuseStatus
        abuseRuleResult { passed ruleId ruleName description }
        touchpointsToSignup
        timeToSignupDays
        initialUtmSource
        initialUtmMedium
        initialUtmCampaign
        initialUtmTerm
        initialUtmContent
      }
      activation {
        journeyName
        isDefault
        status
        activatedOn
        ttv
        timeSpent
        completionPercentage
        currentStep
        championUser
        lastUpdated
      }
      monetization {
        plan
        billingStatus
        mrr
        arr
        nextDueDate
      }
      engagement {
        isActive
        lastActiveAt
        dailyActiveUsers
        weeklyActiveUsers
        monthlyActiveUsers
        stickinessWeekly
        stickinessMonthly
      }
      firmographics {
        name
        domain
        legalName
        description
        industry
        industryGroup
        sector
        subIndustry
        employeeCount
        employeeCountRange
        annualRevenue
        marketCap
        raised
        founderYear
        type
        city
        state
        stateCode
        country
        countryCode
        postalCode
        streetAddress
        streetName
        streetNumber
        location
        timeZone
        phone
        phoneNumbers
        emailAddresses
        emailProvider
        logo
        linkedinHandle
        twitterHandle
        facebookHandle
        crunchbaseHandle
        domainAliases
        tags
        tech
        techCategories
        trafficRank
      }
    }
  }
}

Example

cURL

curl --location 'https://api.app.thrivestack.ai/growth-intelligence' \
--header 'content-type: application/json' \
--header 'x-api-key: YOUR_API_KEY' \
--data '{
  "operationName": "GetAccountById",
  "variables": {
    "input": {
      "id": "ac8db7ba-5139-4911-ba6e-523fd9c4704b"
    }
  },
  "query": "query GetAccountById($input: GetAccountByIdRequest!) { getAccountById(input: $input) { account { name id domain createdAt acquisition { touchpointsToSignup initialUtmSource } monetization { plan mrr arr } engagement { isActive dailyActiveUsers } firmographics { industry employeeCount city country } } } }"
}'

JavaScript

const response = await fetch("https://api.app.thrivestack.ai/growth-intelligence", {
  method: "POST",
  headers: {
    "content-type": "application/json",
    "x-api-key": "YOUR_API_KEY"
  },
  body: JSON.stringify({
    operationName: "GetAccountById",
    variables: { input: { id: "ac8db7ba-5139-4911-ba6e-523fd9c4704b" } },
    query: `query GetAccountById($input: GetAccountByIdRequest!) {
  getAccountById(input: $input) {
    account {
      name id domain createdAt
      monetization { plan mrr arr }
      engagement { isActive dailyActiveUsers }
      firmographics { industry employeeCount city country }
    }
  }
}`
  })
});
const data = await response.json();
console.log(data.data.getAccountById.account);

Response fields

Top-level account

FieldTypeDescription
nameStringAccount display name
idStringUnique account identifier
domainStringPrimary domain
createdAtStringISO 8601 account creation timestamp

acquisition

FieldTypeDescription
touchpointsToSignupIntNumber of marketing touchpoints before signup
timeToSignupDaysIntDays from first touch to signup
initialUtmSourceStringFirst-touch UTM source
initialUtmMediumStringFirst-touch UTM medium
initialUtmCampaignStringFirst-touch UTM campaign
abuseStatusStringAbuse detection status

activation

FieldTypeDescription
journeyNameStringName of the activation journey
statusStringCurrent activation status
completionPercentageFloatJourney completion percentage (0–100)
ttvFloatTime-to-value in days
championUserStringMost active user driving activation
currentStepStringThe current onboarding step

monetization

FieldTypeDescription
planStringCurrent subscription plan
billingStatusStringBilling status (e.g., "active", "past_due")
mrrFloatMonthly Recurring Revenue (USD)
arrFloatAnnual Recurring Revenue (USD)
nextDueDateStringNext billing date (ISO 8601)

engagement

FieldTypeDescription
isActiveBooleanWhether the account is currently active
lastActiveAtStringTimestamp of last activity
dailyActiveUsersIntDAU count
weeklyActiveUsersIntWAU count
monthlyActiveUsersIntMAU count
stickinessWeeklyFloatDAU/WAU ratio
stickinessMonthlyFloatDAU/MAU ratio

firmographics

Enriched company data including industry, employeeCount, annualRevenue, city, country, tech, techCategories, social handles, and more. These fields are populated automatically when ThriveStack enriches the account domain.

Example response

{
  "data": {
    "getAccountById": {
      "account": {
        "name": "Acme Corporation",
        "id": "ac8db7ba-5139-4911-ba6e-523fd9c4704b",
        "domain": "acme.com",
        "createdAt": "2024-01-15T10:30:00Z",
        "acquisition": {
          "touchpointsToSignup": 3,
          "timeToSignupDays": 7,
          "initialUtmSource": "google",
          "initialUtmMedium": "cpc",
          "initialUtmCampaign": "brand",
          "abuseStatus": "clean"
        },
        "monetization": {
          "plan": "pro",
          "billingStatus": "active",
          "mrr": 299.00,
          "arr": 3588.00,
          "nextDueDate": "2024-02-15T00:00:00Z"
        },
        "engagement": {
          "isActive": true,
          "lastActiveAt": "2024-01-15T09:00:00Z",
          "dailyActiveUsers": 5,
          "weeklyActiveUsers": 12,
          "monthlyActiveUsers": 18,
          "stickinessWeekly": 0.42,
          "stickinessMonthly": 0.28
        },
        "firmographics": {
          "industry": "SaaS",
          "employeeCount": "250",
          "city": "San Francisco",
          "country": "United States"
        }
      }
    }
  }
}