创建潜客名单
curl --request POST \
--url https://revor.ai/api/v2/prospect-lists \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"title": "<string>",
"count": 123,
"target_kind": "<string>",
"locale": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/prospect-lists"
payload = {
"query": "<string>",
"title": "<string>",
"count": 123,
"target_kind": "<string>",
"locale": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
title: '<string>',
count: 123,
target_kind: '<string>',
locale: '<string>'
})
};
fetch('https://revor.ai/api/v2/prospect-lists', 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://revor.ai/api/v2/prospect-lists",
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' => '<string>',
'title' => '<string>',
'count' => 123,
'target_kind' => '<string>',
'locale' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://revor.ai/api/v2/prospect-lists"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"title\": \"<string>\",\n \"count\": 123,\n \"target_kind\": \"<string>\",\n \"locale\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://revor.ai/api/v2/prospect-lists")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"title\": \"<string>\",\n \"count\": 123,\n \"target_kind\": \"<string>\",\n \"locale\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/prospect-lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"title\": \"<string>\",\n \"count\": 123,\n \"target_kind\": \"<string>\",\n \"locale\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body潜客名单
创建潜客名单
原入口 POST /api/v2/websets 继续支持,参数、返回字段和权限均保持一致。两个 URL 执行同一操作。
POST
/
api
/
v2
/
prospect-lists
创建潜客名单
curl --request POST \
--url https://revor.ai/api/v2/prospect-lists \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"title": "<string>",
"count": 123,
"target_kind": "<string>",
"locale": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/prospect-lists"
payload = {
"query": "<string>",
"title": "<string>",
"count": 123,
"target_kind": "<string>",
"locale": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
title: '<string>',
count: 123,
target_kind: '<string>',
locale: '<string>'
})
};
fetch('https://revor.ai/api/v2/prospect-lists', 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://revor.ai/api/v2/prospect-lists",
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' => '<string>',
'title' => '<string>',
'count' => 123,
'target_kind' => '<string>',
'locale' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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://revor.ai/api/v2/prospect-lists"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"title\": \"<string>\",\n \"count\": 123,\n \"target_kind\": \"<string>\",\n \"locale\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://revor.ai/api/v2/prospect-lists")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"title\": \"<string>\",\n \"count\": 123,\n \"target_kind\": \"<string>\",\n \"locale\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/prospect-lists")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"title\": \"<string>\",\n \"count\": 123,\n \"target_kind\": \"<string>\",\n \"locale\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body根据自然语言目标创建企业或人物名单。接口返回 HTTP
原入口
202;后续条件生成、搜索和核验异步执行。
接口概览
| 方法 | POST |
| 路径 | /api/v2/prospect-lists |
| 权限 | websets:write |
| 幂等性 | 建议传入 Idempotency-Key,网络超时重试时复用原值 |
| 返回 | 202,含 webset 与 preparation_job |
POST /api/v2/websets 继续支持,参数、返回字段和权限均保持一致。两个 URL 执行同一操作。
请求体
cURL
curl -X POST "https://revor.ai/api/v2/prospect-lists" \
-H "Authorization: Bearer sk-revor-REPLACE_ME" \
-H "Idempotency-Key: webset-create-001" \
-H "Content-Type: application/json" \
-d '{
"query": "北美地区的挖掘机制造商、经销商和租赁服务商",
"title": "北美挖掘机公司",
"count": 25,
"target_kind": "company",
"locale": "zh"
}'
请求体
{
"query": "北美地区的挖掘机制造商、经销商和租赁服务商",
"title": "北美挖掘机公司",
"count": 25,
"target_kind": "company",
"locale": "zh"
}
响应
HTTP202 已接受:
202
{
"ok": true,
"request_id": "req_xxx",
"webset": {
"id": "webset-uuid",
"status": "generating_criteria",
"count": 25,
"target_kind": "company"
},
"preparation_job": {
"id": "job-uuid",
"status": "queued"
}
}
错误码
| HTTP | Code | 说明 |
|---|---|---|
400 | webset_query_required / webset_query_too_long | 搜索条件缺失或过长。 |
400 | webset_count_invalid | 数量不是允许值。 |
400 | webset_target_kind_unsupported | 目标类型无效。 |
403 | webset_count_not_available_for_tier | 当前会员档位不支持该数量。 |
409 | idempotency_conflict | 同一个幂等键用于不同请求。 |

