Unsave leads in Sales Navigator
curl --request POST \
--url https://app.pipecorn.com/api/v2/leads/bulk_unsave \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"members": [
"urn:li:member:123456789"
]
}
'import requests
url = "https://app.pipecorn.com/api/v2/leads/bulk_unsave"
payload = { "members": ["urn:li:member:123456789"] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({members: ['urn:li:member:123456789']})
};
fetch('https://app.pipecorn.com/api/v2/leads/bulk_unsave', 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://app.pipecorn.com/api/v2/leads/bulk_unsave",
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([
'members' => [
'urn:li:member:123456789'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://app.pipecorn.com/api/v2/leads/bulk_unsave"
payload := strings.NewReader("{\n \"members\": [\n \"urn:li:member:123456789\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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://app.pipecorn.com/api/v2/leads/bulk_unsave")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"members\": [\n \"urn:li:member:123456789\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/leads/bulk_unsave")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"members\": [\n \"urn:li:member:123456789\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Members unsaved successfully"
}Leads (People)
Unsave Leads
Remove leads from your saved leads in Sales Navigator
POST
/
leads
/
bulk_unsave
Unsave leads in Sales Navigator
curl --request POST \
--url https://app.pipecorn.com/api/v2/leads/bulk_unsave \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"members": [
"urn:li:member:123456789"
]
}
'import requests
url = "https://app.pipecorn.com/api/v2/leads/bulk_unsave"
payload = { "members": ["urn:li:member:123456789"] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({members: ['urn:li:member:123456789']})
};
fetch('https://app.pipecorn.com/api/v2/leads/bulk_unsave', 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://app.pipecorn.com/api/v2/leads/bulk_unsave",
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([
'members' => [
'urn:li:member:123456789'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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://app.pipecorn.com/api/v2/leads/bulk_unsave"
payload := strings.NewReader("{\n \"members\": [\n \"urn:li:member:123456789\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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://app.pipecorn.com/api/v2/leads/bulk_unsave")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"members\": [\n \"urn:li:member:123456789\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/leads/bulk_unsave")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"members\": [\n \"urn:li:member:123456789\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Members unsaved successfully"
}This endpoint acts on the LinkedIn Sales Navigator account connected to your Pipecorn account, so it needs valid LinkedIn credentials. Identify each lead by its LinkedIn member URN (
urn:li:member:<id>).
The LinkedIn connection is checked before LinkedIn is called: a missing or expired connection answers 422 with "LinkedIn credentials not found. Please connect your LinkedIn account." or "LinkedIn credentials expired. Update your connection on Pipecorn interface". Reconnect LinkedIn from the app and retry. This endpoint does not take a live parameter.
When LinkedIn rejects the request itself, the endpoint answers with LinkedIn’s status and an error message: 401 if LinkedIn rejects the session during the call, 429 when LinkedIn rate-limits you, and 502 otherwise (see Rate Limiting).Authorizations
Your API key
Headers
A unique value you generate per operation, such as a UUID. Retrying with the same key and the same body returns the stored response instead of running the request again, so a retry after a timeout never charges twice. Successful responses are kept for 24 hours; a failed request is not stored and can be retried with the same key.
Maximum string length:
255Example:
"4f1c2e9a-8a7d-4c1b-9f63-2d6e0b5a7c11"
Body
application/json
LinkedIn member URNs of the leads to unsave
Example:
["urn:li:member:123456789"]
Response
Leads unsaved on LinkedIn
Example:
"Members unsaved successfully"
Was this page helpful?