Preview what the audience resolves to
curl --request GET \
--url https://api.getoneprofile.ai/sequences/{sequence_id}/audience/preview/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/sequences/{sequence_id}/audience/preview/"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/sequences/{sequence_id}/audience/preview/', 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.getoneprofile.ai/sequences/{sequence_id}/audience/preview/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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.getoneprofile.ai/sequences/{sequence_id}/audience/preview/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.getoneprofile.ai/sequences/{sequence_id}/audience/preview/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sequences/{sequence_id}/audience/preview/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"computed_at": "2023-11-07T05:31:56Z",
"preview": {
"already_enrolled": 123,
"capped": true,
"enrollable": 123,
"missing_email": 123,
"suppressed": 123,
"total_rows": 123,
"browser_columns_added": [
"<string>"
],
"browser_missing_columns": [
"<string>"
],
"browser_missing_contacts": 0,
"email_deliverable": 0,
"email_not_deliverable": 0,
"email_unchecked": 0,
"in_cooldown": 0,
"in_other_sequence": 0,
"message_missing_columns": [
"<string>"
],
"message_missing_contacts": 0,
"reached_before": 0,
"removed": 0,
"with_company_domain": 0,
"with_email": 0,
"with_linkedin_url": 0
},
"refreshing": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}sequences
Preview what the audience resolves to
The reassurance banner: “4,120 rows, 3,890 will be enrolled”, and why not, as last counted. Counted in the background after every change to the audience and when the stored count is older than five minutes; refreshing says a fresh count is on its way, and preview is null until the first one lands. A READ key’s read takes the count as it stands.
GET
/
sequences
/
{sequence_id}
/
audience
/
preview
/
Preview what the audience resolves to
curl --request GET \
--url https://api.getoneprofile.ai/sequences/{sequence_id}/audience/preview/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/sequences/{sequence_id}/audience/preview/"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/sequences/{sequence_id}/audience/preview/', 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.getoneprofile.ai/sequences/{sequence_id}/audience/preview/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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.getoneprofile.ai/sequences/{sequence_id}/audience/preview/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<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.getoneprofile.ai/sequences/{sequence_id}/audience/preview/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sequences/{sequence_id}/audience/preview/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"computed_at": "2023-11-07T05:31:56Z",
"preview": {
"already_enrolled": 123,
"capped": true,
"enrollable": 123,
"missing_email": 123,
"suppressed": 123,
"total_rows": 123,
"browser_columns_added": [
"<string>"
],
"browser_missing_columns": [
"<string>"
],
"browser_missing_contacts": 0,
"email_deliverable": 0,
"email_not_deliverable": 0,
"email_unchecked": 0,
"in_cooldown": 0,
"in_other_sequence": 0,
"message_missing_columns": [
"<string>"
],
"message_missing_contacts": 0,
"reached_before": 0,
"removed": 0,
"with_company_domain": 0,
"with_email": 0,
"with_linkedin_url": 0
},
"refreshing": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Response
Successful Response
The audience banner's numbers as last stored, counted off the request path.
Was this page helpful?