Start the campaign anyway
curl --request POST \
--url https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/launch/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mailbox": "gmail"
}
'import requests
url = "https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/launch/"
payload = { "mailbox": "gmail" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mailbox: 'gmail'})
};
fetch('https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/launch/', 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}/launch/",
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([
'mailbox' => 'gmail'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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/onboarding-wizard/runs/{run_id}/launch/"
payload := strings.NewReader("{\n \"mailbox\": \"gmail\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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/onboarding-wizard/runs/{run_id}/launch/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mailbox\": \"gmail\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/launch/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mailbox\": \"gmail\"\n}"
response = http.request(request)
puts response.read_body{
"build_error": "<string>",
"claimed": true,
"context": {
"company_description": "<string>",
"ideal_buyer_personas": "<string>",
"ideal_customer_profile": "<string>",
"interest_signals": "<string>",
"pilot_offer": "<string>",
"social_proof": "<string>"
},
"dns_issue": "no_dmarc",
"domain": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"insights_error": "<string>",
"join_requested_at": "2023-11-07T05:31:56Z",
"launch_error": "<string>",
"launched_at": "2023-11-07T05:31:56Z",
"messages": [
{
"email_body": "<string>",
"email_subject": "<string>",
"label": "<string>",
"linkedin_body": "<string>",
"looks_good": true,
"record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "writing"
}
],
"outlook_available": true,
"people": [
{
"company": "<string>",
"email": "<string>",
"email_status": "valid",
"in_preview": true,
"linkedin_url": "<string>",
"name": "<string>",
"record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"researched": true,
"title": "<string>",
"why": "<string>"
}
],
"research": {
"error": "<string>",
"status": "pending",
"steps": [
{
"action": "<string>",
"detail": "",
"duration_ms": 123,
"observation": "",
"outcome": "completed",
"thought": "<string>"
}
]
},
"segment_index": 123,
"segments": [
{
"description": "<string>",
"index": 123,
"label": "<string>"
}
],
"sender_name": "<string>",
"sender_source": "about_page",
"sender_title": "<string>",
"sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stage": "researching",
"stalled": true
}{
"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
Start the campaign anyway
Starts the person’s own campaign although colleagues have a workspace. Refused while the sign-in has not allowed mail (the claim’s mail_grant_needed).
POST
/
onboarding-wizard
/
runs
/
{run_id}
/
launch
/
Start the campaign anyway
curl --request POST \
--url https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/launch/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"mailbox": "gmail"
}
'import requests
url = "https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/launch/"
payload = { "mailbox": "gmail" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({mailbox: 'gmail'})
};
fetch('https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/launch/', 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}/launch/",
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([
'mailbox' => 'gmail'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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/onboarding-wizard/runs/{run_id}/launch/"
payload := strings.NewReader("{\n \"mailbox\": \"gmail\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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/onboarding-wizard/runs/{run_id}/launch/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"mailbox\": \"gmail\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/onboarding-wizard/runs/{run_id}/launch/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"mailbox\": \"gmail\"\n}"
response = http.request(request)
puts response.read_body{
"build_error": "<string>",
"claimed": true,
"context": {
"company_description": "<string>",
"ideal_buyer_personas": "<string>",
"ideal_customer_profile": "<string>",
"interest_signals": "<string>",
"pilot_offer": "<string>",
"social_proof": "<string>"
},
"dns_issue": "no_dmarc",
"domain": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"insights_error": "<string>",
"join_requested_at": "2023-11-07T05:31:56Z",
"launch_error": "<string>",
"launched_at": "2023-11-07T05:31:56Z",
"messages": [
{
"email_body": "<string>",
"email_subject": "<string>",
"label": "<string>",
"linkedin_body": "<string>",
"looks_good": true,
"record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "writing"
}
],
"outlook_available": true,
"people": [
{
"company": "<string>",
"email": "<string>",
"email_status": "valid",
"in_preview": true,
"linkedin_url": "<string>",
"name": "<string>",
"record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"researched": true,
"title": "<string>",
"why": "<string>"
}
],
"research": {
"error": "<string>",
"status": "pending",
"steps": [
{
"action": "<string>",
"detail": "",
"duration_ms": 123,
"observation": "",
"outcome": "completed",
"thought": "<string>"
}
]
},
"segment_index": 123,
"segments": [
{
"description": "<string>",
"index": 123,
"label": "<string>"
}
],
"sender_name": "<string>",
"sender_source": "about_page",
"sender_title": "<string>",
"sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stage": "researching",
"stalled": true
}{
"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>"
}Authorizations
HTTPBearerAPIKeyHeader
Body
application/json
Response
Successful Response
A preview: everything the wizard's page shows.
Where a run stands, derived from what it holds. Never stored.
The frontend's five steps map onto these: researching and segments are step 1 and 2, finding is step 3, and writing is step 4 from the first message written (the page reads the messages themselves to tell).
Available options:
researching, research_failed, segments, finding, finding_failed, writing, launched Was this page helpful?