Skip to main content
GET
/
v1
/
agents
List agents
curl --request GET \
  --url https://api.hq.zone/v1/agents \
  --header 'Authorization: Bearer <token>'
{
  "messages": [
    {
      "body_markdown": "<string>",
      "delivered_at": "2023-11-07T05:31:56Z",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "source_kind": "<string>",
      "title": "<string>",
      "ui_strings": "<unknown>",
      "read_at": "2023-11-07T05:31:56Z",
      "schedule_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "schedule_name": "<string>"
    }
  ],
  "page": 123,
  "page_size": 123,
  "total": 123,
  "unread_count": 123
}

Authorizations

Authorization
string
header
required

Personal Access Token. Send as Authorization: Bearer hq_pat_....

Response

200 - application/json

This workspace's agents

messages
object[]
required
page
integer<int64>
required
page_size
integer<int64>
required
total
integer<int64>
required

Total rows matching the unread + search filter, before paging.

unread_count
integer<int64>
required

Unread across the whole inbox (drives the nav badge) - independent of the current page / search / sort.