curl --request POST \
--url https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/', 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/auto-sequence-drafts/{draft_id}/resume/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/auto-sequence-drafts/{draft_id}/resume/"
req, _ := http.NewRequest("POST", 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.post("https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"approaches": [
{
"best": true,
"facts": [
{
"asked": 123,
"found": 123,
"key": "open_sales_roles",
"name": "<string>"
}
],
"index": 123,
"most_tenths": 123,
"tag": "<string>",
"title": "<string>",
"why": "<string>",
"plan": {
"can_start": 123,
"columns": [
{
"added": true,
"found": 123,
"most_tenths": 123,
"name": "<string>",
"required": true,
"source": "column",
"tested": 123
}
],
"most_tenths": 123,
"reach": 123,
"total_most_tenths": 123,
"usual_tenths": 123
},
"written_slots": [
"<string>"
]
}
],
"asks_left": 123,
"channel": "email",
"contacts": [
{
"company": "<string>",
"name": "<string>",
"record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"error": "<string>",
"goal": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": [
{
"arm": "connected",
"day": 123,
"kind": "email",
"slot": "<string>",
"title": "<string>"
}
],
"pick": 123,
"read_stage": "started",
"sample_count": 123,
"sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "prepared",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template_key": "<string>",
"template_name": "<string>",
"error_type": "<string>",
"facts_not_found": [
"<string>"
],
"planner": false,
"previews_pending": false,
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Go on with a read prepared before Next
Resume a draft started with prepare once the person presses Next: it moves from prepared to reading and goes on from the rows and facts it read, suggesting and writing the approaches. Counted against the day’s reads from now. A draft resumed already is answered as it is. Refused with a 422 draft_moved_on when the prepared read ended unused (start a new draft), or daily_allowance_used.
curl --request POST \
--url https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/', 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/auto-sequence-drafts/{draft_id}/resume/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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/auto-sequence-drafts/{draft_id}/resume/"
req, _ := http.NewRequest("POST", 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.post("https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/auto-sequence-drafts/{draft_id}/resume/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"approaches": [
{
"best": true,
"facts": [
{
"asked": 123,
"found": 123,
"key": "open_sales_roles",
"name": "<string>"
}
],
"index": 123,
"most_tenths": 123,
"tag": "<string>",
"title": "<string>",
"why": "<string>",
"plan": {
"can_start": 123,
"columns": [
{
"added": true,
"found": 123,
"most_tenths": 123,
"name": "<string>",
"required": true,
"source": "column",
"tested": 123
}
],
"most_tenths": 123,
"reach": 123,
"total_most_tenths": 123,
"usual_tenths": 123
},
"written_slots": [
"<string>"
]
}
],
"asks_left": 123,
"channel": "email",
"contacts": [
{
"company": "<string>",
"name": "<string>",
"record_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"error": "<string>",
"goal": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"path": [
{
"arm": "connected",
"day": 123,
"kind": "email",
"slot": "<string>",
"title": "<string>"
}
],
"pick": 123,
"read_stage": "started",
"sample_count": 123,
"sequence_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "prepared",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template_key": "<string>",
"template_name": "<string>",
"error_type": "<string>",
"facts_not_found": [
"<string>"
],
"planner": false,
"previews_pending": false,
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"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
A run of the New flow as it stands. Read it until status leaves reading.
The last line of the reading screen that finished: started, context, rows, planned (the play planner's columns picked), or facts; approaches once a first read's cards show while their messages are written; previews once the preview people's facts are in too.
started, context, rows, planned, facts, approaches, previews reading while the table is read and the approaches written, then suggested; built once a pick is a sequence, launched, abandoned, or failed. A draft started with prepare is prepared until confirmed, or unused.
prepared, unused, reading, suggested, built, launched, abandoned, failed Was this page helpful?