curl --request POST \
--url https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"expected_updated_at": "2023-11-07T05:31:56Z",
"agent": {
"expected_version": 2,
"config": {
"cta_label": "<string>",
"cta_url": "<string>",
"goal": "",
"language": "auto",
"message_prompts": {},
"person_research": false,
"personality_preset": "direct",
"personality_prompt": "",
"reply_drafting": true,
"reply_prompt": "",
"translate": false
},
"model_key": "<string>",
"research": true
},
"audience": {
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"column_mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"existing_contacts": "keep",
"expected_updated_at": "2023-11-07T05:31:56Z",
"pause_if_running": false,
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"copy_from_sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expected_agent_version": 123,
"graph": {
"edges": [
{
"branch": "default",
"from_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"expected_updated_at": "2023-11-07T05:31:56Z",
"steps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_prompt_key": "<string>",
"agent_subject": false,
"authoring": "written",
"body_segments": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": [
"<string>"
],
"required": true,
"text": ""
}
],
"condition_window_days": 45,
"position": 0,
"prompt": "",
"reply_to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requires_approval": false,
"subject_segments": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": [
"<string>"
],
"required": true,
"text": ""
}
],
"wait_amount": 0,
"wait_unit": "days"
}
]
},
"mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"prompt_proposal": {
"base_version": 2,
"items": {},
"feedback_cutoff": "2023-11-07T05:31:56Z",
"feedback_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"restore_version": 2,
"review_token": "<string>",
"sender_profile_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"settings": {
"bcc_addresses": [
"<string>"
],
"cc_addresses": [
"<string>"
],
"continuous_enrolment": true,
"email_approval_mode": "<string>",
"expected_updated_at": "2023-11-07T05:31:56Z",
"linkedin_approval_mode": "<string>",
"linkedin_check_max_seconds": 123,
"linkedin_check_min_seconds": 123,
"multithreading": {},
"name": "<string>",
"opportunity_values": {},
"opt_out_footer_text": "<string>",
"plain_text_only": true,
"sending_priority": "<string>",
"sending_window": {},
"spending_limit_tenths": 500000000
},
"training_revision": 123,
"training_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/"
payload = {
"expected_updated_at": "2023-11-07T05:31:56Z",
"agent": {
"expected_version": 2,
"config": {
"cta_label": "<string>",
"cta_url": "<string>",
"goal": "",
"language": "auto",
"message_prompts": {},
"person_research": False,
"personality_preset": "direct",
"personality_prompt": "",
"reply_drafting": True,
"reply_prompt": "",
"translate": False
},
"model_key": "<string>",
"research": True
},
"audience": {
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"column_mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"existing_contacts": "keep",
"expected_updated_at": "2023-11-07T05:31:56Z",
"pause_if_running": False,
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"copy_from_sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expected_agent_version": 123,
"graph": {
"edges": [
{
"branch": "default",
"from_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"expected_updated_at": "2023-11-07T05:31:56Z",
"steps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_prompt_key": "<string>",
"agent_subject": False,
"authoring": "written",
"body_segments": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": ["<string>"],
"required": True,
"text": ""
}
],
"condition_window_days": 45,
"position": 0,
"prompt": "",
"reply_to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requires_approval": False,
"subject_segments": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": ["<string>"],
"required": True,
"text": ""
}
],
"wait_amount": 0,
"wait_unit": "days"
}
]
},
"mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"prompt_proposal": {
"base_version": 2,
"items": {},
"feedback_cutoff": "2023-11-07T05:31:56Z",
"feedback_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
},
"restore_version": 2,
"review_token": "<string>",
"sender_profile_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"settings": {
"bcc_addresses": ["<string>"],
"cc_addresses": ["<string>"],
"continuous_enrolment": True,
"email_approval_mode": "<string>",
"expected_updated_at": "2023-11-07T05:31:56Z",
"linkedin_approval_mode": "<string>",
"linkedin_check_max_seconds": 123,
"linkedin_check_min_seconds": 123,
"multithreading": {},
"name": "<string>",
"opportunity_values": {},
"opt_out_footer_text": "<string>",
"plain_text_only": True,
"sending_priority": "<string>",
"sending_window": {},
"spending_limit_tenths": 500000000
},
"training_revision": 123,
"training_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expected_updated_at: '2023-11-07T05:31:56Z',
agent: {
expected_version: 2,
config: {
cta_label: '<string>',
cta_url: '<string>',
goal: '',
language: 'auto',
message_prompts: {},
person_research: false,
personality_preset: 'direct',
personality_prompt: '',
reply_drafting: true,
reply_prompt: '',
translate: false
},
model_key: '<string>',
research: true
},
audience: {
table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
column_mapping: {
company_domain_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
email_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
linkedin_url_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
existing_contacts: 'keep',
expected_updated_at: '2023-11-07T05:31:56Z',
pause_if_running: false,
view_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
copy_from_sequence_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
expected_agent_version: 123,
graph: {
edges: [
{
branch: 'default',
from_step_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
to_step_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
expected_updated_at: '2023-11-07T05:31:56Z',
steps: [
{
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
agent_prompt_key: '<string>',
agent_subject: false,
authoring: 'written',
body_segments: [
{
column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
options: ['<string>'],
required: true,
text: ''
}
],
condition_window_days: 45,
position: 0,
prompt: '',
reply_to_step_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
requires_approval: false,
subject_segments: [
{
column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
options: ['<string>'],
required: true,
text: ''
}
],
wait_amount: 0,
wait_unit: 'days'
}
]
},
mapping: {
company_domain_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
email_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
linkedin_url_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
prompt_proposal: {
base_version: 2,
items: {},
feedback_cutoff: '2023-11-07T05:31:56Z',
feedback_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
},
restore_version: 2,
review_token: '<string>',
sender_profile_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
settings: {
bcc_addresses: ['<string>'],
cc_addresses: ['<string>'],
continuous_enrolment: true,
email_approval_mode: '<string>',
expected_updated_at: '2023-11-07T05:31:56Z',
linkedin_approval_mode: '<string>',
linkedin_check_max_seconds: 123,
linkedin_check_min_seconds: 123,
multithreading: {},
name: '<string>',
opportunity_values: {},
opt_out_footer_text: '<string>',
plain_text_only: true,
sending_priority: '<string>',
sending_window: {},
spending_limit_tenths: 500000000
},
training_revision: 123,
training_session_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/', 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}/changes/apply/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'expected_updated_at' => '2023-11-07T05:31:56Z',
'agent' => [
'expected_version' => 2,
'config' => [
'cta_label' => '<string>',
'cta_url' => '<string>',
'goal' => '',
'language' => 'auto',
'message_prompts' => [
],
'person_research' => false,
'personality_preset' => 'direct',
'personality_prompt' => '',
'reply_drafting' => true,
'reply_prompt' => '',
'translate' => false
],
'model_key' => '<string>',
'research' => true
],
'audience' => [
'table_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'column_mapping' => [
'company_domain_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'email_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'linkedin_url_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'existing_contacts' => 'keep',
'expected_updated_at' => '2023-11-07T05:31:56Z',
'pause_if_running' => false,
'view_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'copy_from_sequence_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'expected_agent_version' => 123,
'graph' => [
'edges' => [
[
'branch' => 'default',
'from_step_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'to_step_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'expected_updated_at' => '2023-11-07T05:31:56Z',
'steps' => [
[
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'agent_prompt_key' => '<string>',
'agent_subject' => false,
'authoring' => 'written',
'body_segments' => [
[
'column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'options' => [
'<string>'
],
'required' => true,
'text' => ''
]
],
'condition_window_days' => 45,
'position' => 0,
'prompt' => '',
'reply_to_step_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'requires_approval' => false,
'subject_segments' => [
[
'column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'options' => [
'<string>'
],
'required' => true,
'text' => ''
]
],
'wait_amount' => 0,
'wait_unit' => 'days'
]
]
],
'mapping' => [
'company_domain_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'email_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'linkedin_url_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'prompt_proposal' => [
'base_version' => 2,
'items' => [
],
'feedback_cutoff' => '2023-11-07T05:31:56Z',
'feedback_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'restore_version' => 2,
'review_token' => '<string>',
'sender_profile_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'settings' => [
'bcc_addresses' => [
'<string>'
],
'cc_addresses' => [
'<string>'
],
'continuous_enrolment' => true,
'email_approval_mode' => '<string>',
'expected_updated_at' => '2023-11-07T05:31:56Z',
'linkedin_approval_mode' => '<string>',
'linkedin_check_max_seconds' => 123,
'linkedin_check_min_seconds' => 123,
'multithreading' => [
],
'name' => '<string>',
'opportunity_values' => [
],
'opt_out_footer_text' => '<string>',
'plain_text_only' => true,
'sending_priority' => '<string>',
'sending_window' => [
],
'spending_limit_tenths' => 500000000
],
'training_revision' => 123,
'training_session_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/"
payload := strings.NewReader("{\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"agent\": {\n \"expected_version\": 2,\n \"config\": {\n \"cta_label\": \"<string>\",\n \"cta_url\": \"<string>\",\n \"goal\": \"\",\n \"language\": \"auto\",\n \"message_prompts\": {},\n \"person_research\": false,\n \"personality_preset\": \"direct\",\n \"personality_prompt\": \"\",\n \"reply_drafting\": true,\n \"reply_prompt\": \"\",\n \"translate\": false\n },\n \"model_key\": \"<string>\",\n \"research\": true\n },\n \"audience\": {\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"column_mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"existing_contacts\": \"keep\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"pause_if_running\": false,\n \"view_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"copy_from_sequence_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expected_agent_version\": 123,\n \"graph\": {\n \"edges\": [\n {\n \"branch\": \"default\",\n \"from_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"steps\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_prompt_key\": \"<string>\",\n \"agent_subject\": false,\n \"authoring\": \"written\",\n \"body_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"condition_window_days\": 45,\n \"position\": 0,\n \"prompt\": \"\",\n \"reply_to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"requires_approval\": false,\n \"subject_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"wait_amount\": 0,\n \"wait_unit\": \"days\"\n }\n ]\n },\n \"mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"prompt_proposal\": {\n \"base_version\": 2,\n \"items\": {},\n \"feedback_cutoff\": \"2023-11-07T05:31:56Z\",\n \"feedback_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n },\n \"restore_version\": 2,\n \"review_token\": \"<string>\",\n \"sender_profile_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"settings\": {\n \"bcc_addresses\": [\n \"<string>\"\n ],\n \"cc_addresses\": [\n \"<string>\"\n ],\n \"continuous_enrolment\": true,\n \"email_approval_mode\": \"<string>\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"linkedin_approval_mode\": \"<string>\",\n \"linkedin_check_max_seconds\": 123,\n \"linkedin_check_min_seconds\": 123,\n \"multithreading\": {},\n \"name\": \"<string>\",\n \"opportunity_values\": {},\n \"opt_out_footer_text\": \"<string>\",\n \"plain_text_only\": true,\n \"sending_priority\": \"<string>\",\n \"sending_window\": {},\n \"spending_limit_tenths\": 500000000\n },\n \"training_revision\": 123,\n \"training_session_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"agent\": {\n \"expected_version\": 2,\n \"config\": {\n \"cta_label\": \"<string>\",\n \"cta_url\": \"<string>\",\n \"goal\": \"\",\n \"language\": \"auto\",\n \"message_prompts\": {},\n \"person_research\": false,\n \"personality_preset\": \"direct\",\n \"personality_prompt\": \"\",\n \"reply_drafting\": true,\n \"reply_prompt\": \"\",\n \"translate\": false\n },\n \"model_key\": \"<string>\",\n \"research\": true\n },\n \"audience\": {\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"column_mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"existing_contacts\": \"keep\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"pause_if_running\": false,\n \"view_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"copy_from_sequence_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expected_agent_version\": 123,\n \"graph\": {\n \"edges\": [\n {\n \"branch\": \"default\",\n \"from_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"steps\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_prompt_key\": \"<string>\",\n \"agent_subject\": false,\n \"authoring\": \"written\",\n \"body_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"condition_window_days\": 45,\n \"position\": 0,\n \"prompt\": \"\",\n \"reply_to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"requires_approval\": false,\n \"subject_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"wait_amount\": 0,\n \"wait_unit\": \"days\"\n }\n ]\n },\n \"mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"prompt_proposal\": {\n \"base_version\": 2,\n \"items\": {},\n \"feedback_cutoff\": \"2023-11-07T05:31:56Z\",\n \"feedback_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n },\n \"restore_version\": 2,\n \"review_token\": \"<string>\",\n \"sender_profile_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"settings\": {\n \"bcc_addresses\": [\n \"<string>\"\n ],\n \"cc_addresses\": [\n \"<string>\"\n ],\n \"continuous_enrolment\": true,\n \"email_approval_mode\": \"<string>\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"linkedin_approval_mode\": \"<string>\",\n \"linkedin_check_max_seconds\": 123,\n \"linkedin_check_min_seconds\": 123,\n \"multithreading\": {},\n \"name\": \"<string>\",\n \"opportunity_values\": {},\n \"opt_out_footer_text\": \"<string>\",\n \"plain_text_only\": true,\n \"sending_priority\": \"<string>\",\n \"sending_window\": {},\n \"spending_limit_tenths\": 500000000\n },\n \"training_revision\": 123,\n \"training_session_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"agent\": {\n \"expected_version\": 2,\n \"config\": {\n \"cta_label\": \"<string>\",\n \"cta_url\": \"<string>\",\n \"goal\": \"\",\n \"language\": \"auto\",\n \"message_prompts\": {},\n \"person_research\": false,\n \"personality_preset\": \"direct\",\n \"personality_prompt\": \"\",\n \"reply_drafting\": true,\n \"reply_prompt\": \"\",\n \"translate\": false\n },\n \"model_key\": \"<string>\",\n \"research\": true\n },\n \"audience\": {\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"column_mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"existing_contacts\": \"keep\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"pause_if_running\": false,\n \"view_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"copy_from_sequence_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expected_agent_version\": 123,\n \"graph\": {\n \"edges\": [\n {\n \"branch\": \"default\",\n \"from_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"steps\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_prompt_key\": \"<string>\",\n \"agent_subject\": false,\n \"authoring\": \"written\",\n \"body_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"condition_window_days\": 45,\n \"position\": 0,\n \"prompt\": \"\",\n \"reply_to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"requires_approval\": false,\n \"subject_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"wait_amount\": 0,\n \"wait_unit\": \"days\"\n }\n ]\n },\n \"mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"prompt_proposal\": {\n \"base_version\": 2,\n \"items\": {},\n \"feedback_cutoff\": \"2023-11-07T05:31:56Z\",\n \"feedback_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n },\n \"restore_version\": 2,\n \"review_token\": \"<string>\",\n \"sender_profile_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"settings\": {\n \"bcc_addresses\": [\n \"<string>\"\n ],\n \"cc_addresses\": [\n \"<string>\"\n ],\n \"continuous_enrolment\": true,\n \"email_approval_mode\": \"<string>\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"linkedin_approval_mode\": \"<string>\",\n \"linkedin_check_max_seconds\": 123,\n \"linkedin_check_min_seconds\": 123,\n \"multithreading\": {},\n \"name\": \"<string>\",\n \"opportunity_values\": {},\n \"opt_out_footer_text\": \"<string>\",\n \"plain_text_only\": true,\n \"sending_priority\": \"<string>\",\n \"sending_window\": {},\n \"spending_limit_tenths\": 500000000\n },\n \"training_revision\": 123,\n \"training_session_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"audience_table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"audience_view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"column_mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"created_at": "2023-11-07T05:31:56Z",
"edges": [
{
"branch": "default",
"from_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"launched_at": "2023-11-07T05:31:56Z",
"multithreading": {},
"name": "<string>",
"opt_out_footer_text": "<string>",
"pause_reason": "<string>",
"sending_window": {},
"status": "draft",
"status_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_count": 123,
"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",
"options": [
"<string>"
],
"required": true,
"text": ""
}
],
"condition_kind": "has_email",
"condition_window_days": 45,
"position": 0,
"prompt": "",
"reply_to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requires_approval": false,
"subject_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": [
"<string>"
],
"required": true,
"text": ""
}
],
"wait_amount": 0,
"wait_unit": "days"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"bcc_addresses": [
"<string>"
],
"cc_addresses": [
"<string>"
],
"connection_requests_sent": 123,
"connections_accepted": 123,
"contacts_added": 123,
"contacts_failed": 123,
"contacts_finished": 123,
"contacts_in_progress": 123,
"continuous_enrolment": false,
"email_approval_mode": "<string>",
"emails_sent": 123,
"last_synced_at": "2023-11-07T05:31:56Z",
"linkedin_approval_mode": "<string>",
"linkedin_check_max_seconds": 123,
"linkedin_check_min_seconds": 123,
"linkedin_messages_sent": 123,
"opportunity_values": {},
"outbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"plain_text_only": true,
"positive": 123,
"positive_rate": 123,
"replies": 123,
"reply_rate": 123,
"sender_profile_names": [
"<string>"
],
"senders_ready": true,
"sending_priority": "new_contacts",
"spending_limit_tenths": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Apply the reviewed changes atomically
curl --request POST \
--url https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"expected_updated_at": "2023-11-07T05:31:56Z",
"agent": {
"expected_version": 2,
"config": {
"cta_label": "<string>",
"cta_url": "<string>",
"goal": "",
"language": "auto",
"message_prompts": {},
"person_research": false,
"personality_preset": "direct",
"personality_prompt": "",
"reply_drafting": true,
"reply_prompt": "",
"translate": false
},
"model_key": "<string>",
"research": true
},
"audience": {
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"column_mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"existing_contacts": "keep",
"expected_updated_at": "2023-11-07T05:31:56Z",
"pause_if_running": false,
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"copy_from_sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expected_agent_version": 123,
"graph": {
"edges": [
{
"branch": "default",
"from_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"expected_updated_at": "2023-11-07T05:31:56Z",
"steps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_prompt_key": "<string>",
"agent_subject": false,
"authoring": "written",
"body_segments": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": [
"<string>"
],
"required": true,
"text": ""
}
],
"condition_window_days": 45,
"position": 0,
"prompt": "",
"reply_to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requires_approval": false,
"subject_segments": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": [
"<string>"
],
"required": true,
"text": ""
}
],
"wait_amount": 0,
"wait_unit": "days"
}
]
},
"mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"prompt_proposal": {
"base_version": 2,
"items": {},
"feedback_cutoff": "2023-11-07T05:31:56Z",
"feedback_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
},
"restore_version": 2,
"review_token": "<string>",
"sender_profile_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"settings": {
"bcc_addresses": [
"<string>"
],
"cc_addresses": [
"<string>"
],
"continuous_enrolment": true,
"email_approval_mode": "<string>",
"expected_updated_at": "2023-11-07T05:31:56Z",
"linkedin_approval_mode": "<string>",
"linkedin_check_max_seconds": 123,
"linkedin_check_min_seconds": 123,
"multithreading": {},
"name": "<string>",
"opportunity_values": {},
"opt_out_footer_text": "<string>",
"plain_text_only": true,
"sending_priority": "<string>",
"sending_window": {},
"spending_limit_tenths": 500000000
},
"training_revision": 123,
"training_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/"
payload = {
"expected_updated_at": "2023-11-07T05:31:56Z",
"agent": {
"expected_version": 2,
"config": {
"cta_label": "<string>",
"cta_url": "<string>",
"goal": "",
"language": "auto",
"message_prompts": {},
"person_research": False,
"personality_preset": "direct",
"personality_prompt": "",
"reply_drafting": True,
"reply_prompt": "",
"translate": False
},
"model_key": "<string>",
"research": True
},
"audience": {
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"column_mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"existing_contacts": "keep",
"expected_updated_at": "2023-11-07T05:31:56Z",
"pause_if_running": False,
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"copy_from_sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"expected_agent_version": 123,
"graph": {
"edges": [
{
"branch": "default",
"from_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"expected_updated_at": "2023-11-07T05:31:56Z",
"steps": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_prompt_key": "<string>",
"agent_subject": False,
"authoring": "written",
"body_segments": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": ["<string>"],
"required": True,
"text": ""
}
],
"condition_window_days": 45,
"position": 0,
"prompt": "",
"reply_to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requires_approval": False,
"subject_segments": [
{
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": ["<string>"],
"required": True,
"text": ""
}
],
"wait_amount": 0,
"wait_unit": "days"
}
]
},
"mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"prompt_proposal": {
"base_version": 2,
"items": {},
"feedback_cutoff": "2023-11-07T05:31:56Z",
"feedback_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
},
"restore_version": 2,
"review_token": "<string>",
"sender_profile_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"settings": {
"bcc_addresses": ["<string>"],
"cc_addresses": ["<string>"],
"continuous_enrolment": True,
"email_approval_mode": "<string>",
"expected_updated_at": "2023-11-07T05:31:56Z",
"linkedin_approval_mode": "<string>",
"linkedin_check_max_seconds": 123,
"linkedin_check_min_seconds": 123,
"multithreading": {},
"name": "<string>",
"opportunity_values": {},
"opt_out_footer_text": "<string>",
"plain_text_only": True,
"sending_priority": "<string>",
"sending_window": {},
"spending_limit_tenths": 500000000
},
"training_revision": 123,
"training_session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expected_updated_at: '2023-11-07T05:31:56Z',
agent: {
expected_version: 2,
config: {
cta_label: '<string>',
cta_url: '<string>',
goal: '',
language: 'auto',
message_prompts: {},
person_research: false,
personality_preset: 'direct',
personality_prompt: '',
reply_drafting: true,
reply_prompt: '',
translate: false
},
model_key: '<string>',
research: true
},
audience: {
table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
column_mapping: {
company_domain_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
email_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
linkedin_url_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
existing_contacts: 'keep',
expected_updated_at: '2023-11-07T05:31:56Z',
pause_if_running: false,
view_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
copy_from_sequence_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
expected_agent_version: 123,
graph: {
edges: [
{
branch: 'default',
from_step_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
to_step_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
expected_updated_at: '2023-11-07T05:31:56Z',
steps: [
{
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
agent_prompt_key: '<string>',
agent_subject: false,
authoring: 'written',
body_segments: [
{
column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
options: ['<string>'],
required: true,
text: ''
}
],
condition_window_days: 45,
position: 0,
prompt: '',
reply_to_step_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
requires_approval: false,
subject_segments: [
{
column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
options: ['<string>'],
required: true,
text: ''
}
],
wait_amount: 0,
wait_unit: 'days'
}
]
},
mapping: {
company_domain_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
email_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
linkedin_url_column_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
},
prompt_proposal: {
base_version: 2,
items: {},
feedback_cutoff: '2023-11-07T05:31:56Z',
feedback_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
},
restore_version: 2,
review_token: '<string>',
sender_profile_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
settings: {
bcc_addresses: ['<string>'],
cc_addresses: ['<string>'],
continuous_enrolment: true,
email_approval_mode: '<string>',
expected_updated_at: '2023-11-07T05:31:56Z',
linkedin_approval_mode: '<string>',
linkedin_check_max_seconds: 123,
linkedin_check_min_seconds: 123,
multithreading: {},
name: '<string>',
opportunity_values: {},
opt_out_footer_text: '<string>',
plain_text_only: true,
sending_priority: '<string>',
sending_window: {},
spending_limit_tenths: 500000000
},
training_revision: 123,
training_session_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/', 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}/changes/apply/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'expected_updated_at' => '2023-11-07T05:31:56Z',
'agent' => [
'expected_version' => 2,
'config' => [
'cta_label' => '<string>',
'cta_url' => '<string>',
'goal' => '',
'language' => 'auto',
'message_prompts' => [
],
'person_research' => false,
'personality_preset' => 'direct',
'personality_prompt' => '',
'reply_drafting' => true,
'reply_prompt' => '',
'translate' => false
],
'model_key' => '<string>',
'research' => true
],
'audience' => [
'table_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'column_mapping' => [
'company_domain_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'email_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'linkedin_url_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'existing_contacts' => 'keep',
'expected_updated_at' => '2023-11-07T05:31:56Z',
'pause_if_running' => false,
'view_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'copy_from_sequence_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'expected_agent_version' => 123,
'graph' => [
'edges' => [
[
'branch' => 'default',
'from_step_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'to_step_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'expected_updated_at' => '2023-11-07T05:31:56Z',
'steps' => [
[
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'agent_prompt_key' => '<string>',
'agent_subject' => false,
'authoring' => 'written',
'body_segments' => [
[
'column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'options' => [
'<string>'
],
'required' => true,
'text' => ''
]
],
'condition_window_days' => 45,
'position' => 0,
'prompt' => '',
'reply_to_step_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'requires_approval' => false,
'subject_segments' => [
[
'column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'options' => [
'<string>'
],
'required' => true,
'text' => ''
]
],
'wait_amount' => 0,
'wait_unit' => 'days'
]
]
],
'mapping' => [
'company_domain_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'email_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'linkedin_url_column_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'prompt_proposal' => [
'base_version' => 2,
'items' => [
],
'feedback_cutoff' => '2023-11-07T05:31:56Z',
'feedback_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
],
'restore_version' => 2,
'review_token' => '<string>',
'sender_profile_ids' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'settings' => [
'bcc_addresses' => [
'<string>'
],
'cc_addresses' => [
'<string>'
],
'continuous_enrolment' => true,
'email_approval_mode' => '<string>',
'expected_updated_at' => '2023-11-07T05:31:56Z',
'linkedin_approval_mode' => '<string>',
'linkedin_check_max_seconds' => 123,
'linkedin_check_min_seconds' => 123,
'multithreading' => [
],
'name' => '<string>',
'opportunity_values' => [
],
'opt_out_footer_text' => '<string>',
'plain_text_only' => true,
'sending_priority' => '<string>',
'sending_window' => [
],
'spending_limit_tenths' => 500000000
],
'training_revision' => 123,
'training_session_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/"
payload := strings.NewReader("{\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"agent\": {\n \"expected_version\": 2,\n \"config\": {\n \"cta_label\": \"<string>\",\n \"cta_url\": \"<string>\",\n \"goal\": \"\",\n \"language\": \"auto\",\n \"message_prompts\": {},\n \"person_research\": false,\n \"personality_preset\": \"direct\",\n \"personality_prompt\": \"\",\n \"reply_drafting\": true,\n \"reply_prompt\": \"\",\n \"translate\": false\n },\n \"model_key\": \"<string>\",\n \"research\": true\n },\n \"audience\": {\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"column_mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"existing_contacts\": \"keep\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"pause_if_running\": false,\n \"view_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"copy_from_sequence_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expected_agent_version\": 123,\n \"graph\": {\n \"edges\": [\n {\n \"branch\": \"default\",\n \"from_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"steps\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_prompt_key\": \"<string>\",\n \"agent_subject\": false,\n \"authoring\": \"written\",\n \"body_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"condition_window_days\": 45,\n \"position\": 0,\n \"prompt\": \"\",\n \"reply_to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"requires_approval\": false,\n \"subject_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"wait_amount\": 0,\n \"wait_unit\": \"days\"\n }\n ]\n },\n \"mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"prompt_proposal\": {\n \"base_version\": 2,\n \"items\": {},\n \"feedback_cutoff\": \"2023-11-07T05:31:56Z\",\n \"feedback_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n },\n \"restore_version\": 2,\n \"review_token\": \"<string>\",\n \"sender_profile_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"settings\": {\n \"bcc_addresses\": [\n \"<string>\"\n ],\n \"cc_addresses\": [\n \"<string>\"\n ],\n \"continuous_enrolment\": true,\n \"email_approval_mode\": \"<string>\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"linkedin_approval_mode\": \"<string>\",\n \"linkedin_check_max_seconds\": 123,\n \"linkedin_check_min_seconds\": 123,\n \"multithreading\": {},\n \"name\": \"<string>\",\n \"opportunity_values\": {},\n \"opt_out_footer_text\": \"<string>\",\n \"plain_text_only\": true,\n \"sending_priority\": \"<string>\",\n \"sending_window\": {},\n \"spending_limit_tenths\": 500000000\n },\n \"training_revision\": 123,\n \"training_session_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"agent\": {\n \"expected_version\": 2,\n \"config\": {\n \"cta_label\": \"<string>\",\n \"cta_url\": \"<string>\",\n \"goal\": \"\",\n \"language\": \"auto\",\n \"message_prompts\": {},\n \"person_research\": false,\n \"personality_preset\": \"direct\",\n \"personality_prompt\": \"\",\n \"reply_drafting\": true,\n \"reply_prompt\": \"\",\n \"translate\": false\n },\n \"model_key\": \"<string>\",\n \"research\": true\n },\n \"audience\": {\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"column_mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"existing_contacts\": \"keep\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"pause_if_running\": false,\n \"view_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"copy_from_sequence_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expected_agent_version\": 123,\n \"graph\": {\n \"edges\": [\n {\n \"branch\": \"default\",\n \"from_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"steps\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_prompt_key\": \"<string>\",\n \"agent_subject\": false,\n \"authoring\": \"written\",\n \"body_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"condition_window_days\": 45,\n \"position\": 0,\n \"prompt\": \"\",\n \"reply_to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"requires_approval\": false,\n \"subject_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"wait_amount\": 0,\n \"wait_unit\": \"days\"\n }\n ]\n },\n \"mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"prompt_proposal\": {\n \"base_version\": 2,\n \"items\": {},\n \"feedback_cutoff\": \"2023-11-07T05:31:56Z\",\n \"feedback_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n },\n \"restore_version\": 2,\n \"review_token\": \"<string>\",\n \"sender_profile_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"settings\": {\n \"bcc_addresses\": [\n \"<string>\"\n ],\n \"cc_addresses\": [\n \"<string>\"\n ],\n \"continuous_enrolment\": true,\n \"email_approval_mode\": \"<string>\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"linkedin_approval_mode\": \"<string>\",\n \"linkedin_check_max_seconds\": 123,\n \"linkedin_check_min_seconds\": 123,\n \"multithreading\": {},\n \"name\": \"<string>\",\n \"opportunity_values\": {},\n \"opt_out_footer_text\": \"<string>\",\n \"plain_text_only\": true,\n \"sending_priority\": \"<string>\",\n \"sending_window\": {},\n \"spending_limit_tenths\": 500000000\n },\n \"training_revision\": 123,\n \"training_session_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sequences/{sequence_id}/changes/apply/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"agent\": {\n \"expected_version\": 2,\n \"config\": {\n \"cta_label\": \"<string>\",\n \"cta_url\": \"<string>\",\n \"goal\": \"\",\n \"language\": \"auto\",\n \"message_prompts\": {},\n \"person_research\": false,\n \"personality_preset\": \"direct\",\n \"personality_prompt\": \"\",\n \"reply_drafting\": true,\n \"reply_prompt\": \"\",\n \"translate\": false\n },\n \"model_key\": \"<string>\",\n \"research\": true\n },\n \"audience\": {\n \"table_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"column_mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"existing_contacts\": \"keep\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"pause_if_running\": false,\n \"view_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"copy_from_sequence_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"expected_agent_version\": 123,\n \"graph\": {\n \"edges\": [\n {\n \"branch\": \"default\",\n \"from_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ],\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"steps\": [\n {\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"agent_prompt_key\": \"<string>\",\n \"agent_subject\": false,\n \"authoring\": \"written\",\n \"body_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"condition_window_days\": 45,\n \"position\": 0,\n \"prompt\": \"\",\n \"reply_to_step_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"requires_approval\": false,\n \"subject_segments\": [\n {\n \"column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"options\": [\n \"<string>\"\n ],\n \"required\": true,\n \"text\": \"\"\n }\n ],\n \"wait_amount\": 0,\n \"wait_unit\": \"days\"\n }\n ]\n },\n \"mapping\": {\n \"company_domain_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"email_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linkedin_url_column_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n },\n \"prompt_proposal\": {\n \"base_version\": 2,\n \"items\": {},\n \"feedback_cutoff\": \"2023-11-07T05:31:56Z\",\n \"feedback_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ]\n },\n \"restore_version\": 2,\n \"review_token\": \"<string>\",\n \"sender_profile_ids\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"settings\": {\n \"bcc_addresses\": [\n \"<string>\"\n ],\n \"cc_addresses\": [\n \"<string>\"\n ],\n \"continuous_enrolment\": true,\n \"email_approval_mode\": \"<string>\",\n \"expected_updated_at\": \"2023-11-07T05:31:56Z\",\n \"linkedin_approval_mode\": \"<string>\",\n \"linkedin_check_max_seconds\": 123,\n \"linkedin_check_min_seconds\": 123,\n \"multithreading\": {},\n \"name\": \"<string>\",\n \"opportunity_values\": {},\n \"opt_out_footer_text\": \"<string>\",\n \"plain_text_only\": true,\n \"sending_priority\": \"<string>\",\n \"sending_window\": {},\n \"spending_limit_tenths\": 500000000\n },\n \"training_revision\": 123,\n \"training_session_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}"
response = http.request(request)
puts response.read_body{
"audience_table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"audience_view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"column_mapping": {
"company_domain_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linkedin_url_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"created_at": "2023-11-07T05:31:56Z",
"edges": [
{
"branch": "default",
"from_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"launched_at": "2023-11-07T05:31:56Z",
"multithreading": {},
"name": "<string>",
"opt_out_footer_text": "<string>",
"pause_reason": "<string>",
"sending_window": {},
"status": "draft",
"status_column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"step_count": 123,
"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",
"options": [
"<string>"
],
"required": true,
"text": ""
}
],
"condition_kind": "has_email",
"condition_window_days": 45,
"position": 0,
"prompt": "",
"reply_to_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"requires_approval": false,
"subject_segments": [
{
"kind": "text",
"builtin": "sender_first_name",
"column_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"options": [
"<string>"
],
"required": true,
"text": ""
}
],
"wait_amount": 0,
"wait_unit": "days"
}
],
"updated_at": "2023-11-07T05:31:56Z",
"bcc_addresses": [
"<string>"
],
"cc_addresses": [
"<string>"
],
"connection_requests_sent": 123,
"connections_accepted": 123,
"contacts_added": 123,
"contacts_failed": 123,
"contacts_finished": 123,
"contacts_in_progress": 123,
"continuous_enrolment": false,
"email_approval_mode": "<string>",
"emails_sent": 123,
"last_synced_at": "2023-11-07T05:31:56Z",
"linkedin_approval_mode": "<string>",
"linkedin_check_max_seconds": 123,
"linkedin_check_min_seconds": 123,
"linkedin_messages_sent": 123,
"opportunity_values": {},
"outbound_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"plain_text_only": true,
"positive": 123,
"positive_rate": 123,
"replies": 123,
"reply_rate": 123,
"sender_profile_names": [
"<string>"
],
"senders_ready": true,
"sending_priority": "new_contacts",
"spending_limit_tenths": 123
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Path Parameters
Body
A change to an agent, sent whole against the version it was read at.
The configuration travels as one object rather than as fifteen optional
fields: the Agent tab reads the agent, edits it and sends it back, and
expected_version makes two people editing at once a 409 rather than a
silent overwrite.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Which audience columns carry a meaning, all detected from the table.
One field per channel (email, LinkedIn) plus the company domain the
coverage line reports on. Leave the whole object out when binding an
audience and the columns are detected server-side. Send it only to correct
a detection: a first name, a company or a last-contacted date is no longer
part of this — every column on the table is already addressable as a
{{Column name}} variable.
Show child attributes
Show child attributes
Accept a proposal, writing the prompts as the agent's next version.
Show child attributes
Show child attributes
x >= 1Show child attributes
Show child attributes
Response
Successful Response
Which audience columns carry a meaning, all detected from the table.
One field per channel (email, LinkedIn) plus the company domain the
coverage line reports on. Leave the whole object out when binding an
audience and the columns are detected server-side. Send it only to correct
a detection: a first name, a company or a last-contacted date is no longer
part of this — every column on the table is already addressable as a
{{Column name}} variable.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Lifecycle of a sequence.
DRAFT until launch; RUNNING sequences are locked against structural edits (pause → edit → resume); PAUSED stops scheduling while leaving every enrolment exactly where it is; COMPLETED is terminal.
draft, running, paused, completed Show child attributes
Show child attributes
SEQ-21: blind copies on every email this sequence sends.
SEQ-21: addresses copied on every email this sequence sends.
SEQ-06: invitations from this sequence confirmed accepted. With connection_requests_sent this yields the acceptance rate.
§21 rollup, list reads only. None when the rollup has never run for this org — show a zero state, not a fake 0.
TRUE keeps the audience live: rows added to the table later enrol on their own, and rows that leave it stop. FALSE (the default for a new sequence) freezes the audience after launch; Add to sequence still adds rows to it by hand.
manual requires approval; confident adds approval for uncertain AI-written emails; null follows the sender. There is no value meaning 'send automatically': a sequence can only add an approval.
§20: when the audience-enrolment diff last completed. None until the first sync (launch runs one inline) — the Audience tab shows this plus a manual trigger, never a background job the user cannot see.
manual requires approval; confident adds approval for uncertain AI-written LinkedIn steps; null follows the sender. There is no value meaning 'send automatically': a sequence can only add an approval.
Retired. Acceptance checks now use the service-managed interval.
Retired. Acceptance checks now use the service-managed interval.
SEQ-23: dollars per outcome label; None = tracking off.
Show child attributes
Show child attributes
The sequence's outbound agent: the writer of every agent-written step and of its replies. Read and configure it under /outbound-agents/{id}/.
SEQ-16: TRUE (recommended) sends text-only with formatting marks stripped; FALSE sends a multipart/alternative with the marks as HTML.
Threads labelled positive (rollup, list reads only).
SEQ-06: distinct contacts who replied — reply_rate's numerator.
Only meaningful on list reads: the assigned sender profiles' names.
Only meaningful on list reads: False when the sequence has assigned sender profiles but none currently has a connected mailbox.
SEQ-20: who gets scarce capacity first — new_contacts or follow_ups.
Was this page helpful?