curl --request POST \
--url https://api.getfernand.com/conversations/{id}/reply \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": "<string>",
"attachments": [
{
"name": "<string>",
"type": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
}
],
"actions": [
{
"name": "<string>",
"data": {},
"snippet_id": 123
}
],
"delay": 7,
"agent_id": 123,
"agent_email": "<string>",
"generated_id": "<string>"
}
'{
"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
}curl --request POST \
--url https://api.getfernand.com/conversations/{id}/reply \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"content": "<string>",
"attachments": [
{
"name": "<string>",
"type": "<string>",
"content": "aSDinaTvuI8gbWludGxpZnk="
}
],
"actions": [
{
"name": "<string>",
"data": {},
"snippet_id": 123
}
],
"delay": 7,
"agent_id": 123,
"agent_email": "<string>",
"generated_id": "<string>"
}
'{
"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 of the conversation to reply to.
HTML content of the reply message (optional if only executing actions).
Array of file attachments (optional).
Show child attributes
Automated actions to execute after sending (optional).
Show child attributes
Delay in seconds before sending the reply (0-86400, default 7 seconds).
0 <= x <= 86400ID of the agent sending this reply (required, to know which agent will be the sender).
Email of the agent sending this reply (required if agent_id is not provided).
Client-generated ID to track the message in the response (optional, returned unchanged).
Reply sent 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?