读取待发送草稿
curl --request GET \
--url https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}import requests
url = "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}', 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/drafts/{targetId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body智能触达
读取待发送草稿
获取指定目标的待发送触达草稿。
GET
/
api
/
v2
/
websets
/
{websetId}
/
smart-outreach
/
drafts
/
{targetId}
读取待发送草稿
curl --request GET \
--url https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}import requests
url = "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}', 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/drafts/{targetId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/websets/{websetId}/smart-outreach/drafts/{targetId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body获取指定目标的待发送触达草稿。先查
editable 和 editable_reason,发送中/已发送的草稿不可编辑。
接口概览
| 方法 | GET |
| 路径 | /api/v2/websets/{websetId}/smart-outreach/drafts/{targetId} |
| 权限 | outreach.plans:read |
路径参数
目标 ID,由
GET /smart-outreach/items/{itemId} 返回。请求示例
cURL
curl "https://revor.ai/api/v2/websets/webset-uuid/smart-outreach/drafts/target-uuid" \
-H "Authorization: Bearer sk-revor-REPLACE_ME"
响应
返回草稿内容,包含subject、body、schedule 和 editable 等字段。发送中/已发送的草稿不可编辑。
