List broadcasts
curl --request GET \
--url https://api.nateq.io/api/v1/broadcasts \
--header 'Authorization: <api-key>'import requests
url = "https://api.nateq.io/api/v1/broadcasts"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.nateq.io/api/v1/broadcasts', 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.nateq.io/api/v1/broadcasts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nateq.io/api/v1/broadcasts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nateq.io/api/v1/broadcasts")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nateq.io/api/v1/broadcasts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"ageGroupBreakdown": {},
"audienceSegment": "<string>",
"audienceSize": 123,
"avgResponseTime": 123,
"bounceRate": 123,
"broadcastName": "<string>",
"clickRate": 123,
"completedAt": "<string>",
"conversionRate": 123,
"cost": 123,
"createdAt": "<string>",
"deliveredCount": 123,
"description": "<string>",
"deviceBreakdown": {},
"emailVariables": {},
"errorMessage": "<string>",
"failedCount": 123,
"hasEmojis": true,
"hasImages": true,
"hasLinks": true,
"id": "<string>",
"isABTest": true,
"isDraft": true,
"locationBreakdown": {},
"messageLength": 123,
"openRate": 123,
"organizationId": "<string>",
"peakEngagementHour": 123,
"readCount": 123,
"recipients": [
{
"broadcast": "<unknown>",
"broadcastId": "<string>",
"contact": {
"activities": [
{
"actorId": "<string>",
"actorName": "<string>",
"actorType": "<string>",
"contactId": "<string>",
"createdAt": "<string>",
"description": "<string>",
"id": "<string>",
"metadata": "<string>",
"newValue": "<string>",
"oldValue": "<string>",
"updatedAt": "<string>"
}
],
"avatar": "<string>",
"channelData": "<string>",
"company": {
"domain": "<string>",
"id": "<string>",
"name": "<string>"
},
"companyId": "<string>",
"companyName": "<string>",
"country": "<string>",
"createdAt": "<string>",
"doNotContact": true,
"email": "<string>",
"externalId": "<string>",
"id": "<string>",
"isAnonymous": true,
"isPotentialClient": true,
"language": "<string>",
"name": "<string>",
"organizationId": "<string>",
"phone": "<string>",
"position": "<string>",
"source": "<string>",
"tags": [
{
"color": "<string>",
"createdAt": "<string>",
"displayName": "<string>",
"id": "<string>",
"name": "<string>",
"organizationId": "<string>",
"updatedAt": "<string>"
}
],
"updatedAt": "<string>",
"whatsappOptedOut": true,
"whatsappOptedOutAt": "<string>",
"widgetGuestId": "<string>"
},
"contactId": "<string>",
"createdAt": "<string>",
"deliveredAt": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"externalMessageId": "<string>",
"failedAt": "<string>",
"id": "<string>",
"readAt": "<string>",
"repliedAt": "<string>",
"sentAt": "<string>",
"updatedAt": "<string>"
}
],
"repliedCount": 123,
"revenue": 123,
"roi": 123,
"scheduledAt": "<string>",
"sendNow": true,
"senderEmailAddressId": "<string>",
"sentCount": 123,
"startedAt": "<string>",
"subjectOverride": "<string>",
"targetDemographic": "<string>",
"templateChannel": "<string>",
"templateId": "<string>",
"templateVariables": {
"body": [
{
"type": "<string>",
"value": "<string>"
}
],
"header": [
{
"type": "<string>",
"value": "<string>"
}
],
"headerMedia": "<string>",
"url": {
"type": "<string>",
"value": "<string>"
}
},
"totalRecipients": 123,
"trendPercentage": 123,
"unsubscribeRate": 123,
"updatedAt": "<string>",
"variantName": "<string>",
"winningVariant": true
}
],
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>"
},
"message": "<string>",
"meta": {
"aiTranslation": "<string>",
"apiKeyUsage": {
"limit": 123,
"unlimited": true,
"used": 123
},
"callCapabilities": {
"aiHandling": "<string>",
"aiHumanTransfer": true,
"analytics": "<string>",
"businessHoursRouting": true,
"enabled": true,
"multiLanguageAi": true,
"queueManagement": true,
"recording": true,
"routing": "<string>"
},
"count": 123,
"dataRetentionCapability": "<string>",
"endCursor": "<string>",
"hasNext": true,
"hasPrevious": true,
"limit": 123,
"page": 123,
"pageSize": 123,
"pendingCount": 123,
"routingCapability": "<string>",
"ssoCapability": "<string>",
"startCursor": "<string>",
"total": 123,
"totalPages": 123
},
"success": true
}List broadcasts
List broadcasts in the organization.
GET
/
broadcasts
List broadcasts
curl --request GET \
--url https://api.nateq.io/api/v1/broadcasts \
--header 'Authorization: <api-key>'import requests
url = "https://api.nateq.io/api/v1/broadcasts"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.nateq.io/api/v1/broadcasts', 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.nateq.io/api/v1/broadcasts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.nateq.io/api/v1/broadcasts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nateq.io/api/v1/broadcasts")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nateq.io/api/v1/broadcasts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"ageGroupBreakdown": {},
"audienceSegment": "<string>",
"audienceSize": 123,
"avgResponseTime": 123,
"bounceRate": 123,
"broadcastName": "<string>",
"clickRate": 123,
"completedAt": "<string>",
"conversionRate": 123,
"cost": 123,
"createdAt": "<string>",
"deliveredCount": 123,
"description": "<string>",
"deviceBreakdown": {},
"emailVariables": {},
"errorMessage": "<string>",
"failedCount": 123,
"hasEmojis": true,
"hasImages": true,
"hasLinks": true,
"id": "<string>",
"isABTest": true,
"isDraft": true,
"locationBreakdown": {},
"messageLength": 123,
"openRate": 123,
"organizationId": "<string>",
"peakEngagementHour": 123,
"readCount": 123,
"recipients": [
{
"broadcast": "<unknown>",
"broadcastId": "<string>",
"contact": {
"activities": [
{
"actorId": "<string>",
"actorName": "<string>",
"actorType": "<string>",
"contactId": "<string>",
"createdAt": "<string>",
"description": "<string>",
"id": "<string>",
"metadata": "<string>",
"newValue": "<string>",
"oldValue": "<string>",
"updatedAt": "<string>"
}
],
"avatar": "<string>",
"channelData": "<string>",
"company": {
"domain": "<string>",
"id": "<string>",
"name": "<string>"
},
"companyId": "<string>",
"companyName": "<string>",
"country": "<string>",
"createdAt": "<string>",
"doNotContact": true,
"email": "<string>",
"externalId": "<string>",
"id": "<string>",
"isAnonymous": true,
"isPotentialClient": true,
"language": "<string>",
"name": "<string>",
"organizationId": "<string>",
"phone": "<string>",
"position": "<string>",
"source": "<string>",
"tags": [
{
"color": "<string>",
"createdAt": "<string>",
"displayName": "<string>",
"id": "<string>",
"name": "<string>",
"organizationId": "<string>",
"updatedAt": "<string>"
}
],
"updatedAt": "<string>",
"whatsappOptedOut": true,
"whatsappOptedOutAt": "<string>",
"widgetGuestId": "<string>"
},
"contactId": "<string>",
"createdAt": "<string>",
"deliveredAt": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"externalMessageId": "<string>",
"failedAt": "<string>",
"id": "<string>",
"readAt": "<string>",
"repliedAt": "<string>",
"sentAt": "<string>",
"updatedAt": "<string>"
}
],
"repliedCount": 123,
"revenue": 123,
"roi": 123,
"scheduledAt": "<string>",
"sendNow": true,
"senderEmailAddressId": "<string>",
"sentCount": 123,
"startedAt": "<string>",
"subjectOverride": "<string>",
"targetDemographic": "<string>",
"templateChannel": "<string>",
"templateId": "<string>",
"templateVariables": {
"body": [
{
"type": "<string>",
"value": "<string>"
}
],
"header": [
{
"type": "<string>",
"value": "<string>"
}
],
"headerMedia": "<string>",
"url": {
"type": "<string>",
"value": "<string>"
}
},
"totalRecipients": 123,
"trendPercentage": 123,
"unsubscribeRate": 123,
"updatedAt": "<string>",
"variantName": "<string>",
"winningVariant": true
}
],
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>"
},
"message": "<string>",
"meta": {
"aiTranslation": "<string>",
"apiKeyUsage": {
"limit": 123,
"unlimited": true,
"used": 123
},
"callCapabilities": {
"aiHandling": "<string>",
"aiHumanTransfer": true,
"analytics": "<string>",
"businessHoursRouting": true,
"enabled": true,
"multiLanguageAi": true,
"queueManagement": true,
"recording": true,
"routing": "<string>"
},
"count": 123,
"dataRetentionCapability": "<string>",
"endCursor": "<string>",
"hasNext": true,
"hasPrevious": true,
"limit": 123,
"page": 123,
"pageSize": 123,
"pendingCount": 123,
"routingCapability": "<string>",
"ssoCapability": "<string>",
"startCursor": "<string>",
"total": 123,
"totalPages": 123
},
"success": true
}Was this page helpful?
⌘I