curl --request PUT \
--url https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/"
headers = {"X-API-Key": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/', 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}/rows/{record_id}/feedback/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
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}/rows/{record_id}/feedback/"
req, _ := http.NewRequest("PUT", 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.put("https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"body": "<string>",
"in_thread": true,
"missing_columns": [
"<string>"
],
"saved_learnings": 123,
"saved_learnings_for_all_sequences": 123,
"subject": "<string>",
"agent_written": false,
"approved": false,
"closing": {
"opt_out_footer": "<string>",
"signature": "<string>"
},
"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>"
}Mark one email the agent wrote for a contact Looks good
The Builder’s Looks good on the one step it shows. The email saved for this contact at this step becomes what sends to them, until the agent’s writing or the contact’s row changes, and the sequence’s Preview marks it Looks good. The contact’s other emails are left as they are. Spends nothing; marking an email whose mark still stands changes nothing on it. With message_id, the mark lands only on those words. A learning a Needs work left proposed on this contact is saved, and the answer counts it in saved_learnings; like any saved learning, it writes again the waiting messages that it reaches, in Tasks and waiting to send. Refused while that Needs work’s rewrite is still being written, or was refused, and, with rev, when the contact’s feedback session moved on since it was read. Refused too where the Builder offers no Looks good: a step a person writes, a person’s own words, a step already sent to the contact, or a real email the agent already wrote for them.
curl --request PUT \
--url https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/ \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/"
headers = {"X-API-Key": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/', 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}/rows/{record_id}/feedback/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
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}/rows/{record_id}/feedback/"
req, _ := http.NewRequest("PUT", 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.put("https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/sequences/{sequence_id}/steps/{step_id}/rows/{record_id}/feedback/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"body": "<string>",
"in_thread": true,
"missing_columns": [
"<string>"
],
"saved_learnings": 123,
"saved_learnings_for_all_sequences": 123,
"subject": "<string>",
"agent_written": false,
"approved": false,
"closing": {
"opt_out_footer": "<string>",
"signature": "<string>"
},
"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>"
}Path Parameters
Query Parameters
Response
Successful Response
The Builder's Looks good on one email, and the learning its Needs work proposed, saved.
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.
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?