查询 Connect 账号
curl --request GET \
--url https://revor.ai/api/v2/connect/accountsimport requests
url = "https://revor.ai/api/v2/connect/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/connect/accounts', 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/connect/accounts",
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/connect/accounts"
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/connect/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/connect/accounts")
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单次触达
查询 Connect 账号
返回当前用户已连接的 Email、LinkedIn 和 WhatsApp 账号。创建触达任务前,先通过本接口取得可用的 account_id。
GET
/
api
/
v2
/
connect
/
accounts
查询 Connect 账号
curl --request GET \
--url https://revor.ai/api/v2/connect/accountsimport requests
url = "https://revor.ai/api/v2/connect/accounts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/connect/accounts', 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/connect/accounts",
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/connect/accounts"
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/connect/accounts")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/connect/accounts")
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返回当前用户已连接的 Email、LinkedIn 和 WhatsApp 账号。创建触达任务前,先通过本接口取得可用的
account_id。
| 方法 | GET |
| 权限 | Connect 账号读取 |
| 限流 | 标准限流 |
Query 参数
请求示例
cURL
curl --get \
--url "https://revor.ai/api/v2/connect/accounts" \
--header "Authorization: Bearer sk-revor-REPLACE_ME" \
--data-urlencode "channel=linkedin" \
--data-urlencode "can_send=true"
响应示例
200
{
"ok": true,
"request_id": "req_xxx",
"items": [
{
"account_id": "connect_account_xxx",
"channel": "linkedin",
"name": "LinkedIn Account",
"account_identifier": "https://www.linkedin.com/in/example/",
"status": "ok",
"lifecycle_status": "active",
"can_send": true,
"can_receive": true
}
]
}
响应字段说明
status:表示当前连接或凭证是否健康。lifecycle_status:表示账号在 Revor 中的生命周期。
调用方不应自行组合这两个内部状态来判断能否发送;发起外联时始终以
can_send=true 为准。常见情况下,
status=credentials 表示账号需要更新凭证或重新连接,status=error 表示账号暂不可用。即使账号仍处于 lifecycle_status=active,只要 can_send=false,也不应提交发送任务。常见错误
| HTTP | Code | 说明 |
|---|---|---|
400 | invalid_channel | 渠道值不支持。 |
400 | invalid_can_send | can_send 值不支持。 |
403 | permission_denied | Key 没有 Connect 账号读取权限。 |

