curl --request GET \
--url https://api.example.com/api/v1/queue/{item_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/queue/{item_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/queue/{item_id}', 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.example.com/api/v1/queue/{item_id}",
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.example.com/api/v1/queue/{item_id}"
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.example.com/api/v1/queue/{item_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/queue/{item_id}")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prospect_identifier": "<string>",
"prospect_identifier_type": "email",
"channel": "email",
"status": "pending",
"created_at": "<string>",
"expires_at": "<string>",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaign_name": "<string>",
"campaign_lead_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"classification_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"triggering_engagement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolution_action": "<string>",
"resolution_action_params": {},
"resolution_note": "<string>",
"resolved_by": "<string>",
"resolved_at": "<string>",
"notes": [
{}
],
"reply_classification": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Get Queue Item
Return a single queue item plus the linked classification row.
Cross-tenant probes return 404 (not 403): an attacker must not be able to distinguish “this id does not exist” from “this id belongs to someone else” by status code alone.
Two sequential reads instead of a PostgREST embed because the
shared AsyncTable.execute does not emit the select query
parameter to the wire, so select=*,reply_classifications(*)
would be silently dropped and the join would never round-trip. The
second read is skipped entirely when classification_id is null,
which is the common case for v1 non-classifier writers.
The classification read is filtered by BOTH id and user_id
even though the queue row already passed tenant scoping. Defense in
depth: if a bad FK or race ever wrote a cross-user classification_id
into a queue row, service-role bypasses RLS and would otherwise leak
the classification to the wrong tenant. Missing match returns
classification=null (same as a missing FK).
curl --request GET \
--url https://api.example.com/api/v1/queue/{item_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/queue/{item_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/queue/{item_id}', 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.example.com/api/v1/queue/{item_id}",
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.example.com/api/v1/queue/{item_id}"
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.example.com/api/v1/queue/{item_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/queue/{item_id}")
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{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"prospect_identifier": "<string>",
"prospect_identifier_type": "email",
"channel": "email",
"status": "pending",
"created_at": "<string>",
"expires_at": "<string>",
"campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"campaign_name": "<string>",
"campaign_lead_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"classification_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"triggering_engagement_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolution_action": "<string>",
"resolution_action_params": {},
"resolution_note": "<string>",
"resolved_by": "<string>",
"resolved_at": "<string>",
"notes": [
{}
],
"reply_classification": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Successful Response
Detail-view projection: includes the joined classification row.
email, linkedin_provider_id, prospect_uuid email, linkedin pending, resolved, auto_resolved, expired