Broadcasts
Preview a broadcast
Renders the template for the first pending recipients so you can check personalisation, encoding, and segments before launch. Nothing is sent or charged.
GET
/
api
/
v1
/
Account
/
{auth_id}
/
Sms
/
Broadcast
/
{id}
/
Preview
/
cURL
curl --request GET \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Broadcast/{id}/Preview/ \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.broadcasts.preview_broadcast(
id="3f8d2a6e-5b1c-4e7f-a9d0-2c4b6e8f1a35",
)
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Broadcast/{id}/Preview/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"samples": [
{
"to": "+14155550123",
"text": "Hi Priya, your refund of $42.00 is on its way.",
"segments": 1,
"encoding": "GSM-7"
},
{
"to": "+14155550124",
"text": "Hi Sam, your refund of $18.50 is on its way.",
"segments": 1,
"encoding": "GSM-7"
}
],
"missingVariables": [],
"estimatedSegments": 2
}
Authorizations
Path Parameters
Query Parameters
Response
Rendered samples and totals.
The template rendered for the first pending recipients, with the information you need to check a broadcast before launching it.
Was this page helpful?
⌘I
cURL
curl --request GET \
--url https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Broadcast/{id}/Preview/ \
--header 'X-Auth-ID: <api-key>' \
--header 'X-Auth-Token: <api-key>'from vobiz import Vobiz
client = Vobiz(api_key="MA_XXXXXXXX", auth_token="YOUR_AUTH_TOKEN")
client.sms.broadcasts.preview_broadcast(
id="3f8d2a6e-5b1c-4e7f-a9d0-2c4b6e8f1a35",
)
const options = {
method: 'GET',
headers: {'X-Auth-ID': '<api-key>', 'X-Auth-Token': '<api-key>'}
};
fetch('https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms/Broadcast/{id}/Preview/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"samples": [
{
"to": "+14155550123",
"text": "Hi Priya, your refund of $42.00 is on its way.",
"segments": 1,
"encoding": "GSM-7"
},
{
"to": "+14155550124",
"text": "Hi Sam, your refund of $18.50 is on its way.",
"segments": 1,
"encoding": "GSM-7"
}
],
"missingVariables": [],
"estimatedSegments": 2
}