Skip to main content
POST
/
broadcasts
/
{broadcast_id}
/
messages
Create a message
curl --request POST \
  --url https://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": "promo@acme.com",
  "content": {
    "subject": "Variant B",
    "body": {
      "html": "<p>Variant</p>"
    }
  }
}
'
import requests

url = "https://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages"

payload = {
"from": "promo@acme.com",
"content": {
"subject": "Variant B",
"body": { "html": "<p>Variant</p>" }
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
from: 'promo@acme.com',
content: {subject: 'Variant B', body: JSON.stringify({html: '<p>Variant</p>'})}
})
};

fetch('https://api.getvero.com/api/v2/broadcasts/{broadcast_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.getvero.com/api/v2/broadcasts/{broadcast_id}/messages",
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([
'from' => 'promo@acme.com',
'content' => [
'subject' => 'Variant B',
'body' => [
'html' => '<p>Variant</p>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages"

payload := strings.NewReader("{\n \"from\": \"promo@acme.com\",\n \"content\": {\n \"subject\": \"Variant B\",\n \"body\": {\n \"html\": \"<p>Variant</p>\"\n }\n }\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "<api-key>")
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://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"from\": \"promo@acme.com\",\n \"content\": {\n \"subject\": \"Variant B\",\n \"body\": {\n \"html\": \"<p>Variant</p>\"\n }\n }\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.getvero.com/api/v2/broadcasts/{broadcast_id}/messages")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"from\": \"promo@acme.com\",\n \"content\": {\n \"subject\": \"Variant B\",\n \"body\": {\n \"html\": \"<p>Variant</p>\"\n }\n }\n}"

response = http.request(request)
puts response.read_body
{
  "id": 101,
  "broadcast_id": 42,
  "position": 2,
  "name": "Variation A",
  "active": true,
  "from": "hello@acme.com",
  "reply_to": "replies@acme.com",
  "created_at": "2026-03-01T10:00:00Z",
  "updated_at": "2026-03-01T10:00:00Z"
}
{
"errors": [
{
"message": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

Accepts either a raw API key or Bearer <key>.

Headers

revision
string

Optional dated API revision for the request. Must use YYYY-MM-DD format.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-03-01"

Path Parameters

broadcast_id
integer
required

Broadcast ID.

Body

application/json

Create an additional message (A/B arm) on a draft broadcast. The arm is cloned from the control message's default content (subject, body, sender); supplied fields override the clone. name, position, and other derived/audience fields are rejected with 422 Validation error.

from
string | null

Sender email address (email channel). Must match an existing verified sender for the project, otherwise 422. Defaults to the cloned control sender.

reply_to
string | null
content
object

Optional overrides for the cloned default content.

Response

Broadcast message created.

One message (A/B test arm) of a broadcast. from/reply_to are email-only sender fields and are null for SMS/push messages.

id
integer
required
broadcast_id
integer
required
position
integer
required
name
string | null
required

Server-generated message name, for example Control or Variation A.

active
boolean
required
from
string | null
required

Sender email address (email messages only).

reply_to
string | null
required

Reply-to email address (email messages only).

created_at
string<date-time>
required
updated_at
string<date-time>
required