Reply or add a note
Adds an agent reply (sent to the customer) or an internal note (seen by your team only). Sends the message.created webhook.
Authentication
Bearer tokenbearerAuth
Create a key under Settings › API keys and send it as Authorization: Bearer YOUR_KEY.
Parameters
Request bodyrequired
Responses
400A parameter is missing or wrong. error.field names it.application/json
404The id doesn't exist in this workspace.application/json
POST/conversations/{conversation_id}/messages
curl https://api.relaypoint.example/v1/conversations/conv_8h2k1x/messages \
--request POST \
--header 'Authorization: Bearer YOUR_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"type": "reply",
"body": "Thanks Jamie. Your signing secret was rotated on Monday; copy the new one from Settings › Integrations › Webhooks."
}'const response = await fetch('https://api.relaypoint.example/v1/conversations/conv_8h2k1x/messages', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
type: 'reply',
body: 'Thanks Jamie. Your signing secret was rotated on Monday; copy the new one from Settings › Integrations › Webhooks.'
})
})
console.log(response.status, await response.text());import requests
response = requests.post(
"https://api.relaypoint.example/v1/conversations/conv_8h2k1x/messages",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"type": "reply",
"body": "Thanks Jamie. Your signing secret was rotated on Monday; copy the new one from Settings › Integrations › Webhooks."
}
)
print(response.status_code)
print(response.text)<?php
$ch = curl_init('https://api.relaypoint.example/v1/conversations/conv_8h2k1x/messages');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_TOKEN',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode([
'type' => 'reply',
'body' => 'Thanks Jamie. Your signing secret was rotated on Monday; copy the new one from Settings › Integrations › Webhooks.',
]),
]);
$response = curl_exec($ch);
if ($response === false) {
exit('Request failed: ' . curl_error($ch) . PHP_EOL);
}
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), PHP_EOL, $response, PHP_EOL;
curl_close($ch);package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
requestUrl := "https://api.relaypoint.example/v1/conversations/conv_8h2k1x/messages"
payload := strings.NewReader(`{
"type": "reply",
"body": "Thanks Jamie. Your signing secret was rotated on Monday; copy the new one from Settings › Integrations › Webhooks."
}`)
req, _ := http.NewRequest("POST", requestUrl, payload)
req.Header.Add("Authorization", "Bearer YOUR_TOKEN")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}Response
{
"id": "msg_6t1v8e",
"type": "reply",
"author": {
"type": "agent",
"name": "Priya Shah"
},
"body": "Thanks Jamie. Your signing secret was rotated on Monday; copy the new one from Settings › Integrations › Webhooks.",
"created_at": "2026-10-30T09:31:05Z"
}Was this page helpful?