Preview a contact import (dry run)
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/contacts/imports/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rows": [
{
"phone": "+14155552671",
"email": "ada@example.com",
"first_name": "Ada",
"last_name": "Lovelace"
},
{
"phone": "+14155552671",
"email": "grace@example.com",
"first_name": "Grace"
}
]
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/contacts/imports/preview"
payload = { "rows": [
{
"phone": "+14155552671",
"email": "ada@example.com",
"first_name": "Ada",
"last_name": "Lovelace"
},
{
"phone": "+14155552671",
"email": "grace@example.com",
"first_name": "Grace"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
phone: '+14155552671',
email: 'ada@example.com',
first_name: 'Ada',
last_name: 'Lovelace'
},
{phone: '+14155552671', email: 'grace@example.com', first_name: 'Grace'}
]
})
};
fetch('https://api.orbit.devotel.io/api/v1/contacts/imports/preview', 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://api.orbit.devotel.io/api/v1/contacts/imports/preview",
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([
'rows' => [
[
'phone' => '+14155552671',
'email' => 'ada@example.com',
'first_name' => 'Ada',
'last_name' => 'Lovelace'
],
[
'phone' => '+14155552671',
'email' => 'grace@example.com',
'first_name' => 'Grace'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.orbit.devotel.io/api/v1/contacts/imports/preview"
payload := strings.NewReader("{\n \"rows\": [\n {\n \"phone\": \"+14155552671\",\n \"email\": \"ada@example.com\",\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\"\n },\n {\n \"phone\": \"+14155552671\",\n \"email\": \"grace@example.com\",\n \"first_name\": \"Grace\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.orbit.devotel.io/api/v1/contacts/imports/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rows\": [\n {\n \"phone\": \"+14155552671\",\n \"email\": \"ada@example.com\",\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\"\n },\n {\n \"phone\": \"+14155552671\",\n \"email\": \"grace@example.com\",\n \"first_name\": \"Grace\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/contacts/imports/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rows\": [\n {\n \"phone\": \"+14155552671\",\n \"email\": \"ada@example.com\",\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\"\n },\n {\n \"phone\": \"+14155552671\",\n \"email\": \"grace@example.com\",\n \"first_name\": \"Grace\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"total_rows": 2,
"preview_rows": [
{
"row_index": 1,
"phone": "+14155552671",
"email": "ada@example.com",
"normalized_phone": "+14155552671",
"first_name": "Ada",
"last_name": "Lovelace",
"will_duplicate": false,
"dup_match_field": null,
"validation_errors": []
},
{
"row_index": 2,
"phone": "+14155552671",
"email": "grace@example.com",
"normalized_phone": "+14155552671",
"first_name": "Grace",
"last_name": null,
"will_duplicate": true,
"dup_match_field": "phone",
"validation_errors": [
"Duplicate phone within this file (first seen at row 1)"
]
}
],
"validation": {
"rows_with_phone": 2,
"rows_with_email": 2,
"rows_invalid": 0,
"sample_errors": []
},
"duplicates": {
"existing_db_match_count": 0,
"in_csv_dup_count": 1,
"sample_matches": []
}
},
"meta": {
"request_id": "req_01HZX9ABCDEF",
"timestamp": "2026-02-02T12:00:00.000Z"
}
}Contacts
Preview a contact import (dry run)
Dry-run a contact import without writing any data. Each row’s phone and email are normalized and classified, and the response returns validation counters plus duplicate detection against existing contacts and within the upload itself, so the import wizard can warn before the operator commits. Capped at 10,000 rows per preview.
POST
/
api
/
v1
/
contacts
/
imports
/
preview
Preview a contact import (dry run)
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/contacts/imports/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"rows": [
{
"phone": "+14155552671",
"email": "ada@example.com",
"first_name": "Ada",
"last_name": "Lovelace"
},
{
"phone": "+14155552671",
"email": "grace@example.com",
"first_name": "Grace"
}
]
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/contacts/imports/preview"
payload = { "rows": [
{
"phone": "+14155552671",
"email": "ada@example.com",
"first_name": "Ada",
"last_name": "Lovelace"
},
{
"phone": "+14155552671",
"email": "grace@example.com",
"first_name": "Grace"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
rows: [
{
phone: '+14155552671',
email: 'ada@example.com',
first_name: 'Ada',
last_name: 'Lovelace'
},
{phone: '+14155552671', email: 'grace@example.com', first_name: 'Grace'}
]
})
};
fetch('https://api.orbit.devotel.io/api/v1/contacts/imports/preview', 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://api.orbit.devotel.io/api/v1/contacts/imports/preview",
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([
'rows' => [
[
'phone' => '+14155552671',
'email' => 'ada@example.com',
'first_name' => 'Ada',
'last_name' => 'Lovelace'
],
[
'phone' => '+14155552671',
'email' => 'grace@example.com',
'first_name' => 'Grace'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.orbit.devotel.io/api/v1/contacts/imports/preview"
payload := strings.NewReader("{\n \"rows\": [\n {\n \"phone\": \"+14155552671\",\n \"email\": \"ada@example.com\",\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\"\n },\n {\n \"phone\": \"+14155552671\",\n \"email\": \"grace@example.com\",\n \"first_name\": \"Grace\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.orbit.devotel.io/api/v1/contacts/imports/preview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"rows\": [\n {\n \"phone\": \"+14155552671\",\n \"email\": \"ada@example.com\",\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\"\n },\n {\n \"phone\": \"+14155552671\",\n \"email\": \"grace@example.com\",\n \"first_name\": \"Grace\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/contacts/imports/preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"rows\": [\n {\n \"phone\": \"+14155552671\",\n \"email\": \"ada@example.com\",\n \"first_name\": \"Ada\",\n \"last_name\": \"Lovelace\"\n },\n {\n \"phone\": \"+14155552671\",\n \"email\": \"grace@example.com\",\n \"first_name\": \"Grace\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"total_rows": 2,
"preview_rows": [
{
"row_index": 1,
"phone": "+14155552671",
"email": "ada@example.com",
"normalized_phone": "+14155552671",
"first_name": "Ada",
"last_name": "Lovelace",
"will_duplicate": false,
"dup_match_field": null,
"validation_errors": []
},
{
"row_index": 2,
"phone": "+14155552671",
"email": "grace@example.com",
"normalized_phone": "+14155552671",
"first_name": "Grace",
"last_name": null,
"will_duplicate": true,
"dup_match_field": "phone",
"validation_errors": [
"Duplicate phone within this file (first seen at row 1)"
]
}
],
"validation": {
"rows_with_phone": 2,
"rows_with_email": 2,
"rows_invalid": 0,
"sample_errors": []
},
"duplicates": {
"existing_db_match_count": 0,
"in_csv_dup_count": 1,
"sample_matches": []
}
},
"meta": {
"request_id": "req_01HZX9ABCDEF",
"timestamp": "2026-02-02T12:00:00.000Z"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Body
application/json
The rows to preview, each a map of already-mapped field keys (such as phone, email, first_name) to string values.
Required array length:
1 - 10000 elementsShow child attributes
Show child attributes
⌘I