curl --request POST \
--url https://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"feedback": "Focus on US companies only, exclude agencies"
}
'import requests
url = "https://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate"
payload = { "feedback": "Focus on US companies only, exclude agencies" }
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({feedback: 'Focus on US companies only, exclude agencies'})
};
fetch('https://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate', 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://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate",
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([
'feedback' => 'Focus on US companies only, exclude agencies'
]),
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://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate"
payload := strings.NewReader("{\n \"feedback\": \"Focus on US companies only, exclude agencies\"\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://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"feedback\": \"Focus on US companies only, exclude agencies\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate")
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 \"feedback\": \"Focus on US companies only, exclude agencies\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "<string>",
"data": {
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"userInput": "<string>",
"requestedProvider": "AUTO",
"resolvedProvider": "LINKEDIN",
"result": {},
"crmProvider": "HUBSPOT",
"entity": "COMPANY",
"theirstackImportType": "TECHNOLOGY",
"droppedFilters": [
"<string>"
],
"previousPreviewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identityId": 123
}
}Refine an AI Finder preview
What it does. Takes an existing previewId plus a natural-language feedback string (e.g. “exclude agencies”, “only US companies”, “narrow to 50–500 employees”) and runs a NEW AI search that combines the original query with your refinement. Returns a brand-new previewId; the original preview is untouched and still valid.
When to use. Call this after you’ve reviewed the result of a preview and want to tighten the filters before importing. You can chain iterations — each iterate call returns a new previewId you can iterate on again.
Provider. The new preview uses the SAME provider as the one being refined — you don’t re-pick the provider. If the original preview used AUTO, the refined one also uses AUTO (the AI may still route to the same or a different provider, based on the combined query).
What you get back. Same shape as POST /v1/ai-finder/previews, plus a previousPreviewId field pointing at the preview you refined. Use this new previewId with the iterate or import endpoint.
Required scope:
ACTIONS_WRITERate limit: 10 requests per minute
curl --request POST \
--url https://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"feedback": "Focus on US companies only, exclude agencies"
}
'import requests
url = "https://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate"
payload = { "feedback": "Focus on US companies only, exclude agencies" }
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({feedback: 'Focus on US companies only, exclude agencies'})
};
fetch('https://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate', 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://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate",
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([
'feedback' => 'Focus on US companies only, exclude agencies'
]),
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://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate"
payload := strings.NewReader("{\n \"feedback\": \"Focus on US companies only, exclude agencies\"\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://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"feedback\": \"Focus on US companies only, exclude agencies\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://openapi.enginy.ai/v1/ai-finder/previews/{previewId}/iterate")
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 \"feedback\": \"Focus on US companies only, exclude agencies\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "<string>",
"data": {
"previewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"userInput": "<string>",
"requestedProvider": "AUTO",
"resolvedProvider": "LINKEDIN",
"result": {},
"crmProvider": "HUBSPOT",
"entity": "COMPANY",
"theirstackImportType": "TECHNOLOGY",
"droppedFilters": [
"<string>"
],
"previousPreviewId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identityId": 123
}
}Authorizations
Path Parameters
The previewId returned by a prior preview or iterate call.
Body
Refinement instruction. Appended to the original query and re-run through AI Finder. Examples: "focus on US only", "exclude agencies", "narrow to 50-500 employees", "include VP and SVP titles only". Returns a NEW previewId; the prior preview stays cached and is still valid. 1–2000 characters.
1 - 2000