Accounts API

The Accounts API allows you to get information about Bugsnag organizations.

This version of the Bugsnag API has been deprecated and will be removed in the future. Please see the version 2 documentation.

Accounts normally represent a company or individual, can contain many Projects and many Users can have access to the Account.

List your accounts

Get a list of all Accounts accessible by the authenticated User or Account.

GET /accounts

Parameters

Name Description
sort What to sort results by. Can be only created_at. Default: created_at
direction The direction of the sort. Can be either asc or desc. Default: desc
per_page How many results to return per page. Default: 30

Response

Status: 200 OK
Link: <https://api.bugsnag.com/accounts?offset=50baee27a43ccdf778000002>; rel="next"

Body:

[
  {
    "id": "515fb9337c1074f6fd000009",
    "name": "Example",
    "account_creator": {
      "id": "515fb9337c1074f6fd000007",
      "name": "James Smith",
      "account_admin": true,
      "email": "james@example.com",
      "gravatar_id": "b05c5ca80cf9fe757efdaa9e2afe4a7",
      "gravatar_url": "https://secure.gravatar.com/avatar/b05c5ca80cf9fe757efdaa9e2afe4a7",
      "html_url": "https://app.bugsnag.com/accounts/example/users/james-smith/edit",
      "url": "https://api.bugsnag.com/users/515fb9337c1074f6fd000007"
    },
    "billing_contact": {
      "id": "515fb9337c1074f6fd000007",
      "name": "James Smith",
      "account_admin": true,
      "email": "james@example.com",
      "gravatar_id": "b05c5ca80cf9fe757efdaa9e2afe4a7",
      "gravatar_url": "https://secure.gravatar.com/avatar/b05c5ca80cf9fe757efdaa9e2afe4a7",
      "html_url": "https://app.bugsnag.com/accounts/example/users/james-smith/edit",
      "url": "https://api.bugsnag.com/users/515fb9337c1074f6fd000007"
    },
    "url": "https://api.bugsnag.com/accounts/515fb9337c1074f6fd000009",
    "users_url": "https://api.bugsnag.com/accounts/515fb9337c1074f6fd000009/users",
    "projects_url": "https://api.bugsnag.com/accounts/515fb9337c1074f6fd000009/users",
    "created_at": "2013-04-06T05:57:07Z",
    "updated_at": "2013-07-29T17:46:11Z"
  }
]

Get the authenticated account

Note: Only available when authenticated with account credentials.

Get the details of the currently authenticated Bugsnag Account.

GET /account

Response

Status: 200 OK
{
  "id": "515fb9337c1074f6fd000009",
  "name": "Example",
  "account_creator": {
    "id": "515fb9337c1074f6fd000007",
    "name": "James Smith",
    "account_admin": true,
    "email": "james@example.com",
    "gravatar_id": "b05c5ca80cf9fe757efdaa9e2afe4a7",
    "gravatar_url": "https://secure.gravatar.com/avatar/b05c5ca80cf9fe757efdaa9e2afe4a7",
    "html_url": "https://app.bugsnag.com/accounts/example/users/james-smith/edit",
    "url": "https://api.bugsnag.com/users/515fb9337c1074f6fd000007"
  },
  "billing_contact": {
    "id": "515fb9337c1074f6fd000007",
    "name": "James Smith",
    "account_admin": true,
    "email": "james@example.com",
    "gravatar_id": "b05c5ca80cf9fe757efdaa9e2afe4a7",
    "gravatar_url": "https://secure.gravatar.com/avatar/b05c5ca80cf9fe757efdaa9e2afe4a7",
    "html_url": "https://app.bugsnag.com/accounts/example/users/james-smith/edit",
    "url": "https://api.bugsnag.com/users/515fb9337c1074f6fd000007"
  },
  "url": "https://api.bugsnag.com/accounts/515fb9337c1074f6fd000009",
  "users_url": "https://api.bugsnag.com/accounts/515fb9337c1074f6fd000009/users",
  "projects_url": "https://api.bugsnag.com/accounts/515fb9337c1074f6fd000009/users",
  "created_at": "2013-04-06T05:57:07Z",
  "updated_at": "2013-07-29T17:46:11Z"
}

Get account details

Get the details of the specified Bugsnag Account.

GET /account/:account_id

Response

Status: 200 OK

Body:

{
  "id": "515fb9337c1074f6fd000009",
  "name": "Example",
  "account_creator": {
    "id": "515fb9337c1074f6fd000007",
    "name": "James Smith",
    "account_admin": true,
    "email": "james@example.com",
    "gravatar_id": "b05c5ca80cf9fe757efdaa9e2afe4a7",
    "gravatar_url": "https://secure.gravatar.com/avatar/b05c5ca80cf9fe757efdaa9e2afe4a7",
    "html_url": "https://app.bugsnag.com/accounts/example/users/james-smith/edit",
    "url": "https://api.bugsnag.com/users/515fb9337c1074f6fd000007"
  },
  "billing_contact": {
    "id": "515fb9337c1074f6fd000007",
    "name": "James Smith",
    "account_admin": true,
    "email": "james@example.com",
    "gravatar_id": "b05c5ca80cf9fe757efdaa9e2afe4a7",
    "gravatar_url": "https://secure.gravatar.com/avatar/b05c5ca80cf9fe757efdaa9e2afe4a7",
    "html_url": "https://app.bugsnag.com/accounts/example/users/james-smith/edit",
    "url": "https://api.bugsnag.com/users/515fb9337c1074f6fd000007"
  },
  "url": "https://api.bugsnag.com/accounts/515fb9337c1074f6fd000009",
  "users_url": "https://api.bugsnag.com/accounts/515fb9337c1074f6fd000009/users",
  "projects_url": "https://api.bugsnag.com/accounts/515fb9337c1074f6fd000009/users",
  "created_at": "2013-04-06T05:57:07Z",
  "updated_at": "2013-07-29T17:46:11Z"
}