Operações em massa
Associar contatos a empresas
Associe contatos a uma empresa ou remova vínculos existentes em lote.
URL completa: https://services.leadconnectorhq.com/contacts/bulk/business
POST
/
contacts
/
bulk
/
business
cURL
curl --request POST \
--url 'https://services.leadconnectorhq.com/contacts/bulk/business' \
--header 'Authorization: Bearer <token>' \
--header 'Version: v3' \
--header 'Content-Type: application/json' \
--data '{
"locationId": "ve9EPM428h8vShlRW1KT",
"ids": [
"seD4PfOuKoVMLkEZqohJ"
],
"businessId": "641c094001436dbc2081e642"
}'import requests
url = "https://services.leadconnectorhq.com/contacts/bulk/business"
payload = {
"locationId": "ve9EPM428h8vShlRW1KT",
"ids": ["seD4PfOuKoVMLkEZqohJ"],
"businessId": "641c094001436dbc2081e642"
}
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Version: '<version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
locationId: 've9EPM428h8vShlRW1KT',
ids: ['seD4PfOuKoVMLkEZqohJ'],
businessId: '641c094001436dbc2081e642'
})
};
fetch('https://services.leadconnectorhq.com/contacts/bulk/business', 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://services.leadconnectorhq.com/contacts/bulk/business",
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([
'locationId' => 've9EPM428h8vShlRW1KT',
'ids' => [
'seD4PfOuKoVMLkEZqohJ'
],
'businessId' => '641c094001436dbc2081e642'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Version: <version>"
],
]);
$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://services.leadconnectorhq.com/contacts/bulk/business"
payload := strings.NewReader("{\n \"locationId\": \"ve9EPM428h8vShlRW1KT\",\n \"ids\": [\n \"seD4PfOuKoVMLkEZqohJ\"\n ],\n \"businessId\": \"641c094001436dbc2081e642\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Version", "<version>")
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://services.leadconnectorhq.com/contacts/bulk/business")
.header("Version", "<version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"locationId\": \"ve9EPM428h8vShlRW1KT\",\n \"ids\": [\n \"seD4PfOuKoVMLkEZqohJ\"\n ],\n \"businessId\": \"641c094001436dbc2081e642\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.leadconnectorhq.com/contacts/bulk/business")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Version"] = '<version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"locationId\": \"ve9EPM428h8vShlRW1KT\",\n \"ids\": [\n \"seD4PfOuKoVMLkEZqohJ\"\n ],\n \"businessId\": \"641c094001436dbc2081e642\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"ids": [
"seD4PfOuKoVMLkEZqohJ"
]
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}Token e permissões: na Salez, acesse Configurações > Integrações Privadas para gerar ou gerenciar o token, conforme seu nível de acesso. Esta operação exige o escopo
contacts.write. Envie Authorization: Bearer <token> e Version: v3. Veja a visão geral de Contatos.Autorizações
Corpo
application/json
Última modificação em 20 de novembro de 2026
⌘I
cURL
curl --request POST \
--url 'https://services.leadconnectorhq.com/contacts/bulk/business' \
--header 'Authorization: Bearer <token>' \
--header 'Version: v3' \
--header 'Content-Type: application/json' \
--data '{
"locationId": "ve9EPM428h8vShlRW1KT",
"ids": [
"seD4PfOuKoVMLkEZqohJ"
],
"businessId": "641c094001436dbc2081e642"
}'import requests
url = "https://services.leadconnectorhq.com/contacts/bulk/business"
payload = {
"locationId": "ve9EPM428h8vShlRW1KT",
"ids": ["seD4PfOuKoVMLkEZqohJ"],
"businessId": "641c094001436dbc2081e642"
}
headers = {
"Version": "<version>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Version: '<version>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
locationId: 've9EPM428h8vShlRW1KT',
ids: ['seD4PfOuKoVMLkEZqohJ'],
businessId: '641c094001436dbc2081e642'
})
};
fetch('https://services.leadconnectorhq.com/contacts/bulk/business', 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://services.leadconnectorhq.com/contacts/bulk/business",
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([
'locationId' => 've9EPM428h8vShlRW1KT',
'ids' => [
'seD4PfOuKoVMLkEZqohJ'
],
'businessId' => '641c094001436dbc2081e642'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Version: <version>"
],
]);
$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://services.leadconnectorhq.com/contacts/bulk/business"
payload := strings.NewReader("{\n \"locationId\": \"ve9EPM428h8vShlRW1KT\",\n \"ids\": [\n \"seD4PfOuKoVMLkEZqohJ\"\n ],\n \"businessId\": \"641c094001436dbc2081e642\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Version", "<version>")
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://services.leadconnectorhq.com/contacts/bulk/business")
.header("Version", "<version>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"locationId\": \"ve9EPM428h8vShlRW1KT\",\n \"ids\": [\n \"seD4PfOuKoVMLkEZqohJ\"\n ],\n \"businessId\": \"641c094001436dbc2081e642\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.leadconnectorhq.com/contacts/bulk/business")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Version"] = '<version>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"locationId\": \"ve9EPM428h8vShlRW1KT\",\n \"ids\": [\n \"seD4PfOuKoVMLkEZqohJ\"\n ],\n \"businessId\": \"641c094001436dbc2081e642\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"ids": [
"seD4PfOuKoVMLkEZqohJ"
]
}{
"statusCode": 400,
"message": "Bad Request"
}{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}
