Skip to content
Documentation
Hevia for developers

Customer success

Health score per customer.

Health score per customer. Reading never writes a snapshot.

Health score of every customer (read only, no snapshot is written)

GET /success/health

ScopePackageIdempotency-Key
success:readScale (API)not used

Parameters

NameInTypeDescription
limitqueryinteger1 to 100. Default 25.
offsetqueryintegerDefault 0.
bandquerystringOne of good, medium, low, unknown.
at_riskquerybooleantrue: only customers with at least one risk.

Request

curl "https://hevia.app/api/v1/success/health?at_risk=true" \
  -H "Authorization: Bearer $HEVIA_KEY"

Response

200 OK.

JSON
{
  "data": [
    {
      "contact_id": "e:anna@example.com",
      "name": "Anna Example",
      "score": 82,
      "band": "good",
      "coverage": 0.8,
      "trend": 1,
      "risks": [
        "example risk"
      ],
      "key_account": false
    }
  ],
  "pagination": {
    "limit": 25,
    "offset": 0,
    "total": 1,
    "next_offset": null
  }
}

Fields of CustomerHealth:

FieldTypeDescription
contact_idstring
namestring | null
scoreinteger | null0-100, null when there is no data.
bandstringOne of good, medium, low, unknown.
coveragenumberShare of the score weight that had data (0-1).
trendinteger | nullChange of the score against the earlier snapshot.
risksstring[]
key_accountboolean

Errors

StatusCodeWhen
400invalid_requestInvalid request
401unauthorizedMissing or invalid key
403insufficient_scopeThe key or token does not have the scope of the endpoint.
403plan_requiredThe business's package does not include the API (Scale) or the feature of the endpoint.
429rate_limitedRate limit (120 requests per minute and key); see the RateLimit-* headers

Generated from the product's own registries, so the reference matches the API.