curl --request GET \
--url https://api.hq.zone/v1/api/email/review \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hq.zone/v1/api/email/review"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hq.zone/v1/api/email/review', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hq.zone/v1/api/email/review",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hq.zone/v1/api/email/review"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hq.zone/v1/api/email/review")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hq.zone/v1/api/email/review")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"awaiting_review": [
{
"direction": "<string>",
"email_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_addr": "<string>",
"handling_state": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"to_addrs": [
"<string>"
],
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_localpart": "<string>",
"endpoint_plane": "<string>",
"llm_category": "<string>",
"llm_summary": "<string>",
"review_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>"
}
],
"counts": {
"awaiting_review": 123,
"quarantined": 123,
"review_reply": 123,
"unrouted": 123
},
"quarantined": [
{
"created_at": "2023-11-07T05:31:56Z",
"from_addr": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"sentio_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_addr": "<string>",
"llm_category": "<string>",
"llm_summary": "<string>"
}
],
"review_reply": [
{
"direction": "<string>",
"email_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_addr": "<string>",
"handling_state": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"to_addrs": [
"<string>"
],
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_localpart": "<string>",
"endpoint_plane": "<string>",
"llm_category": "<string>",
"llm_summary": "<string>",
"review_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>"
}
],
"unrouted": [
{
"direction": "<string>",
"email_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_addr": "<string>",
"handling_state": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"to_addrs": [
"<string>"
],
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_localpart": "<string>",
"endpoint_plane": "<string>",
"llm_category": "<string>",
"llm_summary": "<string>",
"review_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>"
}
]
}List emails awaiting review
Returns the three actionable email triage queues - awaiting-review, unrouted and quarantined - each capped at 200 items, plus a count of each. The awaiting-review queue is scoped to the caller (or all workspace mail for admins), while the unrouted and quarantined queues are admin-only and come back empty with zero counts for a non-admin caller.
curl --request GET \
--url https://api.hq.zone/v1/api/email/review \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hq.zone/v1/api/email/review"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hq.zone/v1/api/email/review', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hq.zone/v1/api/email/review",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hq.zone/v1/api/email/review"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hq.zone/v1/api/email/review")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hq.zone/v1/api/email/review")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"awaiting_review": [
{
"direction": "<string>",
"email_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_addr": "<string>",
"handling_state": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"to_addrs": [
"<string>"
],
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_localpart": "<string>",
"endpoint_plane": "<string>",
"llm_category": "<string>",
"llm_summary": "<string>",
"review_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>"
}
],
"counts": {
"awaiting_review": 123,
"quarantined": 123,
"review_reply": 123,
"unrouted": 123
},
"quarantined": [
{
"created_at": "2023-11-07T05:31:56Z",
"from_addr": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reason": "<string>",
"sentio_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_addr": "<string>",
"llm_category": "<string>",
"llm_summary": "<string>"
}
],
"review_reply": [
{
"direction": "<string>",
"email_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_addr": "<string>",
"handling_state": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"to_addrs": [
"<string>"
],
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_localpart": "<string>",
"endpoint_plane": "<string>",
"llm_category": "<string>",
"llm_summary": "<string>",
"review_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>"
}
],
"unrouted": [
{
"direction": "<string>",
"email_message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"from_addr": "<string>",
"handling_state": "<string>",
"occurred_at": "2023-11-07T05:31:56Z",
"to_addrs": [
"<string>"
],
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"endpoint_localpart": "<string>",
"endpoint_plane": "<string>",
"llm_category": "<string>",
"llm_summary": "<string>",
"review_owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>"
}
]
}Authorizations
Personal Access Token. Send as Authorization: Bearer hq_pat_....
Response
The three actionable triage queues + counts
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Admin-only; empty for a non-admin caller.
Show child attributes
Show child attributes
Replies to the team / default sender. A user sees items attributed to them; an admin sees all, incl. the Unassigned bucket (review_owner_id is null). Never re-injected into agent context.
Show child attributes
Show child attributes
Admin-only; empty for a non-admin caller.
Show child attributes
Show child attributes