Get import status
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_bodyImports
Get import status
Poll import progress and get the resulting table IDs after an import run.
GET
/
api
/
v2
/
imports
/
{runId}
Get import status
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_bodyPoll the status and results of an import run. Read
The response
webset_ids to locate the tables created or appended to.
Overview
| Method | GET |
| Path | /api/v2/imports/{runId} |
| Permission | prospects.imports:read |
| Returns | Import run progress, row counts, and table IDs |
Path parameters
Response
200
{
"item": {
"id": "import-run-uuid",
"webset_id": "table-uuid",
"source_kind": "csv",
"status": "completed",
"received_rows": 100,
"inserted_rows": 95,
"merged_rows": 5,
"added_contacts": 10,
"added_channels": 15,
"items_revision": 2
}
}
item contains:
id- import run IDwebset_id- target table IDsource_kind-"records","csv", or"xlsx"status- import status, for example"completed"received_rowsinserted_rowsmerged_rowsadded_contactsadded_channelsitems_revision
webset_ids lists the resulting tables.
cURL
curl -X GET "https://revor.ai/api/v2/imports/import-run-uuid" \
-H "Authorization: Bearer sk-revor-REPLACE_ME"

