curl --request GET \
--url https://api.getfernand.com/conversations/{id}/messages \
--header 'X-API-Key: <api-key>'[
{
"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
}
]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.
curl --request GET \
--url https://api.getfernand.com/conversations/{id}/messages \
--header 'X-API-Key: <api-key>'[
{
"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
}
]id in the form [x]-[id], such as m-1234 for messages, n-4321 for notes, and e-6789 for events, but the messages and notes endpoints expects the id as integer, without the first part.m-, n- and e-) so you should conditionnaly strip these, and rely on the type property to know if it’s a message, note or event.ID of the conversation to retrieve messages from.
Timestamp or Unix epoch (in seconds or milliseconds) to fetch messages before. Accepts ISO 8601 format or Unix timestamp. Used for pagination to load older messages.
Maximum number of entries to return.
5 <= x <= 100Messages retrieved successfully.
Unique identifier for the message
"m-123456"
ID of the conversation this message belongs to
12345
Type of entry (always MESSAGE for messages)
MESSAGE "MESSAGE"
ISO 8601 timestamp when the message was created
"2026-01-21T14:30:00Z"
Direction of the message (IN for incoming, OUT for outgoing)
IN, OUT "IN"
Current status of the message
DRAFT, PENDING, SENT, RECEIVED, BOUNCED, SPAM, ERROR "SENT"
Source channel of the message
EMAIL, CHAT "EMAIL"
URL to download the original email file (.eml), if available
"https://api.getfernand.com/conversations/a1b2c3d4-e5f6-7890-abcd-ef1234567890/original.eml?token=abc123"
ID of the agent who sent the message (null for incoming messages)
42
ID of the contact who sent the message (null for outgoing messages)
789
HTML content of the message body
"<p>Hello, I need help with my account.</p>"
Array of file attachments in the message
Show child attributes
Delay in seconds before the message is sent (for scheduled messages)
0
URL for the recipient to unsubscribe, if available
"https://newsletter.hooli.com/unsubscribe?token=xyz789"
Most recent delivery event for this message
Show child attributes
Array of automated actions triggered by this message
Detected language code of the message content (e.g., en, fr, es)
"en"
Whether the message has been read by the recipient (chat messages only)
false
Whether this message was sent automatically by the system
false
Was this page helpful?