---
title: "Analytics"
description: "The measures behind every board and chart, as one read."
canonical_url: "https://twominutebilling.com/help/developers/api-reference/analytics"
---
# Analytics

> The measures behind every board and chart, as one read.

The measures behind every board and chart, as one read. `GET /v1/analytics/measures` describes the whole space so nothing has to be hard-coded; `GET /v1/analytics` answers one measure over one window, optionally split by one dimension; `POST /v1/analytics/query` answers a board's worth in one round trip.

Every payload is self-describing, because a number without its unit is a bug waiting to happen: it states its unit and currency (money is integer MINOR units, never converted here), whether it is a value AT an instant or a sum OVER a window, when it was computed, and — where the history is only partly known — exactly which periods are missing. A cut that cannot be made answers 422 with a sentence naming what can.

## Endpoints

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      Endpoint
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/analytics/one-measure">
        <code>
          /v1/analytics
        </code>
      </a>
    </td>
    
    <td>
      One measure, over one window, optionally split by one dimension
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/analytics/every-measure-that-can-be-asked-for">
        <code>
          /v1/analytics/measures
        </code>
      </a>
    </td>
    
    <td>
      Every measure that can be asked for, and how it may be cut
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        POST
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/analytics/several-measures-in-one-round-trip">
        <code>
          /v1/analytics/query
        </code>
      </a>
    </td>
    
    <td>
      Several measures in one round trip
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/analytics/when-the-figures-were-last-refreshed">
        <code>
          /v1/analytics/sync
        </code>
      </a>
    </td>
    
    <td>
      When the figures were last refreshed
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/analytics/mrr-bridge">
        <code>
          /v1/businesses/{biz}/mrr_bridge
        </code>
      </a>
    </td>
    
    <td>
      MRR bridge
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://twominutebilling.com/help/developers/api-reference/analytics/usage-margin">
        <code>
          /v1/businesses/{biz}/reports/usage_margin
        </code>
      </a>
    </td>
    
    <td>
      Usage margin
    </td>
  </tr>
</tbody>
</table>


## Sitemap

See the full [sitemap](https://twominutebilling.com/sitemap.md) for all pages.
