curl --request POST \
--url https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/applied/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"query": {},
"said": "<string>",
"alternative": {
"label": "<string>",
"query": {}
},
"asked": "<string>",
"chosen_label": ""
}
'import requests
url = "https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/applied/"
payload = {
"query": {},
"said": "<string>",
"alternative": {
"label": "<string>",
"query": {}
},
"asked": "<string>",
"chosen_label": ""
}
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({
query: {},
said: '<string>',
alternative: {label: '<string>', query: {}},
asked: '<string>',
chosen_label: ''
})
};
fetch('https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/applied/', 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/find-leads/assistant/conversations/{conversation_id}/applied/",
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([
'query' => [
],
'said' => '<string>',
'alternative' => [
'label' => '<string>',
'query' => [
]
],
'asked' => '<string>',
'chosen_label' => ''
]),
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/find-leads/assistant/conversations/{conversation_id}/applied/"
payload := strings.NewReader("{\n \"query\": {},\n \"said\": \"<string>\",\n \"alternative\": {\n \"label\": \"<string>\",\n \"query\": {}\n },\n \"asked\": \"<string>\",\n \"chosen_label\": \"\"\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/find-leads/assistant/conversations/{conversation_id}/applied/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": {},\n \"said\": \"<string>\",\n \"alternative\": {\n \"label\": \"<string>\",\n \"query\": {}\n },\n \"asked\": \"<string>\",\n \"chosen_label\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/applied/")
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 \"query\": {},\n \"said\": \"<string>\",\n \"alternative\": {\n \"label\": \"<string>\",\n \"query\": {}\n },\n \"asked\": \"<string>\",\n \"chosen_label\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"assistant_message": {
"content": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": {
"alternative": {
"label": "<string>",
"query": {}
},
"at_capacity": false,
"chosen_label": "",
"match_count": 123,
"nothing_found": false,
"other_search": "signals",
"query": {},
"question_options": [
"<string>"
],
"record_type": "people"
},
"role": "user",
"sequence": 123,
"state": "asking",
"status": "complete",
"steps": [
{
"action": "<string>",
"detail": "",
"duration_ms": 123,
"observation": "",
"outcome": "completed",
"thought": "<string>"
}
]
},
"user_message": {
"content": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": {
"alternative": {
"label": "<string>",
"query": {}
},
"at_capacity": false,
"chosen_label": "",
"match_count": 123,
"nothing_found": false,
"other_search": "signals",
"query": {},
"question_options": [
"<string>"
],
"record_type": "people"
},
"role": "user",
"sequence": 123,
"state": "asking",
"status": "complete",
"steps": [
{
"action": "<string>",
"detail": "",
"duration_ms": 123,
"observation": "",
"outcome": "completed",
"thought": "<string>"
}
]
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Record a search applied without the AI Assistant
Record filters the page applied itself (a Try idea, a starter card, a Switch to tap) as a turn, so the conversation keeps them. No model runs and nothing counts against today’s limit. Saved as a ready reply, so it is the conversation’s latest search. Send asked to record a user message before it, or leave it out to record the reply alone. A Switch to tap sends the reading it left as alternative, and the name of the one it chose as chosen_label, so the reply offers the way back.
curl --request POST \
--url https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/applied/ \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"query": {},
"said": "<string>",
"alternative": {
"label": "<string>",
"query": {}
},
"asked": "<string>",
"chosen_label": ""
}
'import requests
url = "https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/applied/"
payload = {
"query": {},
"said": "<string>",
"alternative": {
"label": "<string>",
"query": {}
},
"asked": "<string>",
"chosen_label": ""
}
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({
query: {},
said: '<string>',
alternative: {label: '<string>', query: {}},
asked: '<string>',
chosen_label: ''
})
};
fetch('https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/applied/', 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/find-leads/assistant/conversations/{conversation_id}/applied/",
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([
'query' => [
],
'said' => '<string>',
'alternative' => [
'label' => '<string>',
'query' => [
]
],
'asked' => '<string>',
'chosen_label' => ''
]),
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/find-leads/assistant/conversations/{conversation_id}/applied/"
payload := strings.NewReader("{\n \"query\": {},\n \"said\": \"<string>\",\n \"alternative\": {\n \"label\": \"<string>\",\n \"query\": {}\n },\n \"asked\": \"<string>\",\n \"chosen_label\": \"\"\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/find-leads/assistant/conversations/{conversation_id}/applied/")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"query\": {},\n \"said\": \"<string>\",\n \"alternative\": {\n \"label\": \"<string>\",\n \"query\": {}\n },\n \"asked\": \"<string>\",\n \"chosen_label\": \"\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/applied/")
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 \"query\": {},\n \"said\": \"<string>\",\n \"alternative\": {\n \"label\": \"<string>\",\n \"query\": {}\n },\n \"asked\": \"<string>\",\n \"chosen_label\": \"\"\n}"
response = http.request(request)
puts response.read_body{
"assistant_message": {
"content": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": {
"alternative": {
"label": "<string>",
"query": {}
},
"at_capacity": false,
"chosen_label": "",
"match_count": 123,
"nothing_found": false,
"other_search": "signals",
"query": {},
"question_options": [
"<string>"
],
"record_type": "people"
},
"role": "user",
"sequence": 123,
"state": "asking",
"status": "complete",
"steps": [
{
"action": "<string>",
"detail": "",
"duration_ms": 123,
"observation": "",
"outcome": "completed",
"thought": "<string>"
}
]
},
"user_message": {
"content": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"result": {
"alternative": {
"label": "<string>",
"query": {}
},
"at_capacity": false,
"chosen_label": "",
"match_count": 123,
"nothing_found": false,
"other_search": "signals",
"query": {},
"question_options": [
"<string>"
],
"record_type": "people"
},
"role": "user",
"sequence": 123,
"state": "asking",
"status": "complete",
"steps": [
{
"action": "<string>",
"detail": "",
"duration_ms": 123,
"observation": "",
"outcome": "completed",
"thought": "<string>"
}
]
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Path Parameters
Body
Record filters the client applied itself, as a turn with no model call.
For Try ideas, starter cards and the Switch to chip. asked is the user
message to record (the idea's label, say), or null to record the reply
alone. said is the reply naming what was set. A Switch to also sends
the reading it left as alternative and the name of the one it chose
as chosen_label, so the reply offers the way back; both filter sets
are checked the same way.
Which dataset a search runs against, and so which provider serves it.
Values are persisted in String(16) columns, so every member must stay within 16 characters.
people, companies, signal_companies, signal_people, lookalikes, local_businesses, tech_companies, hiring_companies 1 - 1000The other reading an applied search keeps one tap away, named and complete.
Show child attributes
Show child attributes
1 - 4000200Response
Successful Response
An applied turn, as saved; user_message is null when nothing was asked.
One message in a conversation.
Deliberately leaves out why a failed turn failed and what it cost: the first can carry a supplier's own words, and neither is the customer's.
Show child attributes
Show child attributes
One message in a conversation.
Deliberately leaves out why a failed turn failed and what it cost: the first can carry a supplier's own words, and neither is the customer's.
Show child attributes
Show child attributes
Was this page helpful?