Bulk Create Leads
curl --request POST \
--url https://api.opennous.cloud/v2/leads/bulk \
--header 'Content-Type: application/json' \
--data '
{
"list_id": "<string>",
"leads": [
{}
],
"importDuplicates": true
}
'import requests
url = "https://api.opennous.cloud/v2/leads/bulk"
payload = {
"list_id": "<string>",
"leads": [{}],
"importDuplicates": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({list_id: '<string>', leads: [{}], importDuplicates: true})
};
fetch('https://api.opennous.cloud/v2/leads/bulk', 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.opennous.cloud/v2/leads/bulk",
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([
'list_id' => '<string>',
'leads' => [
[
]
],
'importDuplicates' => true
]),
CURLOPT_HTTPHEADER => [
"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.opennous.cloud/v2/leads/bulk"
payload := strings.NewReader("{\n \"list_id\": \"<string>\",\n \"leads\": [\n {}\n ],\n \"importDuplicates\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.opennous.cloud/v2/leads/bulk")
.header("Content-Type", "application/json")
.body("{\n \"list_id\": \"<string>\",\n \"leads\": [\n {}\n ],\n \"importDuplicates\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opennous.cloud/v2/leads/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"list_id\": \"<string>\",\n \"leads\": [\n {}\n ],\n \"importDuplicates\": true\n}"
response = http.request(request)
puts response.read_bodyLeads
Bulk Create Leads
Add up to 1000 leads to a list in a single call. Same dedup behaviour as single create.
POST
/
v2
/
leads
/
bulk
Bulk Create Leads
curl --request POST \
--url https://api.opennous.cloud/v2/leads/bulk \
--header 'Content-Type: application/json' \
--data '
{
"list_id": "<string>",
"leads": [
{}
],
"importDuplicates": true
}
'import requests
url = "https://api.opennous.cloud/v2/leads/bulk"
payload = {
"list_id": "<string>",
"leads": [{}],
"importDuplicates": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({list_id: '<string>', leads: [{}], importDuplicates: true})
};
fetch('https://api.opennous.cloud/v2/leads/bulk', 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.opennous.cloud/v2/leads/bulk",
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([
'list_id' => '<string>',
'leads' => [
[
]
],
'importDuplicates' => true
]),
CURLOPT_HTTPHEADER => [
"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.opennous.cloud/v2/leads/bulk"
payload := strings.NewReader("{\n \"list_id\": \"<string>\",\n \"leads\": [\n {}\n ],\n \"importDuplicates\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.opennous.cloud/v2/leads/bulk")
.header("Content-Type", "application/json")
.body("{\n \"list_id\": \"<string>\",\n \"leads\": [\n {}\n ],\n \"importDuplicates\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opennous.cloud/v2/leads/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"list_id\": \"<string>\",\n \"leads\": [\n {}\n ],\n \"importDuplicates\": true\n}"
response = http.request(request)
puts response.read_bodycurl -X POST https://api.opennous.cloud/v2/leads/bulk \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"list_id": "LIST_UUID",
"leads": [
{ "email": "a@acme.com", "name": "A" },
{ "email": "b@acme.com", "name": "B" }
]
}'
Body
string
required
UUID of the destination lead list.
array
required
Array of lead objects. Each row takes the same shape as the single-create body (minus
list_id).boolean
default:"false"
Force-insert even if the email or LinkedIn URL is already in the workspace.
Response
{ "inserted": 2, "skipped": 0, "duplicate_skipped": 0 }
⌘I