These docs are for v0.1.0. Click to read the latest docs for v1.0.0.

Front.fetchInboxes(callback)

This call will send you all the inboxes accessible by the current user (private and shared).

The callback's inboxes parameter will contain an array of inboxes.

callback: function

A callback function.

Front.fetchInboxes(function (inboxes) {
    if (!inboxes) return;

    console.log(inboxes);
});

Sample JSON for an inbox:

{
  "avatar_type": "inbox",
  "class": "inbox",
  "alias": "support",
  "name": "CS",
  "color": "#E151E1",
  "num_new": 30,
  "num_unassigned": 30,
  "last_unassigned_date": 1423821859000,
  "participants": [
    "john"
  ],
  "tags": [
    "test",
    "important"
  ],
  "owner": null,
  "settings": {
    "auto_assign": true,
    "attachment_size_limit": 9437184
  }
}