curl --request POST \
--url https://api.example.com/api/v1/queue/{item_id}/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resolution_action_params": {},
"resolution_note": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/queue/{item_id}/resolve"
payload = {
"resolution_action_params": {},
"resolution_note": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({resolution_action_params: {}, resolution_note: '<string>'})
};
fetch('https://api.example.com/api/v1/queue/{item_id}/resolve', 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}/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'resolution_action_params' => [
],
'resolution_note' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/queue/{item_id}/resolve"
payload := strings.NewReader("{\n \"resolution_action_params\": {},\n \"resolution_note\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v1/queue/{item_id}/resolve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"resolution_action_params\": {},\n \"resolution_note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/queue/{item_id}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"resolution_action_params\": {},\n \"resolution_note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"queue_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved": true,
"current_status": "<string>",
"resolution_action": "<string>",
"suppressed": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Resolve Queue Item Endpoint
Resolve a pending review queue item.
Atomic 3-step inside cas_resolve_queue_item (migration 151):
- CAS queue row pending -> resolved.
- Conditional campaign_leads transition keyed on resolution_action.
- Emit one engagement_log state_transition row.
For stop_and_suppress only: a second RPC call writes the
suppression row via cas_create_suppression. The queue resolve
itself does not roll back when the suppression write fails (the
queue state is already correct; operator can retry via the
suppression CRUD endpoint).
Returns:
200 + QueueResolveResponse on success.
404 when the queue item is absent (or cross-tenant).
409 when the queue item was already in a terminal state
(resolved, auto_resolved, expired) or when the idempotency
key already reserved a duplicate-in-flight resolve.
422 when resolution_action_params is malformed (caught at
the pydantic layer for the pause_* branches).
curl --request POST \
--url https://api.example.com/api/v1/queue/{item_id}/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resolution_action_params": {},
"resolution_note": "<string>"
}
'import requests
url = "https://api.example.com/api/v1/queue/{item_id}/resolve"
payload = {
"resolution_action_params": {},
"resolution_note": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({resolution_action_params: {}, resolution_note: '<string>'})
};
fetch('https://api.example.com/api/v1/queue/{item_id}/resolve', 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}/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'resolution_action_params' => [
],
'resolution_note' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/queue/{item_id}/resolve"
payload := strings.NewReader("{\n \"resolution_action_params\": {},\n \"resolution_note\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/api/v1/queue/{item_id}/resolve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"resolution_action_params\": {},\n \"resolution_note\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/queue/{item_id}/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"resolution_action_params\": {},\n \"resolution_note\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"queue_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"resolved": true,
"current_status": "<string>",
"resolution_action": "<string>",
"suppressed": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Path Parameters
Body
Body for POST /api/v1/queue/{item_id}/resolve.
One of the seven actions from review_queue_items.resolution_action CHECK (migration 149).
continue, stop, stop_and_suppress, reply_manually, pause_n_days, pause_until_date, switch_channel Per-action params. pause_n_days requires {'days': }; pause_until_date requires {'until': }; other actions ignore.
Optional operator note (audit trail).
2000Response
Successful Response
Body for POST /api/v1/queue/{item_id}/resolve happy path.