curl --request GET \
--url https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/preview/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/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}/steps/{step_id}/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}/steps/{step_id}/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}/steps/{step_id}/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}/steps/{step_id}/preview/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/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{
"body": "<string>",
"in_thread": true,
"missing_columns": [
"<string>"
],
"subject": "<string>",
"agent_written": false,
"approved": false,
"closing": {
"opt_out_footer": "<string>",
"signature": "<string>"
},
"contact_version": "a",
"is_sample": false,
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pinned": false,
"preview_units": 123,
"sample_created_at": "2023-11-07T05:31:56Z",
"sample_version": 123,
"sender": {
"address": "<string>",
"addresses": [
"<string>"
],
"name": "<string>",
"sender_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"sent": {
"body": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"subject": "<string>",
"email_html": "<string>"
},
"spam_findings": [
{
"code": "<string>",
"detail": "<string>",
"message": "<string>",
"severity": "<string>",
"title": "<string>",
"excerpt": "<string>",
"excerpts": [
"<string>"
]
}
],
"waiting_for_approval": false,
"writing_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"written": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Render a step for one contact
Render one step exactly as one contact would receive it, writing nothing and spending nothing. On an agent-written step this shows what is saved for that contact and step: words marked Looks good or pinned for them, else the sample saved for them; with nothing saved it answers written false, and POST /sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/samples/ has the agent write it. Without mailbox_id, the sender’s variables are filled in as the sequence’s first sender’s, the sender a sample is written as. With mix above 0, a typed step’s rotations pick another combination of their versions, to read the email the way other contacts get it; 0 is the contact’s own. While the agent is writing this contact’s emails, this step among them, writing_run_id names the write to follow. A step under an A/B test shows the version the contact gets, or the one version names.
curl --request GET \
--url https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/preview/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/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}/steps/{step_id}/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}/steps/{step_id}/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}/steps/{step_id}/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}/steps/{step_id}/preview/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/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{
"body": "<string>",
"in_thread": true,
"missing_columns": [
"<string>"
],
"subject": "<string>",
"agent_written": false,
"approved": false,
"closing": {
"opt_out_footer": "<string>",
"signature": "<string>"
},
"contact_version": "a",
"is_sample": false,
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"pinned": false,
"preview_units": 123,
"sample_created_at": "2023-11-07T05:31:56Z",
"sample_version": 123,
"sender": {
"address": "<string>",
"addresses": [
"<string>"
],
"name": "<string>",
"sender_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"sent": {
"body": "<string>",
"sent_at": "2023-11-07T05:31:56Z",
"subject": "<string>",
"email_html": "<string>"
},
"spam_findings": [
{
"code": "<string>",
"detail": "<string>",
"message": "<string>",
"severity": "<string>",
"title": "<string>",
"excerpt": "<string>",
"excerpts": [
"<string>"
]
}
],
"waiting_for_approval": false,
"writing_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"written": true
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Query Parameters
On a step under an A/B test, the version to show (a to d), as the open tab of the step's panel; leave out for the version the contact gets. One version of a step's words in an A/B test (2026-11-21).
A is the step's own words, always there; B to D are the versions a person adds beside it. A step that holds only A is not being tested.
a, b, c, d Response
Successful Response
The words were marked Looks good, with the contact's thread in the sequence's Preview or as this one email from the Builder, and still stand, so they are what sends. They stop standing, and the agent writes the step fresh, once the agent's writing or the contact's row changes.
On a tested step, the variant this contact gets there: the one already sent or kept for them, else the one the split draws them. The Preview says it beside another variant's words, and the whole sequence's Preview beside the step's email. Null on an untested step.
a, b, c, d The agent's message these words are, on an agent-written step: the sample on screen, or the one marked Looks good. Marking it Looks good (PUT /sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/) takes it back as message_id, so a mark lands only on the words that were read.
With written false: how much of today's preview allowance writing it would use, one for each message the agent writes in the call (the contact's whole sequence for a contact not written to yet). Writing is refused when GET /outbound-agents/preview-allowance/ has fewer remaining. Null otherwise, or when it cannot be worked out.
The agent is writing this contact's emails right now, this step among them: the write's id, which GET /sequences/{sequence_id}/sample-runs/{run_id}/ follows until it ends. Whoever pressed Write the email, in whatever tab. Set by the step's preview; null when nothing is being written for this step.
Was this page helpful?