Message Status
curl --request GET \
--url https://app.tuco.ai/api/messages/{messageId}/journey \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.tuco.ai/api/messages/{messageId}/journey"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tuco.ai/api/messages/{messageId}/journey', 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://app.tuco.ai/api/messages/{messageId}/journey",
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://app.tuco.ai/api/messages/{messageId}/journey"
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://app.tuco.ai/api/messages/{messageId}/journey")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/messages/{messageId}/journey")
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_bodyMessages
Message Status
A step-by-step timeline of what happened to one message — every retry, fallback and failure, in plain language.
GET
/
api
/
messages
/
{messageId}
/
journey
Message Status
curl --request GET \
--url https://app.tuco.ai/api/messages/{messageId}/journey \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.tuco.ai/api/messages/{messageId}/journey"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.tuco.ai/api/messages/{messageId}/journey', 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://app.tuco.ai/api/messages/{messageId}/journey",
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://app.tuco.ai/api/messages/{messageId}/journey"
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://app.tuco.ai/api/messages/{messageId}/journey")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.tuco.ai/api/messages/{messageId}/journey")
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_bodyAnswers the question your customer actually asks: “why didn’t it arrive?” Make
this your tier-1 support screen.
Endpoint
- Method:
GET - Path:
/api/messages/{messageId}/journey - Auth:
Authorization: Bearer tuco_xxxxxxxxxxxxx(workspace key)
curl https://app.tuco.ai/api/messages/6ac55dceca1db6f898e065cc/journey \
-H "Authorization: Bearer tuco_xxxxxxxxxxxxx"
Response
Not a status string — a timeline. Each step records when it happened, how serious it is, which system reported it, and copy you can show a human as-is.{
"steps": [
{
"at": 1791315902559,
"tier": "info",
"system": "app",
"key": "queued",
"label": "Send requested",
"copy": "Message queued to send."
},
{
"at": 1791315903880,
"tier": "ok",
"system": "imessage",
"key": "sent",
"label": "Sent as iMessage",
"copy": "Delivered to your contact's iMessage."
}
],
"meta": { "source": "loki", "env": "prod", "count": 2 }
}
| Field | Meaning |
|---|---|
at | Epoch milliseconds |
tier | ok, info, warn or crit — colour it, sort by it. Note ok, not success, and crit, not error |
system | Which part reported it: app, device, imessage, ghl, hubspot |
key | Stable machine key — branch on this, not on copy |
label / copy | Short title and a sentence written for an end user |
meta describes where the timeline was assembled from (source, env) and how
many steps it holds.
Render copy directly. Branch on key. The timeline includes retries, the
fallback ladder (iMessage → SMS → email) and the reason for any failure, so a
message that fell back shows both legs rather than just the final state.
Error responses
| Status | When |
|---|---|
401 | Missing or invalid key |
403 | The message belongs to another workspace, or an agency key was used |
404 | No such message |