Read the sequence the pick built
curl --request GET \
--url https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/approaches/built/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/approaches/built/"
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/onboarding-wizard/runs/{run_id}/approaches/built/', 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/onboarding-wizard/runs/{run_id}/approaches/built/",
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/onboarding-wizard/runs/{run_id}/approaches/built/"
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/onboarding-wizard/runs/{run_id}/approaches/built/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/approaches/built/")
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{
"columns": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"edges": [
{
"branch": "default",
"from_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"name": "<string>",
"steps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "message",
"agent_prompt_key": "<string>",
"agent_subject": false,
"authoring": "written",
"body_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
],
"browser_config": {
"outcomes": [
{
"key": "default",
"label": "<string>"
}
],
"goal_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
],
"inbox_access": false,
"outputs": [
{
"key": "<string>",
"name": "<string>",
"choices": [
"<string>"
],
"description": "",
"field_type": "text",
"hidden": false
}
],
"retired_outcome_keys": [
"default"
],
"retired_output_keys": [
"<string>"
]
},
"condition_kind": "has_email",
"condition_window_days": 45,
"counting_since": "2023-11-07T05:31:56Z",
"position": 0,
"prompt": "",
"reply_to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requires_approval": false,
"save_to_table": true,
"share": 50,
"subject_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
],
"test_result": {
"can_undo": true,
"ended_at": "2023-11-07T05:31:56Z",
"tallies": [
{
"key": "a",
"positive": 123,
"replied": 123,
"sent": 123
}
],
"verdict": "<string>",
"winner": "a",
"named_winner": "a",
"winner_named": false
},
"title": "<string>",
"version_split": "even",
"versions": [
{
"key": "a",
"body_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
],
"counting_since": "2023-11-07T05:31:56Z",
"prompt": "",
"share": 50,
"subject_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
]
}
],
"wait_amount": 0,
"wait_unit": "days"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}onboarding-wizard
Read the sequence the pick built
Once an approach is used (POST .../approaches/use/): the steps and edges of the draft sequence it built, as the Builder reads them, and the columns its words name, the people table’s and the fact columns Launch adds. 409 while nothing is built, and again after Undo.
GET
/
onboarding-wizard
/
runs
/
{run_id}
/
approaches
/
built
/
Read the sequence the pick built
curl --request GET \
--url https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/approaches/built/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/approaches/built/"
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/onboarding-wizard/runs/{run_id}/approaches/built/', 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/onboarding-wizard/runs/{run_id}/approaches/built/",
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/onboarding-wizard/runs/{run_id}/approaches/built/"
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/onboarding-wizard/runs/{run_id}/approaches/built/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/approaches/built/")
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{
"columns": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
],
"edges": [
{
"branch": "default",
"from_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"name": "<string>",
"steps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "message",
"agent_prompt_key": "<string>",
"agent_subject": false,
"authoring": "written",
"body_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
],
"browser_config": {
"outcomes": [
{
"key": "default",
"label": "<string>"
}
],
"goal_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
],
"inbox_access": false,
"outputs": [
{
"key": "<string>",
"name": "<string>",
"choices": [
"<string>"
],
"description": "",
"field_type": "text",
"hidden": false
}
],
"retired_outcome_keys": [
"default"
],
"retired_output_keys": [
"<string>"
]
},
"condition_kind": "has_email",
"condition_window_days": 45,
"counting_since": "2023-11-07T05:31:56Z",
"position": 0,
"prompt": "",
"reply_to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requires_approval": false,
"save_to_table": true,
"share": 50,
"subject_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
],
"test_result": {
"can_undo": true,
"ended_at": "2023-11-07T05:31:56Z",
"tallies": [
{
"key": "a",
"positive": 123,
"replied": 123,
"sent": 123
}
],
"verdict": "<string>",
"winner": "a",
"named_winner": "a",
"winner_named": false
},
"title": "<string>",
"version_split": "even",
"versions": [
{
"key": "a",
"body_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
],
"counting_since": "2023-11-07T05:31:56Z",
"prompt": "",
"share": 50,
"subject_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fallback": "",
"options": [
"<string>"
],
"path": "<string>",
"required": true,
"text": ""
}
]
}
],
"wait_amount": 0,
"wait_unit": "days"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Response
Successful Response
The sequence a run's pick built, as Review the messages draws it on the Builder canvas.
Never its id: a visitor's run names the sequence only once its preview is claimed.
Was this page helpful?