启动智能触达
curl --request POST \
--url https://revor.ai/api/v2/websets/{websetId}/smart-outreach/start \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"start_request_id": "<string>",
"expected_owner_agent_id": "<string>",
"expected_ownership_version": 123,
"item_ids": [
"<string>"
],
"channels": [
"<string>"
],
"schedule_type": "<string>",
"time_of_day": "<string>",
"timezone": "<string>",
"weekdays": [
123
],
"batch_limit": 123,
"ui_locale": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/start"
payload = {
"agent_id": "<string>",
"start_request_id": "<string>",
"expected_owner_agent_id": "<string>",
"expected_ownership_version": 123,
"item_ids": ["<string>"],
"channels": ["<string>"],
"schedule_type": "<string>",
"time_of_day": "<string>",
"timezone": "<string>",
"weekdays": [123],
"batch_limit": 123,
"ui_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({
agent_id: '<string>',
start_request_id: '<string>',
expected_owner_agent_id: '<string>',
expected_ownership_version: 123,
item_ids: ['<string>'],
channels: ['<string>'],
schedule_type: '<string>',
time_of_day: '<string>',
timezone: '<string>',
weekdays: [123],
batch_limit: 123,
ui_locale: '<string>'
})
};
fetch('https://revor.ai/api/v2/websets/{websetId}/smart-outreach/start', 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/websets/{websetId}/smart-outreach/start",
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([
'agent_id' => '<string>',
'start_request_id' => '<string>',
'expected_owner_agent_id' => '<string>',
'expected_ownership_version' => 123,
'item_ids' => [
'<string>'
],
'channels' => [
'<string>'
],
'schedule_type' => '<string>',
'time_of_day' => '<string>',
'timezone' => '<string>',
'weekdays' => [
123
],
'batch_limit' => 123,
'ui_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/websets/{websetId}/smart-outreach/start"
payload := strings.NewReader("{\n \"agent_id\": \"<string>\",\n \"start_request_id\": \"<string>\",\n \"expected_owner_agent_id\": \"<string>\",\n \"expected_ownership_version\": 123,\n \"item_ids\": [\n \"<string>\"\n ],\n \"channels\": [\n \"<string>\"\n ],\n \"schedule_type\": \"<string>\",\n \"time_of_day\": \"<string>\",\n \"timezone\": \"<string>\",\n \"weekdays\": [\n 123\n ],\n \"batch_limit\": 123,\n \"ui_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/websets/{websetId}/smart-outreach/start")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"<string>\",\n \"start_request_id\": \"<string>\",\n \"expected_owner_agent_id\": \"<string>\",\n \"expected_ownership_version\": 123,\n \"item_ids\": [\n \"<string>\"\n ],\n \"channels\": [\n \"<string>\"\n ],\n \"schedule_type\": \"<string>\",\n \"time_of_day\": \"<string>\",\n \"timezone\": \"<string>\",\n \"weekdays\": [\n 123\n ],\n \"batch_limit\": 123,\n \"ui_locale\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/start")
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 \"agent_id\": \"<string>\",\n \"start_request_id\": \"<string>\",\n \"expected_owner_agent_id\": \"<string>\",\n \"expected_ownership_version\": 123,\n \"item_ids\": [\n \"<string>\"\n ],\n \"channels\": [\n \"<string>\"\n ],\n \"schedule_type\": \"<string>\",\n \"time_of_day\": \"<string>\",\n \"timezone\": \"<string>\",\n \"weekdays\": [\n 123\n ],\n \"batch_limit\": 123,\n \"ui_locale\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body智能触达
启动智能触达
为指定表格的选中行启动智能触达计划。
POST
/
api
/
v2
/
websets
/
{websetId}
/
smart-outreach
/
start
启动智能触达
curl --request POST \
--url https://revor.ai/api/v2/websets/{websetId}/smart-outreach/start \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>",
"start_request_id": "<string>",
"expected_owner_agent_id": "<string>",
"expected_ownership_version": 123,
"item_ids": [
"<string>"
],
"channels": [
"<string>"
],
"schedule_type": "<string>",
"time_of_day": "<string>",
"timezone": "<string>",
"weekdays": [
123
],
"batch_limit": 123,
"ui_locale": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/start"
payload = {
"agent_id": "<string>",
"start_request_id": "<string>",
"expected_owner_agent_id": "<string>",
"expected_ownership_version": 123,
"item_ids": ["<string>"],
"channels": ["<string>"],
"schedule_type": "<string>",
"time_of_day": "<string>",
"timezone": "<string>",
"weekdays": [123],
"batch_limit": 123,
"ui_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({
agent_id: '<string>',
start_request_id: '<string>',
expected_owner_agent_id: '<string>',
expected_ownership_version: 123,
item_ids: ['<string>'],
channels: ['<string>'],
schedule_type: '<string>',
time_of_day: '<string>',
timezone: '<string>',
weekdays: [123],
batch_limit: 123,
ui_locale: '<string>'
})
};
fetch('https://revor.ai/api/v2/websets/{websetId}/smart-outreach/start', 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/websets/{websetId}/smart-outreach/start",
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([
'agent_id' => '<string>',
'start_request_id' => '<string>',
'expected_owner_agent_id' => '<string>',
'expected_ownership_version' => 123,
'item_ids' => [
'<string>'
],
'channels' => [
'<string>'
],
'schedule_type' => '<string>',
'time_of_day' => '<string>',
'timezone' => '<string>',
'weekdays' => [
123
],
'batch_limit' => 123,
'ui_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/websets/{websetId}/smart-outreach/start"
payload := strings.NewReader("{\n \"agent_id\": \"<string>\",\n \"start_request_id\": \"<string>\",\n \"expected_owner_agent_id\": \"<string>\",\n \"expected_ownership_version\": 123,\n \"item_ids\": [\n \"<string>\"\n ],\n \"channels\": [\n \"<string>\"\n ],\n \"schedule_type\": \"<string>\",\n \"time_of_day\": \"<string>\",\n \"timezone\": \"<string>\",\n \"weekdays\": [\n 123\n ],\n \"batch_limit\": 123,\n \"ui_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/websets/{websetId}/smart-outreach/start")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": \"<string>\",\n \"start_request_id\": \"<string>\",\n \"expected_owner_agent_id\": \"<string>\",\n \"expected_ownership_version\": 123,\n \"item_ids\": [\n \"<string>\"\n ],\n \"channels\": [\n \"<string>\"\n ],\n \"schedule_type\": \"<string>\",\n \"time_of_day\": \"<string>\",\n \"timezone\": \"<string>\",\n \"weekdays\": [\n 123\n ],\n \"batch_limit\": 123,\n \"ui_locale\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/start")
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 \"agent_id\": \"<string>\",\n \"start_request_id\": \"<string>\",\n \"expected_owner_agent_id\": \"<string>\",\n \"expected_ownership_version\": 123,\n \"item_ids\": [\n \"<string>\"\n ],\n \"channels\": [\n \"<string>\"\n ],\n \"schedule_type\": \"<string>\",\n \"time_of_day\": \"<string>\",\n \"timezone\": \"<string>\",\n \"weekdays\": [\n 123\n ],\n \"batch_limit\": 123,\n \"ui_locale\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body为指定表格的选中行启动智能触达计划。启动前必须先调用
GET /smart-outreach 获取归属信息。
接口概览
| 方法 | POST |
| 路径 | /api/v2/websets/{websetId}/smart-outreach/start |
| 权限 | outreach.plans:write |
| 幂等性 | 通过 Idempotency-Key 请求头实现 |
路径参数
请求体
启动触达
{
"agent_id": "智能体UUID",
"start_request_id": "本次启动请求UUID",
"expected_owner_agent_id": null,
"expected_ownership_version": 0,
"item_ids": ["行UUID"],
"channels": ["email"],
"schedule_type": "daily",
"time_of_day": "09:00",
"timezone": "Asia/Shanghai",
"ui_locale": "zh"
}
启动成功只表示计划已接入,真实发送须继续看目标状态。
请求示例
cURL
curl -X POST "https://revor.ai/api/v2/websets/webset-uuid/smart-outreach/start" \
-H "Authorization: Bearer sk-revor-REPLACE_ME" \
-H "Idempotency-Key: outreach-start-001" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "agent-uuid",
"start_request_id": "req-uuid",
"expected_owner_agent_id": null,
"expected_ownership_version": 0,
"item_ids": ["item-uuid"],
"channels": ["email"],
"schedule_type": "daily",
"time_of_day": "09:00",
"timezone": "Asia/Shanghai",
"ui_locale": "zh"
}'
启动前准备
1
读取归属
调用
GET /websets/{id}/smart-outreach 取得 owner_agent_id 和 ownership_version。2
持久化缺失渠道映射
启动前会为缺少渠道映射的渠道持久化既有的导入/调研联系人聚合映射,使控制台刷新后显示触达列。映射保存失败时不启动任务。
3
启动计划
携带实际归属值调用
POST /start。映射与计划不是一个事务:与页面先保存配置再启动的行为一致,后续启动失败仍可能保留配置。

