---
title: "Get account analytics"
method: GET
path: "/v1/accounts/{accountId}/analytics"
tags: ["Accounts and users"]
---

# Get account analytics

`GET /v1/accounts/{accountId}/analytics`

## Request

- Base URL: `https://yourbaseurl.talon.one`
- URL: `https://yourbaseurl.talon.one/v1/accounts/{accountId}/analytics`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/talon/apis/management-api/docs/v1/accounts/:accountId/analytics/get.ts> (a function with typed inputs; its response is checked against the schema)

> [!note] Management API endpoints are **not** meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.

Return the analytics of your Talon.One account.

## Path parameters

- `accountId` integer, required

## Response `200`

OK

- AccountAnalytics
  - `applications` integer, required: Total number of applications in the account.
  - `liveApplications` integer, required: Total number of live applications in the account.
  - `sandboxApplications` integer, required: Total number of sandbox applications in the account.
  - `campaigns` integer, required: Total number of campaigns in the account.
  - `activeCampaigns` integer, required: Total number of active campaigns in the account.
  - `liveActiveCampaigns` integer, required: Total number of active campaigns in live applications in the account.
  - `coupons` integer, required: Total number of coupons in the account.
  - `activeCoupons` integer, required: Total number of active coupons in the account.
  - `expiredCoupons` integer, required: Total number of expired coupons in the account.
  - `referralCodes` integer, required: Total number of referral codes in the account.
  - `activeReferralCodes` integer, required: Total number of active referral codes in the account.
  - `expiredReferralCodes` integer, required: Total number of expired referral codes in the account.
  - `activeRules` integer, required: Total number of active rules in the account.
  - `users` integer, required: Total number of users in the account.
  - `roles` integer, required: Total number of roles in the account.
  - `customAttributes` integer, required: Total number of custom attributes in the account.
  - `webhooks` integer, required: Total number of webhooks in the account.
  - `loyaltyPrograms` integer, required: Total number of all loyalty programs in the account.
  - `liveLoyaltyPrograms` integer, required: Total number of live loyalty programs in the account.
  - `lastUpdatedAt` string, date-time, required: The point in time when the analytics numbers were updated last.

---

[API](https://skmtc.dev/talon/apis/management-api.md) - [All operations](https://skmtc.dev/talon/apis/management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talon/apis/management-api/revisions/7ef1b9504c3a?raw)
