agentlyleads docs
Inbox API

Summary and assignees

Both endpoints require the read:emails scope.

GET /api/v1/inbox/summary

The counts the inbox rail shows, and how long customers have been waiting.

GET /api/v1/inbox/summary?asUserId=cmq1user0alk34567891 HTTP/1.1
Host: agentlyleads.com
Authorization: Bearer alk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
{
  "summary": {
    "unassigned": 4,
    "mine": 2,
    "open": 11,
    "closed": 37,
    "spam": 3,
    "trash": 1,
    "waiting": 6,
    "overdue": 1,
    "oldestWaitingMins": 1570,
    "slaMins": 240
  }
}
FieldDescription
unassignedOpen conversations with no owner
mineOpen conversations owned by asUserId. Null when asUserId is not given
open / closedConversations by state, not counting spam, trash or bulk
spam / trashConversations in those folders
waitingOpen conversations whose last message is from the customer
overdueOf those, past the workspace's first-response target
oldestWaitingMinsThe longest current wait
slaMinsThe first-response target in minutes, or null when none is set

Counts cover the same window as the list: the conversations behind the most recent 1,000 messages.

GET /api/v1/inbox/assignees

Everyone a conversation can be assigned to: the active users in this workspace.

{
  "assignees": [
    { "id": "cmq1user0alk34567890", "name": "Olive Park", "away": false },
    { "id": "cmq1user0alk34567891", "name": "Rita Cole", "away": true }
  ]
}

away is shown, not filtered. Round-robin assignment skips people who are away; you can still assign to them by ID.

On this page