Accounts

In Honeybadger, all resources are tied to an account. A user may belong to one or more accounts (for instance, you can have a work account and a personal account). The Accounts API allows you to programmatically fetch details about your accounts.

Get all accounts

bash
curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/accounts/

Returns a list of all accounts the authenticated user belongs to.

json
{ "results": [ { "id": "Me3upk", "email": "homerjsimpson@gmail.com", "name": "homer", "active": true, "parked": false }, { "id": "9bYfrm", "email": "homer.j@simpsons.io", "name": "Work", "active": true, "parked": false } ], "links": { "self": "http://localhost:3000/v2/accounts" } }

Get info for one account

bash
curl -u AUTH_TOKEN: https://app.honeybadger.io/v2/accounts/ID

Returns info about an account, including the quota consumption for the current month. Each of the three sets of quota info is returned as an array of arrays, with one date & count pair for each day of the month, starting at midnight UTC on the first of the month. The different types of stats are as follows:

  • Stored: The number of error notifications saved and available for display in the UI
  • Limited: The number of notifications that were discarded due to throttling (429 responses)
  • Ignored: Notifications discarded as a result of errors being flagged as ignored in the UI

The quota_consumed value is a percentage, so 0.75 would mean 75% of the month’s quota has been consumed. The quota resets at the first of the month.

json
{ "id": "Me3upk", "email": "homerjsimpson@gmail.com", "name": "homer", "active": true, "parked": false, "quota_consumed": 0.75, "api_stats": { "stored": [ [ 1648767600, 116 ], [ 1648771200, 65 ], ... ], "limited": [], "ignored": [] } }