Communications
Read an SMS conversation
Returns a newest-first page of message records, ordered chronologically inside that page (default 50, maximum 100), plus current line/donor reply eligibility. Reading can refresh saved messaging_status but does not mark the conversation read. Conversations and available lines respect line visibility: restricted lines require assignment to the viewer or sms_inbox_manage/group_all. Requires permission: one of sms_inbox_view, sms_inbox_reply, sms_inbox_manage; plus one of beta_features.
GET
/
admin
/
sms_inbox
/
conversations
/
{conversation_id}
Read an SMS conversation
curl --request GET \
--url https://api.gratona.com/v1/admin/sms_inbox/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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.gratona.com/v1/admin/sms_inbox/conversations/{conversation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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{
"conversation": {
"id": 42,
"donor_id": 42,
"donor_name": "Jane Donor",
"participant_phone_e164": "+15551234567",
"routing_status": "matched",
"inbox_status": "open",
"messaging_status": "active",
"assigned_user_id": 42,
"assigned_user_name": "Example",
"sms_line": {
"id": 42,
"phone_number": "+15551234567",
"provider_line_id": "Example",
"label": "Example",
"source": "client_managed_imported",
"status": "active",
"is_default": true,
"line_role": "general",
"assigned_user_id": 42,
"visibility": "shared",
"metadata": {},
"assigned_user_name": "Example"
},
"last_message_at": "2026-10-20T12:00:00Z",
"last_inbound_at": "2026-10-20T12:00:00Z",
"last_outbound_at": "2026-10-20T12:00:00Z",
"last_read_at": "2026-10-20T12:00:00Z",
"unread_count": 0,
"needs_reply": true,
"last_message_preview": "Example",
"last_message_direction": "inbound",
"has_attachments": true,
"messages": [
{
"id": 42,
"direction": "outbound",
"message_kind": "manual",
"user_id": 42,
"sender": {
"id": 42,
"name": "Jane Admin",
"initials": "JA"
},
"content": "Thank you for your support.",
"trigger": "Example",
"provider_status": "QUEUED",
"provider_message_handle": "Example",
"error_code": "Example",
"error_message": "Example",
"to_number": "+15551234567",
"from_number": "+15557654321",
"received_at": "2026-10-20T12:00:00Z",
"created_at": "2026-10-20T12:00:00Z",
"attachments": [
{
"id": 42,
"upload_id": 42,
"original_filename": "school-update.pdf",
"mime_type": "application/pdf",
"file_size_bytes": 10240,
"ingest_status": "ready",
"download_url": "<string>",
"preview_url": "<string>"
}
]
}
]
},
"donor": {
"id": 42,
"name": "Example",
"phone_e164": "+15551234567",
"can_receive_sms": true
},
"messages": [
{
"id": 42,
"direction": "outbound",
"message_kind": "manual",
"user_id": 42,
"sender": {
"id": 42,
"name": "Jane Admin",
"initials": "JA"
},
"content": "Thank you for your support.",
"trigger": "Example",
"provider_status": "QUEUED",
"provider_message_handle": "Example",
"error_code": "Example",
"error_message": "Example",
"to_number": "+15551234567",
"from_number": "+15557654321",
"received_at": "2026-10-20T12:00:00Z",
"created_at": "2026-10-20T12:00:00Z",
"attachments": [
{
"id": 42,
"upload_id": 42,
"original_filename": "school-update.pdf",
"mime_type": "application/pdf",
"file_size_bytes": 10240,
"ingest_status": "ready",
"download_url": "<string>",
"preview_url": "<string>"
}
]
}
],
"pagination": {
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 1
},
"reply_eligibility": {
"can_reply": true,
"blocked": true,
"opted_out": true,
"line_active": true
},
"channel": {
"key": "texts",
"label": "Texts"
}
}{
"message": "Unauthorized",
"status": "error"
}{
"message": "Not Found",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}Authorizations
bearerAuthapiKeyAuth
Passport bearer token authentication for legacy admin sessions.
Path Parameters
Conversation id in the current organization.
Query Parameters
Page. Validation: nullable, integer, min:1.
Required range:
x >= 1Per page. Validation: nullable, integer, min:1, max:100.
Required range:
1 <= x <= 100⌘I
Read an SMS conversation
curl --request GET \
--url https://api.gratona.com/v1/admin/sms_inbox/conversations/{conversation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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.gratona.com/v1/admin/sms_inbox/conversations/{conversation_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gratona.com/v1/admin/sms_inbox/conversations/{conversation_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{
"conversation": {
"id": 42,
"donor_id": 42,
"donor_name": "Jane Donor",
"participant_phone_e164": "+15551234567",
"routing_status": "matched",
"inbox_status": "open",
"messaging_status": "active",
"assigned_user_id": 42,
"assigned_user_name": "Example",
"sms_line": {
"id": 42,
"phone_number": "+15551234567",
"provider_line_id": "Example",
"label": "Example",
"source": "client_managed_imported",
"status": "active",
"is_default": true,
"line_role": "general",
"assigned_user_id": 42,
"visibility": "shared",
"metadata": {},
"assigned_user_name": "Example"
},
"last_message_at": "2026-10-20T12:00:00Z",
"last_inbound_at": "2026-10-20T12:00:00Z",
"last_outbound_at": "2026-10-20T12:00:00Z",
"last_read_at": "2026-10-20T12:00:00Z",
"unread_count": 0,
"needs_reply": true,
"last_message_preview": "Example",
"last_message_direction": "inbound",
"has_attachments": true,
"messages": [
{
"id": 42,
"direction": "outbound",
"message_kind": "manual",
"user_id": 42,
"sender": {
"id": 42,
"name": "Jane Admin",
"initials": "JA"
},
"content": "Thank you for your support.",
"trigger": "Example",
"provider_status": "QUEUED",
"provider_message_handle": "Example",
"error_code": "Example",
"error_message": "Example",
"to_number": "+15551234567",
"from_number": "+15557654321",
"received_at": "2026-10-20T12:00:00Z",
"created_at": "2026-10-20T12:00:00Z",
"attachments": [
{
"id": 42,
"upload_id": 42,
"original_filename": "school-update.pdf",
"mime_type": "application/pdf",
"file_size_bytes": 10240,
"ingest_status": "ready",
"download_url": "<string>",
"preview_url": "<string>"
}
]
}
]
},
"donor": {
"id": 42,
"name": "Example",
"phone_e164": "+15551234567",
"can_receive_sms": true
},
"messages": [
{
"id": 42,
"direction": "outbound",
"message_kind": "manual",
"user_id": 42,
"sender": {
"id": 42,
"name": "Jane Admin",
"initials": "JA"
},
"content": "Thank you for your support.",
"trigger": "Example",
"provider_status": "QUEUED",
"provider_message_handle": "Example",
"error_code": "Example",
"error_message": "Example",
"to_number": "+15551234567",
"from_number": "+15557654321",
"received_at": "2026-10-20T12:00:00Z",
"created_at": "2026-10-20T12:00:00Z",
"attachments": [
{
"id": 42,
"upload_id": 42,
"original_filename": "school-update.pdf",
"mime_type": "application/pdf",
"file_size_bytes": 10240,
"ingest_status": "ready",
"download_url": "<string>",
"preview_url": "<string>"
}
]
}
],
"pagination": {
"current_page": 1,
"last_page": 1,
"per_page": 50,
"total": 1
},
"reply_eligibility": {
"can_reply": true,
"blocked": true,
"opted_out": true,
"line_active": true
},
"channel": {
"key": "texts",
"label": "Texts"
}
}{
"message": "Unauthorized",
"status": "error"
}{
"message": "Not Found",
"status": "error"
}{
"errors": {},
"status": "error",
"message": "The given data was invalid."
}