Skip to content

Consumer API v4.3.0

Compare
Choose a tag to compare
@tnotheis tnotheis released this 22 Jan 11:01
· 605 commits to main since this release
dbcbbb2

What's Changed

New Features

  • Listing quotas for identity by @NikolaVetnic in #359
    There is now a new route (GET /api/v1/Quotas), which can be used to get a list of all quotas for the current identity. This list is grouped by metric and also contains the current usage. Here is an example for the response:
{
  "result": [
    {
      "metricKey": "NumberOfSentMessages",
      "quotas": [
        {
          "source": "Individual",
          "max": 10,
          "usage": 3,
          "period": "Month"
        }
        {
          "source": "Tier",
          "max": 5,
          "usage": 3,
          "period": "Month"
        }
      ]
    },
    {
      "metricKey": "NumberOfTokens",
      "quotas": [
        {
          "source": "Tier",
          "max": 20,
          "usage": 8,
          "period": "Year"
        }
      ]
    }
  ]
}