Campaigns
Dry-run audience count
POST
/
v1
/
campaigns
/
dry-run-audience
Dry-run audience count
curl --request POST \
--url https://api.wazapin.com/v1/campaigns/dry-run-audience \
--header 'Content-Type: application/json' \
--data '
{
"audience_source_id": "<string>",
"audience_source_type": "<string>",
"contact_ids": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
audience_source_id: '<string>',
audience_source_type: '<string>',
contact_ids: ['<string>']
})
};
fetch('https://api.wazapin.com/v1/campaigns/dry-run-audience', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/campaigns/dry-run-audience"
payload = {
"audience_source_id": "<string>",
"audience_source_type": "<string>",
"contact_ids": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"count": 123,
"samples": [
{
"id": "<string>",
"email": "<string>",
"name": "<string>",
"phone": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
Dry-run audience count
curl --request POST \
--url https://api.wazapin.com/v1/campaigns/dry-run-audience \
--header 'Content-Type: application/json' \
--data '
{
"audience_source_id": "<string>",
"audience_source_type": "<string>",
"contact_ids": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
audience_source_id: '<string>',
audience_source_type: '<string>',
contact_ids: ['<string>']
})
};
fetch('https://api.wazapin.com/v1/campaigns/dry-run-audience', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/campaigns/dry-run-audience"
payload = {
"audience_source_id": "<string>",
"audience_source_type": "<string>",
"contact_ids": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"count": 123,
"samples": [
{
"id": "<string>",
"email": "<string>",
"name": "<string>",
"phone": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}