查询导入进度
curl --request GET \
--url https://revor.ai/api/v2/imports/{runId}import requests
url = "https://revor.ai/api/v2/imports/{runId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/imports/{runId}', 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/imports/{runId}",
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/imports/{runId}"
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/imports/{runId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/imports/{runId}")
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
/
imports
/
{runId}
查询导入进度
curl --request GET \
--url https://revor.ai/api/v2/imports/{runId}import requests
url = "https://revor.ai/api/v2/imports/{runId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://revor.ai/api/v2/imports/{runId}', 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/imports/{runId}",
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/imports/{runId}"
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/imports/{runId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/imports/{runId}")
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查询导入任务的当前状态、进度统计和结果信息。使用返回的
响应
webset_ids 读取结果。
接口概览
| 方法 | GET |
| 路径 | /api/v2/imports/{runId} |
| 权限 | prospects.imports:read |
路径参数
请求示例
cURL
curl "https://revor.ai/api/v2/imports/import-uuid" \
-H "Authorization: Bearer sk-revor-REPLACE_ME"
响应
200
{
"item": {
"id": "import-uuid",
"webset_id": "webset-uuid",
"source_kind": "csv",
"status": "completed",
"received_rows": 500,
"inserted_rows": 450,
"merged_rows": 50,
"added_contacts": 200,
"added_channels": 300,
"items_revision": 10
}
}
item 包含:
id- 导入任务 IDwebset_id- 目标表格 IDsource_kind- 来源类型status- 任务状态received_rows- 接收行数inserted_rows- 新增行数merged_rows- 合并行数added_contacts- 新增联系人数added_channels- 新增渠道数items_revision

