List failed conversation deliveries
curl --request GET \
--url https://api.example.com/api/conversations/messages/failed \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/api/conversations/messages/failed"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.example.com/api/conversations/messages/failed', 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/conversations/messages/failed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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/conversations/messages/failed"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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/conversations/messages/failed")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/conversations/messages/failed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"client_address": "<string>",
"created_at": 123,
"door": "api",
"inbound_text": "<string>",
"message_id": "<string>",
"origin": "client",
"route_name": "<string>",
"thread_id": "<string>",
"updated_at": 123,
"answer": "<string>",
"answer_parts": [
{
"data": {
"options": {},
"values": {}
},
"footer": "<string>",
"form_tag": "<string>",
"header": {
"kind": "image",
"url": "<string>",
"caption": "<string>",
"filename": "<string>"
},
"location": {
"latitude": 123,
"longitude": 123,
"address": "<string>",
"name": "<string>"
},
"media": [
{
"kind": "image",
"url": "<string>",
"caption": "<string>",
"filename": "<string>"
}
],
"message": "",
"options": [
{
"text": "<string>",
"description": "<string>",
"id": "<string>",
"kind": "reply"
}
],
"pages": [
{
"fields": [
"<string>"
],
"title": "<string>",
"button_label": "<string>",
"display": [],
"kind": "input"
}
],
"schema": {},
"sections": [
{
"rows": [
{
"text": "<string>",
"description": "<string>",
"id": "<string>",
"kind": "reply"
}
],
"title": "<string>"
}
],
"template": {
"language": "<string>",
"name": "<string>",
"parameters": {}
},
"wording": {
"answer": {
"confirm": "<string>",
"decline": "<string>",
"open": "<string>",
"rejected": "<string>",
"rejected_final": "<string>",
"reply_hint": "<string>",
"submit": "<string>"
},
"answer_page": {
"awaiting": {
"heading": "<string>",
"text": "<string>"
},
"confirm": {
"heading": "<string>",
"text": "<string>"
},
"done": {
"heading": "<string>",
"text": "<string>"
},
"form": {
"choose_one": "<string>",
"date_unavailable": "<string>",
"failed": "<string>",
"network_error": "<string>"
},
"submitted": {
"heading": "<string>",
"text": "<string>"
}
},
"choice": {
"group_label": "<string>",
"label": "<string>",
"reply_hint": "<string>"
},
"form": {
"back": "<string>",
"cancel": "<string>",
"error_line": "<string>",
"fields": {},
"open": "<string>",
"review_empty": "<string>",
"step_progress": "<string>",
"submit": "<string>",
"title": "<string>",
"update_failed": "<string>"
},
"lines": {
"answer_link": "<string>",
"deadline": "<string>",
"options": "<string>",
"reply": "<string>"
},
"status": {
"answered": "<string>",
"closed": "<string>",
"countdown": {
"one_second_left": "<string>",
"seconds_left": "<string>",
"under_half_minute": "<string>",
"under_minute": "<string>",
"under_ten_seconds": "<string>"
},
"expired": "<string>",
"sending": "<string>",
"sent": "<string>",
"unavailable": "<string>"
}
}
}
],
"answer_status": "answered",
"ask": {
"sensitive": true,
"answer_format": "<string>",
"attempts": 1,
"interaction_id": "<string>",
"timed_out_attempts": [
123
]
},
"ask_reply": {
"answer": null,
"answered_at": "2023-11-07T05:31:56Z",
"medium_message_id": "<string>",
"reply_to": {
"message_id": "<string>",
"status": "found",
"text": "<string>"
}
},
"attempts": 123,
"callback_url": "<string>",
"caller_principal": "<string>",
"channel": "<string>",
"delivery_status": "pending_delivery",
"error": "<string>",
"inbound_attachments": [
{
"kind": "image",
"url": "<string>",
"caption": "<string>",
"filename": "<string>"
}
],
"inbound_event": {},
"inbound_form": {},
"inbound_form_tag": "<string>",
"inbound_kind": "message",
"inbound_locale": "<string>",
"inbound_location": {
"latitude": 123,
"longitude": 123,
"address": "<string>",
"name": "<string>"
},
"inbound_message_id": "<string>",
"inbound_reply_to": {
"message_id": "<string>",
"status": "found",
"text": "<string>"
},
"operator_send": false,
"our_identity": "<string>",
"pending_receipt": "accepted",
"provider_message_id": "<string>",
"route_missing": false,
"sends": [
{
"chars": 1,
"part": 1,
"provider_message_ids": [
"<string>"
]
}
],
"sent_by": "notify",
"submitted_by": "<string>",
"successor_id": "<string>",
"turn_message_id": "<string>"
}
],
"total": 123,
"unreadable": 0
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}conversations
List failed conversation deliveries
List every answer record whose delivery ended failed.
The listing spans every route and caller, so it is admin-only. Returns
{"items", "total", "unreadable"}, where unreadable counts the indexed failed members whose
row was gone or unparseable.
GET
/
api
/
conversations
/
messages
/
failed
List failed conversation deliveries
curl --request GET \
--url https://api.example.com/api/conversations/messages/failed \
--header 'x-api-key: <api-key>'import requests
url = "https://api.example.com/api/conversations/messages/failed"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.example.com/api/conversations/messages/failed', 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/conversations/messages/failed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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/conversations/messages/failed"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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/conversations/messages/failed")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/conversations/messages/failed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"client_address": "<string>",
"created_at": 123,
"door": "api",
"inbound_text": "<string>",
"message_id": "<string>",
"origin": "client",
"route_name": "<string>",
"thread_id": "<string>",
"updated_at": 123,
"answer": "<string>",
"answer_parts": [
{
"data": {
"options": {},
"values": {}
},
"footer": "<string>",
"form_tag": "<string>",
"header": {
"kind": "image",
"url": "<string>",
"caption": "<string>",
"filename": "<string>"
},
"location": {
"latitude": 123,
"longitude": 123,
"address": "<string>",
"name": "<string>"
},
"media": [
{
"kind": "image",
"url": "<string>",
"caption": "<string>",
"filename": "<string>"
}
],
"message": "",
"options": [
{
"text": "<string>",
"description": "<string>",
"id": "<string>",
"kind": "reply"
}
],
"pages": [
{
"fields": [
"<string>"
],
"title": "<string>",
"button_label": "<string>",
"display": [],
"kind": "input"
}
],
"schema": {},
"sections": [
{
"rows": [
{
"text": "<string>",
"description": "<string>",
"id": "<string>",
"kind": "reply"
}
],
"title": "<string>"
}
],
"template": {
"language": "<string>",
"name": "<string>",
"parameters": {}
},
"wording": {
"answer": {
"confirm": "<string>",
"decline": "<string>",
"open": "<string>",
"rejected": "<string>",
"rejected_final": "<string>",
"reply_hint": "<string>",
"submit": "<string>"
},
"answer_page": {
"awaiting": {
"heading": "<string>",
"text": "<string>"
},
"confirm": {
"heading": "<string>",
"text": "<string>"
},
"done": {
"heading": "<string>",
"text": "<string>"
},
"form": {
"choose_one": "<string>",
"date_unavailable": "<string>",
"failed": "<string>",
"network_error": "<string>"
},
"submitted": {
"heading": "<string>",
"text": "<string>"
}
},
"choice": {
"group_label": "<string>",
"label": "<string>",
"reply_hint": "<string>"
},
"form": {
"back": "<string>",
"cancel": "<string>",
"error_line": "<string>",
"fields": {},
"open": "<string>",
"review_empty": "<string>",
"step_progress": "<string>",
"submit": "<string>",
"title": "<string>",
"update_failed": "<string>"
},
"lines": {
"answer_link": "<string>",
"deadline": "<string>",
"options": "<string>",
"reply": "<string>"
},
"status": {
"answered": "<string>",
"closed": "<string>",
"countdown": {
"one_second_left": "<string>",
"seconds_left": "<string>",
"under_half_minute": "<string>",
"under_minute": "<string>",
"under_ten_seconds": "<string>"
},
"expired": "<string>",
"sending": "<string>",
"sent": "<string>",
"unavailable": "<string>"
}
}
}
],
"answer_status": "answered",
"ask": {
"sensitive": true,
"answer_format": "<string>",
"attempts": 1,
"interaction_id": "<string>",
"timed_out_attempts": [
123
]
},
"ask_reply": {
"answer": null,
"answered_at": "2023-11-07T05:31:56Z",
"medium_message_id": "<string>",
"reply_to": {
"message_id": "<string>",
"status": "found",
"text": "<string>"
}
},
"attempts": 123,
"callback_url": "<string>",
"caller_principal": "<string>",
"channel": "<string>",
"delivery_status": "pending_delivery",
"error": "<string>",
"inbound_attachments": [
{
"kind": "image",
"url": "<string>",
"caption": "<string>",
"filename": "<string>"
}
],
"inbound_event": {},
"inbound_form": {},
"inbound_form_tag": "<string>",
"inbound_kind": "message",
"inbound_locale": "<string>",
"inbound_location": {
"latitude": 123,
"longitude": 123,
"address": "<string>",
"name": "<string>"
},
"inbound_message_id": "<string>",
"inbound_reply_to": {
"message_id": "<string>",
"status": "found",
"text": "<string>"
},
"operator_send": false,
"our_identity": "<string>",
"pending_receipt": "accepted",
"provider_message_id": "<string>",
"route_missing": false,
"sends": [
{
"chars": 1,
"part": 1,
"provider_message_ids": [
"<string>"
]
}
],
"sent_by": "notify",
"submitted_by": "<string>",
"successor_id": "<string>",
"turn_message_id": "<string>"
}
],
"total": 123,
"unreadable": 0
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}
