Send Message to Conversation Channel
curl --request POST \
--url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"messages": [
{
"mid": "<string>",
"type": "text",
"item": {
"type": "<string>",
"payload": "<unknown>",
"time": 123
},
"ts": 123,
"sourceLabel": "<string>"
}
],
"sourceLabel": "<string>",
"options": {
"dryRun": true,
"skipIfHumanHandoff": true,
"whatsappPhoneNumberId": "<string>"
}
}
'import requests
url = "https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send"
payload = {
"message": "<string>",
"messages": [
{
"mid": "<string>",
"type": "text",
"item": {
"type": "<string>",
"payload": "<unknown>",
"time": 123
},
"ts": 123,
"sourceLabel": "<string>"
}
],
"sourceLabel": "<string>",
"options": {
"dryRun": True,
"skipIfHumanHandoff": True,
"whatsappPhoneNumberId": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
message: '<string>',
messages: [
{
mid: '<string>',
type: 'text',
item: {type: '<string>', payload: '<unknown>', time: 123},
ts: 123,
sourceLabel: '<string>'
}
],
sourceLabel: '<string>',
options: {dryRun: true, skipIfHumanHandoff: true, whatsappPhoneNumberId: '<string>'}
})
};
fetch('https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send', 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://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => '<string>',
'messages' => [
[
'mid' => '<string>',
'type' => 'text',
'item' => [
'type' => '<string>',
'payload' => '<unknown>',
'time' => 123
],
'ts' => 123,
'sourceLabel' => '<string>'
]
],
'sourceLabel' => '<string>',
'options' => [
'dryRun' => true,
'skipIfHumanHandoff' => true,
'whatsappPhoneNumberId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send"
payload := strings.NewReader("{\n \"message\": \"<string>\",\n \"messages\": [\n {\n \"mid\": \"<string>\",\n \"type\": \"text\",\n \"item\": {\n \"type\": \"<string>\",\n \"payload\": \"<unknown>\",\n \"time\": 123\n },\n \"ts\": 123,\n \"sourceLabel\": \"<string>\"\n }\n ],\n \"sourceLabel\": \"<string>\",\n \"options\": {\n \"dryRun\": true,\n \"skipIfHumanHandoff\": true,\n \"whatsappPhoneNumberId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"<string>\",\n \"messages\": [\n {\n \"mid\": \"<string>\",\n \"type\": \"text\",\n \"item\": {\n \"type\": \"<string>\",\n \"payload\": \"<unknown>\",\n \"time\": 123\n },\n \"ts\": 123,\n \"sourceLabel\": \"<string>\"\n }\n ],\n \"sourceLabel\": \"<string>\",\n \"options\": {\n \"dryRun\": true,\n \"skipIfHumanHandoff\": true,\n \"whatsappPhoneNumberId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": \"<string>\",\n \"messages\": [\n {\n \"mid\": \"<string>\",\n \"type\": \"text\",\n \"item\": {\n \"type\": \"<string>\",\n \"payload\": \"<unknown>\",\n \"time\": 123\n },\n \"ts\": 123,\n \"sourceLabel\": \"<string>\"\n }\n ],\n \"sourceLabel\": \"<string>\",\n \"options\": {\n \"dryRun\": true,\n \"skipIfHumanHandoff\": true,\n \"whatsappPhoneNumberId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"agentId": "<string>",
"convoId": "<string>",
"origin": "<string>",
"channelDeliverable": true,
"delivered": true,
"persisted": true,
"messages": [
{
"type": "<string>",
"from": "<string>",
"item": {}
}
],
"dryRun": true,
"skipped": true,
"reason": "<string>",
"edgeResponse": {}
}
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}Conversations
Send Message to Conversation
Send an agent-initiated outbound message into an existing conversation and deliver it on the original channel (WhatsApp, Messenger, Instagram, Telegram, SMS, Discord).
POST
/
agents
/
{agentId}
/
convos
/
{convoId}
/
send
Send Message to Conversation Channel
curl --request POST \
--url https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"messages": [
{
"mid": "<string>",
"type": "text",
"item": {
"type": "<string>",
"payload": "<unknown>",
"time": 123
},
"ts": 123,
"sourceLabel": "<string>"
}
],
"sourceLabel": "<string>",
"options": {
"dryRun": true,
"skipIfHumanHandoff": true,
"whatsappPhoneNumberId": "<string>"
}
}
'import requests
url = "https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send"
payload = {
"message": "<string>",
"messages": [
{
"mid": "<string>",
"type": "text",
"item": {
"type": "<string>",
"payload": "<unknown>",
"time": 123
},
"ts": 123,
"sourceLabel": "<string>"
}
],
"sourceLabel": "<string>",
"options": {
"dryRun": True,
"skipIfHumanHandoff": True,
"whatsappPhoneNumberId": "<string>"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
message: '<string>',
messages: [
{
mid: '<string>',
type: 'text',
item: {type: '<string>', payload: '<unknown>', time: 123},
ts: 123,
sourceLabel: '<string>'
}
],
sourceLabel: '<string>',
options: {dryRun: true, skipIfHumanHandoff: true, whatsappPhoneNumberId: '<string>'}
})
};
fetch('https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send', 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://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => '<string>',
'messages' => [
[
'mid' => '<string>',
'type' => 'text',
'item' => [
'type' => '<string>',
'payload' => '<unknown>',
'time' => 123
],
'ts' => 123,
'sourceLabel' => '<string>'
]
],
'sourceLabel' => '<string>',
'options' => [
'dryRun' => true,
'skipIfHumanHandoff' => true,
'whatsappPhoneNumberId' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send"
payload := strings.NewReader("{\n \"message\": \"<string>\",\n \"messages\": [\n {\n \"mid\": \"<string>\",\n \"type\": \"text\",\n \"item\": {\n \"type\": \"<string>\",\n \"payload\": \"<unknown>\",\n \"time\": 123\n },\n \"ts\": 123,\n \"sourceLabel\": \"<string>\"\n }\n ],\n \"sourceLabel\": \"<string>\",\n \"options\": {\n \"dryRun\": true,\n \"skipIfHumanHandoff\": true,\n \"whatsappPhoneNumberId\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"<string>\",\n \"messages\": [\n {\n \"mid\": \"<string>\",\n \"type\": \"text\",\n \"item\": {\n \"type\": \"<string>\",\n \"payload\": \"<unknown>\",\n \"time\": 123\n },\n \"ts\": 123,\n \"sourceLabel\": \"<string>\"\n }\n ],\n \"sourceLabel\": \"<string>\",\n \"options\": {\n \"dryRun\": true,\n \"skipIfHumanHandoff\": true,\n \"whatsappPhoneNumberId\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://eu-gcp-api.vg-stuff.com/v3/agents/{agentId}/convos/{convoId}/send")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": \"<string>\",\n \"messages\": [\n {\n \"mid\": \"<string>\",\n \"type\": \"text\",\n \"item\": {\n \"type\": \"<string>\",\n \"payload\": \"<unknown>\",\n \"time\": 123\n },\n \"ts\": 123,\n \"sourceLabel\": \"<string>\"\n }\n ],\n \"sourceLabel\": \"<string>\",\n \"options\": {\n \"dryRun\": true,\n \"skipIfHumanHandoff\": true,\n \"whatsappPhoneNumberId\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"agentId": "<string>",
"convoId": "<string>",
"origin": "<string>",
"channelDeliverable": true,
"delivered": true,
"persisted": true,
"messages": [
{
"type": "<string>",
"from": "<string>",
"item": {}
}
],
"dryRun": true,
"skipped": true,
"reason": "<string>",
"edgeResponse": {}
}
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}Example — plain text recovery message
{
"message": "Hi — just checking in. Still interested in booking a time this week?"
}
Example — labeled recovery send
{
"message": "We're back online — how can we help?",
"sourceLabel": "recovery",
"options": {
"skipIfHumanHandoff": true
}
}
Example — dry run (validate only)
{
"message": "Follow-up ping",
"options": {
"dryRun": true
}
}
This endpoint delivers to the conversation’s channel. It is the opposite of Update Conversation Messages, which only rewrites stored history and does not push to WhatsApp/Messenger/etc.
The message is sent as-is (agent-initiated). No LLM turn runs. The conversation
origin decides the channel — you do not need to pass WhatsApp vs Messenger yourself.Meta channels enforce a 24-hour messaging window after the last customer message. Outside that window, free-form WhatsApp text will fail (use an approved template / campaign). Messenger may allow a limited
HUMAN_AGENT retry depending on page permissions.Use
options.dryRun: true to confirm the conversation exists and whether its origin is channel-deliverable before scheduling recovery jobs.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Agent ID that owns the conversation.
Minimum string length:
1Existing conversation ID (same as interact userID).
Minimum string length:
1Body
application/json
Convenience plain-text body. Required unless messages is provided.
Minimum string length:
1Optional rich ChatMessage array. All messages are forced to from=bot and delivered as agent-initiated turns (no AI generation).
Minimum array length:
1Show child attributes
Show child attributes
Optional label stored on the message(s), e.g. "api", "recovery", "campaign". Defaults to "api".
Show child attributes
Show child attributes
⌘I
