List messages in a conversation
GET
/
conversations
/
{id}
/
messages
List messages in a conversation
curl --request GET \
--url https://api.getfernand.com/conversations/{id}/messages \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getfernand.com/conversations/{id}/messages"
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.getfernand.com/conversations/{id}/messages', 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.getfernand.com/conversations/{id}/messages",
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;
}require 'uri'
require 'net/http'
url = URI("https://api.getfernand.com/conversations/{id}/messages")
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_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getfernand.com/conversations/{id}/messages"
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))
}using RestSharp;
var options = new RestClientOptions("https://api.getfernand.com/conversations/{id}/messages");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-API-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://api.getfernand.com/conversations/{id}/messages")
.header("X-API-Key", "<api-key>")
.asString();{
"has_more": false,
"data": [
{
"id": "m-123456",
"conversation_id": 12345,
"type": "MESSAGE",
"timestamp": "2026-01-21T14:30:00Z",
"way": "IN",
"status": "SENT",
"source": "EMAIL",
"download_url": "https://api.getfernand.com/conversations/a1b2c3d4-e5f6-7890-abcd-ef1234567890/original.eml?token=abc123",
"agent_id": 42,
"contact_id": 789,
"message": "<p>Hello, I need help with my account.</p>",
"attachments": [
{
"id": 123,
"name": "<string>",
"url": "<string>",
"type": "<string>",
"size": 123,
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"delay": 0,
"unsubscribe_url": "https://newsletter.hooli.com/unsubscribe?token=xyz789",
"last_event": {
"event": "DELIVERED",
"received_at": "2026-01-21T14:31:00Z",
"error_code": "550",
"reason": "Message delivered successfully"
},
"actions": [
{}
],
"language": "en",
"is_read": false,
"is_automated": false
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}Retrieves messages, notes, and events from a specific conversation in reverse chronological order. Supports pagination using the before parameter to fetch older entries. Returns a mix of messages, notes, and conversation events in a unified timeline.
Authorizations
Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.
Authentication to the API is performed by using the HTTP Header X-API-Key.
Query Parameters
Was this page helpful?
⌘I
List messages in a conversation
curl --request GET \
--url https://api.getfernand.com/conversations/{id}/messages \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getfernand.com/conversations/{id}/messages"
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.getfernand.com/conversations/{id}/messages', 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.getfernand.com/conversations/{id}/messages",
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;
}require 'uri'
require 'net/http'
url = URI("https://api.getfernand.com/conversations/{id}/messages")
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_bodypackage main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getfernand.com/conversations/{id}/messages"
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))
}using RestSharp;
var options = new RestClientOptions("https://api.getfernand.com/conversations/{id}/messages");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-API-Key", "<api-key>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
HttpResponse<String> response = Unirest.get("https://api.getfernand.com/conversations/{id}/messages")
.header("X-API-Key", "<api-key>")
.asString();{
"has_more": false,
"data": [
{
"id": "m-123456",
"conversation_id": 12345,
"type": "MESSAGE",
"timestamp": "2026-01-21T14:30:00Z",
"way": "IN",
"status": "SENT",
"source": "EMAIL",
"download_url": "https://api.getfernand.com/conversations/a1b2c3d4-e5f6-7890-abcd-ef1234567890/original.eml?token=abc123",
"agent_id": 42,
"contact_id": 789,
"message": "<p>Hello, I need help with my account.</p>",
"attachments": [
{
"id": 123,
"name": "<string>",
"url": "<string>",
"type": "<string>",
"size": 123,
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"delay": 0,
"unsubscribe_url": "https://newsletter.hooli.com/unsubscribe?token=xyz789",
"last_event": {
"event": "DELIVERED",
"received_at": "2026-01-21T14:31:00Z",
"error_code": "550",
"reason": "Message delivered successfully"
},
"actions": [
{}
],
"language": "en",
"is_read": false,
"is_automated": false
}
]
}{
"error": "<string>"
}{
"error": "<string>"
}