curl --request POST \
--url https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/messages/stream/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"query": {},
"surface": "panel"
}
'import requests
url = "https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/messages/stream/"
payload = {
"prompt": "<string>",
"query": {},
"surface": "panel"
}
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({prompt: '<string>', query: {}, surface: 'panel'})
};
fetch('https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/messages/stream/', 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}/messages/stream/",
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([
'prompt' => '<string>',
'query' => [
],
'surface' => 'panel'
]),
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/find-leads/assistant/conversations/{conversation_id}/messages/stream/"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"query\": {},\n \"surface\": \"panel\"\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/find-leads/assistant/conversations/{conversation_id}/messages/stream/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"query\": {},\n \"surface\": \"panel\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/messages/stream/")
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 \"prompt\": \"<string>\",\n \"query\": {},\n \"surface\": \"panel\"\n}"
response = http.request(request)
puts response.read_body"<string>"{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Ask the AI Assistant, streaming its work
Run one turn and stream it as Server-Sent Events: a step frame for each thing the AI Assistant actually did (read_context, plan, compare_readings, count_matches), delta frames carrying the whole reply so far (assign, never append), then exactly one result frame with the same body the non-streaming route returns, sent once the reply is saved. The last delta always equals the saved reply.
A turn that could not run ends in one error frame whose reason is limit, paused or not_found; any other failure is an error frame with no reason. A turn that breaks while running still ends in a result whose reply carries failed.
Closing the connection does not cancel the turn: it finishes and saves its reply, so reopening the conversation shows the answer.
curl --request POST \
--url https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/messages/stream/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"query": {},
"surface": "panel"
}
'import requests
url = "https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/messages/stream/"
payload = {
"prompt": "<string>",
"query": {},
"surface": "panel"
}
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({prompt: '<string>', query: {}, surface: 'panel'})
};
fetch('https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/messages/stream/', 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}/messages/stream/",
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([
'prompt' => '<string>',
'query' => [
],
'surface' => 'panel'
]),
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/find-leads/assistant/conversations/{conversation_id}/messages/stream/"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"query\": {},\n \"surface\": \"panel\"\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/find-leads/assistant/conversations/{conversation_id}/messages/stream/")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"query\": {},\n \"surface\": \"panel\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getoneprofile.ai/find-leads/assistant/conversations/{conversation_id}/messages/stream/")
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 \"prompt\": \"<string>\",\n \"query\": {},\n \"surface\": \"panel\"\n}"
response = http.request(request)
puts response.read_body"<string>"{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>",
"issues": [
{
"input": "<string>",
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
Send the AI Assistant a message.
record_type and query are the search on screen, when there is one:
the results panel sends them so a refinement builds on what the user sees.
The page sends neither. The query is checked against the same schema a
hand-built search goes through, and unknown filters are stripped.
1 - 4000Which 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 Where a turn was sent from, for the turn log only.
page, panel Response
A stream of Server-Sent Events. The final result frame's data is a turn; an error frame's data is a stream error.
Both halves of one turn, as saved.
The user message too, not just the reply: the client drew its own copy before sending and reconciles it against this one.
Was this page helpful?