> For the complete documentation index, see [llms.txt](https://docs.customer-alliance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.customer-alliance.com/analytics.md).

# Analytics

Score and rating aggregates.

## Aggregate reputation scores and the CA Score for the key's node subtree

> Requires \`analytics:read\`.

```json
{"openapi":"3.1.0","info":{"title":"Customer Alliance API","version":"4.3.0"},"tags":[{"name":"Analytics","description":"Score and rating aggregates."}],"servers":[{"url":"https://app.customer-alliance.com/api/v4","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key created in Settings → API (`ca_live_…`)."}},"schemas":{"AnalyticsScores":{"type":"object","description":"Aggregate reputation scores for the key's node subtree.","properties":{"node_id":{"type":"string","format":"uuid"},"overall_score":{"type":["number","null"],"description":"Overall score on a 0–5 scale (one decimal)."},"overall_score_normalized":{"type":["number","null"],"description":"Overall score normalised to 0–100 (may carry one decimal; round for whole-percent display)."},"total_reviews":{"type":"integer"},"recommend_rate":{"type":["number","null"]},"response_rate":{"type":["number","null"]},"platform_scores":{"type":"array","items":{"type":"object","properties":{"platform":{"type":"string"},"score":{"type":["number","null"],"description":"Platform score on a 0–5 scale (one decimal)."},"score_normalized":{"type":["number","null"],"description":"Platform score normalised to 0–100 (may carry one decimal; round for whole-percent display)."},"reviews":{"type":"integer"}}}},"ca_score":{"type":"object","description":"The CA Score (Customer Alliance Score) for the key's subtree, all time: half the online portal score, half the survey score, weighted equally however many reviews or responses there are, as the dashboard shows it. It is not `overall_score`, which is the portal score alone.","properties":{"score_100":{"type":["number","null"],"description":"0–100, one decimal; null when neither half has a rating."},"basis":{"type":["string","null"],"enum":["both","portal","survey",null],"description":"Which halves the score rests on. With one half missing, the score is that half."},"low_sample":{"type":"boolean","description":"A half the score rests on has fewer than 10 ratings."},"portal":{"type":"object","description":"The mean score of portal reviews with a rating, from the review sources the account has connected.","properties":{"score_100":{"type":["number","null"]},"rated":{"type":"integer"}}},"survey":{"type":"object","description":"The mean overall score of completed responses to surveys owned within the subtree that count toward the CA Score. Surveys switched out of the CA Score, and imported or pushed responses, are left out. An aggregate under `analytics:read`: no response or answer is returned, which is what `surveys:read` covers.","properties":{"score_100":{"type":["number","null"]},"scored":{"type":"integer"}}}}}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string"}}}},"responses":{"Unauthorized":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The key lacks the required scope, the account's plan does not include it, or the key's owner no longer has the access it needs. The last is checked on every call: a key works only while the user who created it is active in the account and holds `api_keys.manage` where the key is bound, plus the permission behind each write scope it carries. Every call with such a key gets the same `403`, whatever its scope, until the owner's access is restored or an administrator creates a new key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/analytics/scores":{"get":{"summary":"Aggregate reputation scores and the CA Score for the key's node subtree","description":"Requires `analytics:read`.","operationId":"getAnalyticsScores","tags":["Analytics"],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnalyticsScores"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```
